videometa: add GstVideoGLTextureUploadMeta buffer pool option
authorMatthew Waters <ystreet00@gmail.com>
Thu, 21 Nov 2013 11:54:42 +0000 (22:54 +1100)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 26 Nov 2013 13:04:38 +0000 (14:04 +0100)
allows configuration of whether GstVideoGLTextureUploadMeta is
added to buffers resulting from a buffer pool.  This is sperate
to the caps feature in that an element may want to add the upload
meta itself rather than allowing the buffer pool to.

https://bugzilla.gnome.org/show_bug.cgi?id=712798

docs/libs/gst-plugins-base-libs-sections.txt
gst-libs/gst/video/gstvideometa.h

index 9fa9f50..5cafefa 100644 (file)
@@ -2366,6 +2366,7 @@ gst_buffer_add_video_region_of_interest_meta
 gst_buffer_add_video_region_of_interest_meta_id
 gst_buffer_get_video_region_of_interest_meta
 gst_buffer_get_video_region_of_interest_meta_id
+GST_BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META
 GstVideoGLTextureUpload
 GstVideoGLTextureUploadMeta
 gst_buffer_add_video_gl_texture_upload_meta
index b62f1dd..e693659 100644 (file)
@@ -189,6 +189,19 @@ typedef gboolean (*GstVideoGLTextureUpload) (GstVideoGLTextureUploadMeta *meta,
 #define GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META "meta:GstVideoGLTextureUploadMeta"
 
 /**
+ * GST_BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META:
+ *
+ * An option that can be activated on a bufferpool to request gl texture upload
+ * meta on buffers from the pool.
+ *
+ * When this option is enabled on the bufferpool,
+ * @GST_BUFFER_POOL_OPTION_VIDEO_META should also be enabled.
+ *
+ * Since: 1.2.2
+ */
+#define GST_BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META "GstBufferPoolOptionVideoGLTextureUploadMeta"
+
+/**
  * GstVideoGLTextureUploadMeta:
  * @meta: parent #GstMeta
  * @texture_orientation: Orientation of the textures