lavc/qsvenc_jpeg: add async_depth support
authorZhong Li <zhong.li@intel.com>
Thu, 11 Oct 2018 09:26:12 +0000 (17:26 +0800)
committerZhong Li <zhong.li@intel.com>
Tue, 23 Oct 2018 11:52:41 +0000 (19:52 +0800)
commit0e3d7d845d9b4596c0dac1f6e99c493af07308ae
treec3367a3599435b834c8f221fd1f52b1dc1732b80
parentb7b3e8c5c759350379eaf176f73334a65bfea2b4
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