typedef enum _GstVaapiSurfaceRenderFlags GstVaapiSurfaceRenderFlags;
/**
+ * GST_VAAPI_SURFACE_CAPS:
+ *
+ * Generic caps for VA surfaces.
+ */
+#define GST_VAAPI_SURFACE_CAPS \
+ "video/x-vaapi-surface, " \
+ "width = (int) [ 1, MAX ]," \
+ "height = (int) [ 1, MAX ]," \
+ "framerate = (fraction) [ 0, MAX ]"
+
+/**
* GstVaapiChromaType:
* @GST_VAAPI_CHROMA_TYPE_YUV420: 4:2:0 chroma format
* @GST_VAAPI_CHROMA_TYPE_YUV422: 4:2:2 chroma format
"height = (int) [ 1, MAX ]; ";
static const char gst_vaapiconvert_vaapi_caps_str[] =
- "video/x-vaapi-surface, "
- "width = (int) [ 1, MAX ], "
- "height = (int) [ 1, MAX ]; ";
+ GST_VAAPI_SURFACE_CAPS;
static GstStaticPadTemplate gst_vaapiconvert_sink_factory =
GST_STATIC_PAD_TEMPLATE(
;
static const char gst_vaapidecode_src_caps_str[] =
- "video/x-vaapi-surface, "
- "width = (int) [ 1, MAX ], "
- "height = (int) [ 1, MAX ]; ";
+ GST_VAAPI_SURFACE_CAPS;
static GstStaticPadTemplate gst_vaapidecode_sink_factory =
GST_STATIC_PAD_TEMPLATE(
"sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
- GST_STATIC_CAPS(
- "video/x-vaapi-surface, "
- "width = (int) [ 1, MAX ], "
- "height = (int) [ 1, MAX ]; "));
+ GST_STATIC_CAPS(GST_VAAPI_SURFACE_CAPS));
static void gst_vaapisink_iface_init(GType type);