diff options
author | Wenbin Chen <wenbin.chen-at-intel.com@ffmpeg.org> | 2022-02-18 11:07:47 +0800 |
---|---|---|
committer | Haihao Xiang <haihao.xiang@intel.com> | 2022-02-28 12:37:02 +0800 |
commit | d165ce22a4a7cc4ed60238ce8f3d5dcbbad3e266 (patch) | |
tree | 5cfcf2b49cce0ec67d1838a00dd2c83c4c165aaf /libavcodec/utils.c | |
parent | e0ff86993052b49a64d434bac345e92fc149f446 (diff) | |
download | ffmpeg-d165ce22a4a7cc4ed60238ce8f3d5dcbbad3e266.tar.gz |
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 'libavcodec/utils.c')
0 files changed, 0 insertions, 0 deletions