mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
vaapi_encode: Add common options between all encoders
The only common option here is low_power - it was previously supported for H.264 only, that specific option is removed.
This commit is contained in:
parent
3b188666f1
commit
aa2563aecc
6 changed files with 27 additions and 8 deletions
|
|
@ -1099,6 +1099,8 @@ static av_cold int vaapi_encode_h265_close(AVCodecContext *avctx)
|
|||
#define OFFSET(x) offsetof(VAAPIEncodeH265Context, x)
|
||||
#define FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM)
|
||||
static const AVOption vaapi_encode_h265_options[] = {
|
||||
VAAPI_ENCODE_COMMON_OPTIONS,
|
||||
|
||||
{ "qp", "Constant QP (for P-frames; scaled by qfactor/qoffset for I/B)",
|
||||
OFFSET(qp), AV_OPT_TYPE_INT, { .i64 = 25 }, 0, 52, FLAGS },
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue