aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/qsvenc_hevc.c
diff options
context:
space:
mode:
authorDmitry Rogozhkin <dmitry.v.rogozhkin-at-intel.com@ffmpeg.org>2022-05-19 12:54:16 -0700
committerHaihao Xiang <haihao.xiang@intel.com>2022-05-25 15:17:35 +0800
commitf8a07c4d4abbd3974e074bc54bc22eeaa0f46051 (patch)
tree7f46b9f4adb08a105956a933696bd9817b36c6d8 /libavcodec/qsvenc_hevc.c
parentcc679054c715acda9438e566b8de3a9eba421ac3 (diff)
downloadffmpeg-f8a07c4d4abbd3974e074bc54bc22eeaa0f46051.tar.gz
libavcodec/qsvenc: expose only supported options
vp9, hevc, avc, mpeg2 QSV encoders inherit common list of options (QSV_COMMON_OPTS) while bunch of options is not actually supported by current qsv code. The only codec which supportes everything is avc, followed by hevc, while vp9 and mpeg2 significantly fall behind. This creates difficulties for the users to use qsv encoders. This patch fixes options list for encoders leaving only those which are actually supported. Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com> Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
Diffstat (limited to 'libavcodec/qsvenc_hevc.c')
-rw-r--r--libavcodec/qsvenc_hevc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/qsvenc_hevc.c b/libavcodec/qsvenc_hevc.c
index 3a2d50e332..bb4de8ed6d 100644
--- a/libavcodec/qsvenc_hevc.c
+++ b/libavcodec/qsvenc_hevc.c
@@ -224,6 +224,15 @@ static av_cold int qsv_enc_close(AVCodecContext *avctx)
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
static const AVOption options[] = {
QSV_COMMON_OPTS
+ QSV_OPTION_RDO
+ QSV_OPTION_MAX_FRAME_SIZE
+ QSV_OPTION_MAX_SLICE_SIZE
+ QSV_OPTION_MBBRC
+ QSV_OPTION_EXTBRC
+ QSV_OPTION_P_STRATEGY
+ QSV_OPTION_B_STRATEGY
+ QSV_OPTION_DBLK_IDC
+ QSV_OPTION_LOW_DELAY_BRC
{ "idr_interval", "Distance (in I-frames) between IDR frames", OFFSET(qsv.idr_interval), AV_OPT_TYPE_INT, { .i64 = 0 }, -1, INT_MAX, VE, "idr_interval" },
{ "begin_only", "Output an IDR-frame only at the beginning of the stream", 0, AV_OPT_TYPE_CONST, { .i64 = -1 }, 0, 0, VE, "idr_interval" },