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:
Mark Thompson 2018-09-18 23:30:41 +01:00
parent 3b188666f1
commit aa2563aecc
6 changed files with 27 additions and 8 deletions

View file

@ -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 },