summaryrefslogtreecommitdiffstats
path: root/libavcodec/vaapi_encode_mpeg2.c
Commit message (Collapse)AuthorAgeFilesLines
* cbs: Refcount all the things!Mark Thompson2018-02-201-1/+1
| | | | | | | | This makes it easier for users of the CBS API to get alloc/free right - all subelements use the buffer API so that it's clear how to free them. It also allows eliding some redundant copies: the packet -> fragment copy disappears after this change if the input packet is refcounted, and more codec-specific cases are now possible (but not included in this patch).
* cbs: Allocate the context inside the init functionMark Thompson2018-02-201-5/+5
| | | | | ... instead of making callers allocate it themselves. This is more consistent with other APIs in libav.
* avcodec: add metadata to identify wrappers and hardware decoderswm42017-12-141-1/+2
| | | | | | | | | | | | | | | | | | | | | 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>. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* vaapi_mpeg2: Convert to use coded bitstream infrastructureMark Thompson2017-09-121-215/+423
|
* vaapi_encode: Add MPEG-2 supportMark Thompson2017-01-291-0/+470
OpenPOWER on IntegriCloud