summaryrefslogtreecommitdiffstats
path: root/libavcodec/vaapi_encode.h
Commit message (Collapse)AuthorAgeFilesLines
* vaapi_encode: Allocate slice structures and parameter buffers dynamicallyJun Zhao2018-02-201-4/+2
| | | | | | | | | This removes the arbitrary limit on the allowed number of slices and parameter buffers. From ffmpeg commit e4a6eb70f471eda36592078e8fa1bad87fc9df73. Signed-off-by: Mark Thompson <sw@jkqxz.net>
* vaapi_encode: Move quality option to common codeMark Thompson2017-08-061-0/+6
| | | | | | | | | Use AVCodecContext.compression_level rather than a private option, replacing the H.264-specific quality option (which stays only for compatibility). This now works with the H.265 encoder in the i965 driver, as well as the existing cases with the H.264 encoder.
* vaapi_encode: Pass framerate parameters to driverMark Thompson2017-01-301-0/+4
| | | | | | | Only do this when building for a recent VAAPI version - initial driver implementations were confused about the interpretation of the framerate field, but hopefully this will be consistent everywhere once 0.40.0 is released.
* vaapi_encode: Add MPEG-2 supportMark Thompson2017-01-291-2/+3
|
* vaapi_encode: Support forcing IDR frames via AVFrame.pict_typeMark Thompson2017-01-111-0/+1
|
* vaapi_encode: Fix GOP sizingMark Thompson2017-01-111-3/+1
| | | | | | This change makes the configured GOP size be respected exactly - previously the value could be exceeded slightly due to flaws in the frame type selection logic.
* vaapi_encode: Write sequence header as extradataMark Thompson2016-10-171-0/+2
| | | | | Only works if packed headers are supported, where we can know the output before generating the first frame.
* vaapi_encode: Check packed header capabilitiesMark Thompson2016-09-281-0/+3
| | | | | This improves behaviour with drivers which do not support packed headers, such as AMD VCE on mesa/gallium.
* vaapi_encode: Refactor initialisationMark Thompson2016-09-281-30/+66
| | | | | | | | This allows better checking of capabilities and will make it easier to add more functionality later. It also commonises some duplicated code around rate control setup and adds more comments explaining the internals.
* vaapi_encode: Maintain a pool of bitstream output buffersMark Thompson2016-06-261-1/+3
| | | | | | | | | Previously we would allocate a new one for every frame. This instead maintains an AVBufferPool of them to use as-needed. Also makes the maximum size of an output buffer adapt to the frame size - the fixed upper bound was a bit too easy to hit when encoding large pictures at high quality.
* vaapi_encode: Add support for writing arbitrary additional packed headersMark Thompson2016-06-091-0/+4
|
* vaapi_encode: Add support for codec-local optionsMark Thompson2016-04-151-0/+5
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vaapi_encode: Refactor slightly to allow easier setting of global optionsMark Thompson2016-04-151-2/+8
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: VAAPI encode common infrastructureMark Thompson2016-03-301-0/+217
Signed-off-by: Anton Khirnov <anton@khirnov.net>
OpenPOWER on IntegriCloud