diff options
author | Wenbin Chen <wenbin.chen-at-intel.com@ffmpeg.org> | 2022-07-14 16:43:25 +0800 |
---|---|---|
committer | Haihao Xiang <haihao.xiang@intel.com> | 2022-07-20 12:35:23 +0800 |
commit | 52ad617af56e5bd009f488a26ceb4f73595b2477 (patch) | |
tree | 99eed9076f93012fb281ed5ecb3f4042f256c114 /doc/encoders.texi | |
parent | 8b82c9cdc74fd227726b81a7c1768b11536c4471 (diff) | |
download | ffmpeg-52ad617af56e5bd009f488a26ceb4f73595b2477.tar.gz |
libavcodec/qsvenc: Use parameter from AVCodecContext to reset qsv codec
Using parameter from AVCodecContext to reset qsv codec is more suitable
for MFXVideoENCODE_Reset()'s usage. Per-frame metadata is more suitable
for the usage of mfxEncodeCtrl being passed to
MFXVideoENCODE_EncodeFrameAsync(). Now change it to use the value
from AVCodecContext.
Because q->param is passed to both "in" and "out" parameters when call
MFXVideoENCODE_Query(), the value in q->param may be changed. New
variables are added to store old configuration, so that we can detect
real parameter change.
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
Diffstat (limited to 'doc/encoders.texi')
-rw-r--r-- | doc/encoders.texi | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/encoders.texi b/doc/encoders.texi index 02a91ffe96..6d73f74196 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -3337,10 +3337,13 @@ For encoders set this flag to ON to reduce power consumption and GPU usage. Following options can be used durning qsv encoding. @table @option -@item @var{qsv_config_qp} +@item @var{global_quality} +@item @var{i_quant_factor} +@item @var{i_quant_offset} +@item @var{b_quant_factor} +@item @var{b_quant_offset} Supported in h264_qsv and hevc_qsv. -This option can be set in per-frame metadata. QP parameter can be dynamically -changed when encoding in CQP mode. +Change these value to reset qsv codec's qp configuration. @end table @subsection H264 options |