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 9fa9f5070dde28ca0a95db91e95a1fc26da2c82a..5cafefa4f4c0b92aae1e5813a6ad69178f7a7435 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 b62f1dd80db2ee71a5659466d44763f6b8b6d14d..e693659c9742544200b155e8027a394279322f68 100644 (file)
@@ -188,6 +188,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