diff options
author | Wenbin Chen <wenbin.chen@intel.com> | 2022-11-02 16:11:51 +0800 |
---|---|---|
committer | Haihao Xiang <haihao.xiang@intel.com> | 2022-11-07 10:57:12 +0800 |
commit | dc4d3429e1b3d162b04372eace67156b52305164 (patch) | |
tree | 37292af07d33cc1690b4a2602c95f9a875d31531 /libavcodec/qsvenc_h264.c | |
parent | af67f627d1a6767373b61e39c660e9680e2ed2ec (diff) | |
download | ffmpeg-dc4d3429e1b3d162b04372eace67156b52305164.tar.gz |
libavcodec/qsvenc: Add skip_frame support to qsvenc
Add skip_frame support to qsvenc. Use per-frame metadata
"qsv_skip_frame" to control it. skip_frame option defines the behavior
of qsv_skip_frame.
no_skip: Frame skipping is disabled.
insert_dummy: Encoder inserts into bitstream frame where all macroblocks
are encoded as skipped.
insert_nothing: Similar to insert_dummy, but encoder inserts nothing.
The skipped frames are still used in brc. For example, gop still include
skipped frames, and the frames after skipped frames will be larger in
size.
brc_only: skip_frame metadata indicates the number of missed frames
before the current frame.
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
Diffstat (limited to 'libavcodec/qsvenc_h264.c')
-rw-r--r-- | libavcodec/qsvenc_h264.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/qsvenc_h264.c b/libavcodec/qsvenc_h264.c index 11aaabbd1b..0ff7356346 100644 --- a/libavcodec/qsvenc_h264.c +++ b/libavcodec/qsvenc_h264.c @@ -116,6 +116,7 @@ static const AVOption options[] = { QSV_OPTION_MAX_MIN_QP QSV_OPTION_SCENARIO QSV_OPTION_AVBR + QSV_OPTION_SKIP_FRAME { "cavlc", "Enable CAVLC", OFFSET(qsv.cavlc), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE }, #if QSV_HAVE_VCM |