From 76fe73806b685e28730f5c0900bb81ef2fe0b27a Mon Sep 17 00:00:00 2001 From: Yinhang Liu Date: Thu, 30 Mar 2023 11:05:04 +0800 Subject: [PATCH] msdkenc: Remove unsupported image formats for MSDK path For unsupported encoding formats, please use msdkvpp plugin to do conversion first. Part-of: --- subprojects/gst-plugins-bad/sys/msdk/gstmsdkcaps.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/msdk/gstmsdkcaps.c b/subprojects/gst-plugins-bad/sys/msdk/gstmsdkcaps.c index 297fa94f6c..22357f5f65 100644 --- a/subprojects/gst-plugins-bad/sys/msdk/gstmsdkcaps.c +++ b/subprojects/gst-plugins-bad/sys/msdk/gstmsdkcaps.c @@ -1467,18 +1467,18 @@ _enc_get_static_raw_formats (guint codec_id) { switch (codec_id) { case MFX_CODEC_AVC: - return "NV12, I420, YV12, YUY2, UYVY, BGRA"; + return "NV12, YUY2, UYVY, BGRA"; case MFX_CODEC_HEVC: - return "NV12, I420, YV12, YUY2, UYVY, BGRA, BGR10A2_LE, " - "P010_10LE, VUYA, Y410, Y210, P012_LE"; + return "NV12, YUY2, BGRA, BGR10A2_LE, P010_10LE, VUYA, Y410, Y210, " + "P012_LE"; case MFX_CODEC_MPEG2: - return "NV12, I420, YV12, YUY2, UYVY, BGRA"; + return "NV12"; case MFX_CODEC_VP9: - return "NV12, I420, YV12, YUY2, UYVY, BGRA, P010_10LE, VUYA, Y410"; + return "NV12, P010_10LE, VUYA, Y410"; case MFX_CODEC_AV1: return "NV12, P010_10LE"; case MFX_CODEC_JPEG: - return "NV12, I420, YV12, YUY2, UYVY, BGRA"; + return "NV12, YUY2, UYVY, BGRA"; default: GST_WARNING ("Unsupported codec %" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (codec_id)); @@ -1498,7 +1498,7 @@ _enc_get_static_dma_formats (guint codec_id) case MFX_CODEC_HEVC: return "NV12, P010_10LE"; case MFX_CODEC_MPEG2: - return "NV12, BGRx"; + return "NV12"; case MFX_CODEC_VP9: return "NV12, P010_10LE"; case MFX_CODEC_AV1: