Michael Niedermayer
e98ab799be
avcodec/vaapi_encode_h264: Use av_clip_uintp2()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Anton Khirnov
5c2fb561d9
h264: add H264_ prefix to the NAL unit types
...
This will prevent conflicts e.g. in code that deals with both h264 and
hevc.
9 years ago
Anton Khirnov
251cbb4400
h264: create a new header for common h264 definitions
...
Move the NAL unit types into it. This will allow to stop including the
whole decoder-specific h264dec.h in some code that is unrelated to the
decoder and only needs some enum values.
9 years ago
Anton Khirnov
9df889a5f1
h264: rename h264.[ch] to h264dec.[ch]
...
This is more consistent with the naming of other decoders.
9 years ago
Mark Thompson
d4cd8e7f6a
vaapi_encode_h26[45]: Reject bitrate targets higher than 2^31
9 years ago
Mark Thompson
02fa1ad926
vaapi_h264: Add source version identifier as unregistered SEI
...
Contains the libavcodec version, the VAAPI version and the libva
driver vendor string.
9 years ago
Mark Thompson
48e2967cd5
vaapi_h264: Add support for SEI messages
...
Send buffering_period and pic_timing messages when in modes
targetting bitrate. Also adds NAL HRD parameters to VUI.
9 years ago
Mark Thompson
081961f819
vaapi_h264: Add support for VUI parameters
...
Supports aspect ratio, colour format and timing information.
9 years ago
Matthieu Bouron
e0df56f25d
lavc/vaapi_encoder_{h264,h265}: fix bad format warning
9 years ago
Mark Thompson
a86aa16088
vaapi_h264: Add trivial support for low-power encoding
...
Experimental; requires Skylake and VAAPI 0.39.1 (not yet released).
Also increases the allowed range of the quality option - in low-power
mode, the Intel driver supports levels 1-8 (and 0 meaning default).
9 years ago
Mark Thompson
b51c7c6b8a
vaapi_h264: Fix frame_num after non-reference frames
...
Non-reference frames (nal_ref_idc == 0) should be discardable, so
frame_num does not advance after them. Before this change, a stream
containing unreferenced B-frames would be rejected by the reference
decoder.
9 years ago
Vittorio Giovara
41ed7ab45f
cosmetics: Fix spelling mistakes
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years ago
Mark Thompson
fcf536b130
vaapi_h264: Add encode quality option (for quality-speed tradeoff)
...
Only supported on VAAPI 0.36 and higher.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Mark Thompson
9629701ce9
vaapi_h264: Add -qp option, use it to replace use of -global_quality
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Mark Thompson
6e8f66fc93
vaapi_h264: Add constant-bitrate encode support
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Mark Thompson
f6b8552369
vaapi_encode: Refactor slightly to allow easier setting of global options
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Mark Thompson
2c62fcdf5d
lavc: VAAPI H.264 encoder
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago