summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2015-07-03 09:35:16 +0200
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2015-08-04 19:37:33 +0200
commit954037cd2477c1ab8484389f89121a4f28da1e94 (patch)
tree290cd653233963c94909fbcee79d97da7b8608bc
parent001a5c637de4423d397c9d64fe4a816dbd290d4f (diff)
vaapipostroc: GLTextureUploadMeta in sink template
Advertise GLTextureUploadMeta in sink caps template. https://bugzilla.gnome.org/show_bug.cgi?id=752130
-rw-r--r--gst/vaapi/gstvaapipostproc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gst/vaapi/gstvaapipostproc.c b/gst/vaapi/gstvaapipostproc.c
index cecde49e..6fc9917b 100644
--- a/gst/vaapi/gstvaapipostproc.c
+++ b/gst/vaapi/gstvaapipostproc.c
@@ -48,11 +48,16 @@ GST_DEBUG_CATEGORY_STATIC (gst_debug_vaapipostproc);
GST_VIDEO_CAPS_MAKE_WITH_FEATURES( \
GST_CAPS_FEATURE_MEMORY_VAAPI_SURFACE, "{ ENCODED, I420, YV12, NV12 }")
+# define GST_VAAPIPOSTPROC_GLTEXUPLOAD_CAPS \
+ GST_VIDEO_CAPS_MAKE_WITH_FEATURES( \
+ GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META, "{ RGBA, BGRA }")
+
/* Default templates */
/* *INDENT-OFF* */
static const char gst_vaapipostproc_sink_caps_str[] =
GST_VAAPIPOSTPROC_SURFACE_CAPS ", "
GST_CAPS_INTERLACED_MODES "; "
+ GST_VAAPIPOSTPROC_GLTEXUPLOAD_CAPS "; "
GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL) ", "
GST_CAPS_INTERLACED_MODES;
/* *INDENT-ON* */
@@ -61,9 +66,7 @@ static const char gst_vaapipostproc_sink_caps_str[] =
static const char gst_vaapipostproc_src_caps_str[] =
GST_VAAPIPOSTPROC_SURFACE_CAPS ", "
GST_CAPS_INTERLACED_FALSE "; "
- GST_VIDEO_CAPS_MAKE_WITH_FEATURES (
- GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META, "{ RGBA, BGRA }") ", "
- GST_CAPS_INTERLACED_FALSE "; "
+ GST_VAAPIPOSTPROC_GLTEXUPLOAD_CAPS "; "
GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL) ", "
GST_CAPS_INTERLACED_FALSE;
/* *INDENT-ON* */