Commit 2e84acce authored by Matthew Waters's avatar Matthew Waters Committed by Sebastian Dröge
Browse files

videometa: add GstVideoGLTextureUploadMeta buffer pool option

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
parent f8477e6b
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment