[FFmpeg-devel] [PATCH] avcodec: Implement mpeg2 nvdec hwaccel

Philip Langdale philipl at overt.org
Sat Nov 18 19:23:01 EET 2017


On Sat, 18 Nov 2017 17:38:06 +0100
Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

> 2017-11-16 17:36 GMT+01:00 Philip Langdale <philipl at overt.org>:
> 
> > +AVHWAccel ff_mpeg2_nvdec_hwaccel = {
> > +    .name                 = "mpeg2_nvdec",
> > +    .type                 = AVMEDIA_TYPE_VIDEO,
> > +    .id                   = AV_CODEC_ID_MPEG2VIDEO,
> > +    .pix_fmt              = AV_PIX_FMT_CUDA,
> > +    .start_frame          = nvdec_mpeg12_start_frame,
> > +    .end_frame            = nvdec_mpeg12_end_frame,
> > +    .decode_slice         = nvdec_mpeg12_decode_slice,
> > +    .frame_params         = nvdec_mpeg12_frame_params,
> > +    .init                 = ff_nvdec_decode_init,
> > +    .uninit               = ff_nvdec_decode_uninit,
> > +    .priv_data_size       = sizeof(NVDECContext),
> > +};
> > +#endif
> > diff --git a/libavcodec/version.h b/libavcodec/version.h
> > index a75c885768..5b25a9a8ac 100644
> > --- a/libavcodec/version.h
> > +++ b/libavcodec/version.h
> > @@ -29,7 +29,7 @@
> >
> >  #define LIBAVCODEC_VERSION_MAJOR  58
> >  #define LIBAVCODEC_VERSION_MINOR   3
> > -#define LIBAVCODEC_VERSION_MICRO 102
> > +#define LIBAVCODEC_VERSION_MICRO 103  
> 
> It doesn't really matter but we usually do a minor
> bump when adding a hwaccel/encoder/demuxer/...

I was following what Timo did for the vp9 hwaccel, but I can do a minor
next time.

--phil


More information about the ffmpeg-devel mailing list