mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
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
This commit is contained in:
parent
f8477e6b88
commit
2e84acce58
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue