• wm4's avatar
    avcodec: allow multiple hwaccels for the same codec/pixfmt · ae5046e4
    wm4 authored
    Currently, AVHWAccels are looked up using a (codec_id, pixfmt) tuple.
    This means it's impossible to have 2 decoders for the same codec and
    using the same opaque hardware pixel format.
    
    This breaks merging Libav's CUVID hwaccel. FFmpeg has its own CUVID
    support, but it's a full stream decoder, using NVIDIA's codec parser.
    The Libav one is a true hwaccel, which is based on the builtin software
    decoders.
    
    Fix this by introducing another field to disambiguate AVHWAccels, and
    use it for our CUVID decoders. FF_CODEC_CAP_HWACCEL_REQUIRE_CLASS makes
    this mechanism backwards compatible and optional.
    ae5046e4
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...