]> git.sesse.net Git - ffmpeg/commit
avcodec: add metadata to identify wrappers and hardware decoders
authorwm4 <nfxjfg@googlemail.com>
Mon, 11 Dec 2017 15:18:44 +0000 (16:18 +0100)
committerwm4 <nfxjfg@googlemail.com>
Thu, 14 Dec 2017 18:37:56 +0000 (19:37 +0100)
commitb945fed629a872d393f59d16fc5773574126ca88
tree2996d9caa31c2dd6383317c4797d2de8d8035e70
parent2e391a576c1fc2e8816990924c6e4c21ccf75a82
avcodec: add metadata to identify wrappers and hardware decoders

Explicitly identify decoder/encoder wrappers with a common name. This
saves API users from guessing by the name suffix. For example, they
don't have to guess that "h264_qsv" is the h264 QSV implementation, and
instead they can just check the AVCodec .codec and .wrapper_name fields.

Explicitly mark AVCodec entries that are hardware decoders or most
likely hardware decoders with new AV_CODEC_CAPs. The purpose is allowing
API users listing hardware decoders in a more generic way. The proposed
AVCodecHWConfig does not provide this information fully, because it's
concerned with decoder configuration, not information about the fact
whether the hardware is used or not.

AV_CODEC_CAP_HYBRID exists specifically for QSV, which can have software
implementations in case the hardware is not capable.

Based on a patch by Philip Langdale <philipl@overt.org>.

Merges Libav commit 47687a2f8aca3f65b6fdd117b1cb66a7409a7fd1.
60 files changed:
doc/APIchanges
libavcodec/audiotoolboxdec.c
libavcodec/audiotoolboxenc.c
libavcodec/avcodec.h
libavcodec/crystalhd.c
libavcodec/cuviddec.c
libavcodec/libcelt_dec.c
libavcodec/libfdk-aacdec.c
libavcodec/libfdk-aacenc.c
libavcodec/libgsmdec.c
libavcodec/libgsmenc.c
libavcodec/libilbc.c
libavcodec/libkvazaar.c
libavcodec/libmp3lame.c
libavcodec/libopencore-amr.c
libavcodec/libopenh264dec.c
libavcodec/libopenh264enc.c
libavcodec/libopenjpegdec.c
libavcodec/libopenjpegenc.c
libavcodec/libopusdec.c
libavcodec/libopusenc.c
libavcodec/librsvgdec.c
libavcodec/libshine.c
libavcodec/libspeexdec.c
libavcodec/libspeexenc.c
libavcodec/libtheoraenc.c
libavcodec/libtwolame.c
libavcodec/libvo-amrwbenc.c
libavcodec/libvorbisenc.c
libavcodec/libvpxdec.c
libavcodec/libvpxenc.c
libavcodec/libwavpackenc.c
libavcodec/libwebpenc.c
libavcodec/libwebpenc_animencoder.c
libavcodec/libx264.c
libavcodec/libx265.c
libavcodec/libxavs.c
libavcodec/libxvid.c
libavcodec/libzvbi-teletextdec.c
libavcodec/mediacodecdec.c
libavcodec/mmaldec.c
libavcodec/nvenc_h264.c
libavcodec/nvenc_hevc.c
libavcodec/qsvdec_h2645.c
libavcodec/qsvdec_other.c
libavcodec/qsvenc_h264.c
libavcodec/qsvenc_hevc.c
libavcodec/qsvenc_jpeg.c
libavcodec/qsvenc_mpeg2.c
libavcodec/rkmppdec.c
libavcodec/v4l2_m2m_dec.c
libavcodec/v4l2_m2m_enc.c
libavcodec/vaapi_encode_h264.c
libavcodec/vaapi_encode_h265.c
libavcodec/vaapi_encode_mjpeg.c
libavcodec/vaapi_encode_mpeg2.c
libavcodec/vaapi_encode_vp8.c
libavcodec/vaapi_encode_vp9.c
libavcodec/version.h
libavcodec/videotoolboxenc.c