diff options
author | Zhong Li <zhong.li@intel.com> | 2018-10-11 17:26:12 +0800 |
---|---|---|
committer | Zhong Li <zhong.li@intel.com> | 2018-10-23 19:52:41 +0800 |
commit | 0e3d7d845d9b4596c0dac1f6e99c493af07308ae (patch) | |
tree | c3367a3599435b834c8f221fd1f52b1dc1732b80 /libavcodec | |
parent | b7b3e8c5c759350379eaf176f73334a65bfea2b4 (diff) | |
download | ffmpeg-0e3d7d845d9b4596c0dac1f6e99c493af07308ae.tar.gz |
lavc/qsvenc_jpeg: add async_depth support
Currently qsv (m)jpeg encoding is broken.
Regression introducing by the commit(id: c1bcd3): fix async support,
which requires the minimum async_depth to be 1, instead previous zero.
But the default async_depth of qsv (m)jpeg encoding is still initialized
(mostly) as zero.
This patch also abviously improves qsv (m)jpeg encoding performance
due to the default async_depth is changed to 4.
Signed-off-by: Zhong Li <zhong.li@intel.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/qsvenc_jpeg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/qsvenc_jpeg.c b/libavcodec/qsvenc_jpeg.c index c18fe91940..01c1012504 100644 --- a/libavcodec/qsvenc_jpeg.c +++ b/libavcodec/qsvenc_jpeg.c @@ -64,6 +64,7 @@ static av_cold int qsv_enc_close(AVCodecContext *avctx) #define OFFSET(x) offsetof(QSVMJPEGEncContext, x) #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM static const AVOption options[] = { + { "async_depth", "Maximum processing parallelism", OFFSET(qsv.async_depth), AV_OPT_TYPE_INT, { .i64 = ASYNC_DEPTH_DEFAULT }, 1, INT_MAX, VE }, { NULL }, }; |