From 2c70641b427ac0aa2bf9c78c873b4b46b9b0fe5c Mon Sep 17 00:00:00 2001 From: Yinhang Liu Date: Fri, 25 Jun 2021 09:19:25 +0800 Subject: [PATCH] msdkvpp: use NV12 as default format on srcpad By default, sinkpad is NV12 format and srcpad is BGRA format, the different format will trigger an implicit format conversion in msdkvpp, which will cause performance drop. Part-of: --- sys/msdk/gstmsdkvpp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/msdk/gstmsdkvpp.c b/sys/msdk/gstmsdkvpp.c index 5431a4ea60..8a8d6c841f 100644 --- a/sys/msdk/gstmsdkvpp.c +++ b/sys/msdk/gstmsdkvpp.c @@ -95,9 +95,9 @@ GST_DEBUG_CATEGORY_EXTERN (gst_msdkvpp_debug); #define SUPPORTED_DMABUF_FORMAT \ "{ NV12, BGRA, YUY2, UYVY, VUYA, P010_10LE" EXT_SINK_FORMATS "}" #define SRC_SYSTEM_FORMAT \ - "{ BGRA, NV12, YUY2, UYVY, VUYA, BGRx, P010_10LE" EXT_FORMATS EXT_SRC_FORMATS "}" + "{ NV12, BGRA, YUY2, UYVY, VUYA, BGRx, P010_10LE" EXT_FORMATS EXT_SRC_FORMATS "}" #define SRC_DMABUF_FORMAT \ - "{ BGRA, YUY2, UYVY, NV12, VUYA, BGRx, P010_10LE" EXT_FORMATS EXT_SRC_FORMATS "}" + "{ NV12, BGRA, YUY2, UYVY, VUYA, BGRx, P010_10LE" EXT_FORMATS EXT_SRC_FORMATS "}" #ifndef _WIN32 #define DMABUF_SINK_CAPS_STR \