h264dec: add a NVDEC hwaccel

Multimedia / FFmpeg - Anton Khirnov [khirnov.net] - 10 November 2017 21:48 EST

Some parts of the code are based on a patch by Timo Rothenpieler

Merges Libav commit b9129ec4668c511e0a79e25c6f25d748cee172c9.

Due to the name clash with our cuvid decoder, rename it to nvdec.

This commit also changes the Libav code to dynamic loading of the cuda/cuvid libraries.

0e00624389 h264dec: add a NVDEC hwaccel
Changelog | 1 +
configure | 10 +-
fftools/ffmpeg.h | 1 +
fftools/ffmpeg_opt.c | 4 +
libavcodec/Makefile | 2 +
libavcodec/allcodecs.c | 1 +
libavcodec/h264_slice.c | 4 +
libavcodec/nvdec.c | 431 ++++++++++++++++++++++++++++++++++++++++++++++++
libavcodec/nvdec.h | 62 +++++++
libavcodec/nvdec_h264.c | 176 ++++++++++++++++++++
libavcodec/version.h | 2 +-
11 files changed, 691 insertions(+), 3 deletions(-)

  • Share