Skip to content

Commit

Permalink
msdk: Add more supported formats for va caps
Browse files Browse the repository at this point in the history
  • Loading branch information
mengker33 committed Apr 8, 2024
1 parent 362a732 commit 1fba86f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions subprojects/gst-plugins-bad/sys/msdk/gstmsdkcaps.c
Original file line number Diff line number Diff line change
Expand Up @@ -892,8 +892,8 @@ _enc_create_sink_caps (GstMsdkContext * context, guint codec_id,
GstCaps *caps, *dma_caps, *raw_caps;

#ifndef _WIN32
caps = gst_caps_from_string
("video/x-raw(memory:VAMemory), format=(string){ NV12 }");
caps = gst_caps_from_string ("video/x-raw(memory:VAMemory)");
gst_caps_set_value (caps, "format", supported_formats);
dma_caps = _create_dma_drm_caps (context, GST_MSDK_JOB_ENCODER,
supported_formats);
gst_caps_append (caps, dma_caps);
Expand Down Expand Up @@ -1214,8 +1214,8 @@ _dec_create_src_caps (GstMsdkContext * context,
return NULL;

#ifndef _WIN32
caps = gst_caps_from_string
("video/x-raw(memory:VAMemory), format=(string){ NV12 }");
caps = gst_caps_from_string ("video/x-raw(memory:VAMemory)");
gst_caps_set_value (caps, "format", supported_formats);
dma_caps = _create_dma_drm_caps (context, GST_MSDK_JOB_DECODER,
supported_formats);
gst_caps_append (caps, dma_caps);
Expand Down Expand Up @@ -1461,8 +1461,8 @@ _vpp_create_caps (GstMsdkContext * context,
GstCaps *caps, *dma_caps, *raw_caps;

#ifndef _WIN32
caps = gst_caps_from_string ("video/x-raw(memory:VAMemory), "
"format=(string){ NV12, VUYA, P010_10LE }");
caps = gst_caps_from_string ("video/x-raw(memory:VAMemory)");
gst_caps_set_value (caps, "format", supported_fmts);
dma_caps = _create_dma_drm_caps (context, GST_MSDK_JOB_VPP, supported_fmts);
gst_caps_append (caps, dma_caps);
#else
Expand Down

0 comments on commit 1fba86f

Please sign in to comment.