diff options
author | Matthew Waters <ystreet00@gmail.com> | 2013-11-21 22:54:42 +1100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2013-11-26 14:04:38 +0100 |
commit | 2e84acce582a33cd2268d87b969d4bacff705233 (patch) | |
tree | bc0ddb7e1fc7700aba154ef5abd5c51c56cbcd15 | |
parent | f8477e6b88fdb364809bef70ac3909aba878978f (diff) |
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
-rw-r--r-- | docs/libs/gst-plugins-base-libs-sections.txt | 1 | ||||
-rw-r--r-- | gst-libs/gst/video/gstvideometa.h | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/docs/libs/gst-plugins-base-libs-sections.txt b/docs/libs/gst-plugins-base-libs-sections.txt index 9fa9f5070..5cafefa4f 100644 --- a/docs/libs/gst-plugins-base-libs-sections.txt +++ b/docs/libs/gst-plugins-base-libs-sections.txt @@ -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 diff --git a/gst-libs/gst/video/gstvideometa.h b/gst-libs/gst/video/gstvideometa.h index b62f1dd80..e693659c9 100644 --- a/gst-libs/gst/video/gstvideometa.h +++ b/gst-libs/gst/video/gstvideometa.h @@ -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 |