lavc/qsvenc_jpeg: add async_depth support
authorZhong Li <zhong.li@intel.com>
Thu, 11 Oct 2018 09:26:12 +0000 (17:26 +0800)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 13 Oct 2018 13:57:06 +0000 (15:57 +0200)
commit4c5e77e0bf14aa3cb838e788dbaf88441c82e5d2
treeff96d372016efc57007c44e5fdde389d7b176d24
parent5584abf69d83169a010aca404cd1cf95c23ad9ef
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>
libavcodec/qsvenc_jpeg.c