summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorWenbin Chen <wenbin.chen-at-intel.com@ffmpeg.org>2022-02-18 11:07:47 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2022-02-28 12:37:02 +0800
commitd165ce22a4a7cc4ed60238ce8f3d5dcbbad3e266 (patch)
tree5cfcf2b49cce0ec67d1838a00dd2c83c4c165aaf /doc
parente0ff86993052b49a64d434bac345e92fc149f446 (diff)
libavcodec/vaapi_encode: Add async_depth to vaapi_encoder to increase performance
Fix: #7706. After commit 5fdcf85bbffe7451c2, vaapi encoder's performance decrease. The reason is that vaRenderPicture() and vaSyncBuffer() are called at the same time (vaRenderPicture() always followed by a vaSyncBuffer()). Now I changed them to be called in a asynchronous way, which will make better use of hardware. Async_depth is added to increase encoder's performance. The frames that are sent to hardware are stored in a fifo. Encoder will sync output after async fifo is full. Signed-off-by: Wenbin Chen <wenbin.chen@intel.com> Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/encoders.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/encoders.texi b/doc/encoders.texi
index 9afb920f69..64e8c5d129 100644
--- a/doc/encoders.texi
+++ b/doc/encoders.texi
@@ -3591,6 +3591,12 @@ will refer only to P- or I-frames. When set to greater values multiple layers
of B-frames will be present, frames in each layer only referring to frames in
higher layers.
+@item async_depth
+Maximum processing parallelism. Increase this to improve single channel
+performance. This option doesn't work if driver doesn't implement vaSyncBuffer
+function. Please make sure there are enough hw_frames allocated if a large
+number of async_depth is used.
+
@item rc_mode
Set the rate control mode to use. A given driver may only support a subset of
modes.