lavc/qsvenc_jpeg: accept YUYV422 and BGRA in system memory

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
This commit is contained in:
Haihao Xiang 2023-01-09 16:56:26 +08:00
parent 01f46f18db
commit 1f88fb80d5
1 changed files with 2 additions and 0 deletions

View File

@ -89,6 +89,8 @@ const FFCodec ff_mjpeg_qsv_encoder = {
.close = qsv_enc_close,
.p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_HYBRID,
.p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_NV12,
AV_PIX_FMT_YUYV422,
AV_PIX_FMT_BGRA,
AV_PIX_FMT_QSV,
AV_PIX_FMT_NONE },
.p.priv_class = &class,