X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst-libs%2Fgst%2Fvideo%2Fgstvideometa.c;h=13883f1c04e7cd7d6222937789343af0249602f4;hb=c5d5221cb296ba855f3114c9da6823f59c6f26d8;hp=a330245ca9a141612d42fca9d89ab98a33f2170a;hpb=f68c95ebaae922f7af136fff471bcd70461e5e77;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst-libs/gst/video/gstvideometa.c b/gst-libs/gst/video/gstvideometa.c index a330245..13883f1 100644 --- a/gst-libs/gst/video/gstvideometa.c +++ b/gst-libs/gst/video/gstvideometa.c @@ -450,20 +450,17 @@ gst_video_gl_texture_upload_meta_get_info (void) } /** - * gst_buffer_add_video_meta: + * gst_buffer_add_video_gl_texture_upload_meta: * @buffer: a #GstBuffer - * @flags: #GstVideoFrameFlags - * @format: a #GstVideoFormat - * @width: the width - * @height: the height + * @upload: the function to upload the buffer to a specific texture ID + * @user_data: user data for the implementor of @upload + * @user_data_copy: function to copy @user_data + * @user_data_free: function to free @user_data * - * Attaches GstVideoMeta metadata to @buffer with the given parameters and the - * default offsets and strides for @format and @width x @height. + * Attaches GstVideoGLTextureUploadMeta metadata to @buffer with the given + * parameters. * - * This function calculates the default offsets and strides and then calls - * gst_buffer_add_video_meta_full() with them. - * - * Returns: the #GstVideoMeta on @buffer. + * Returns: the #GstVideoGLTextureUploadMeta on @buffer. */ GstVideoGLTextureUploadMeta * gst_buffer_add_video_gl_texture_upload_meta (GstBuffer * buffer, @@ -488,6 +485,16 @@ gst_buffer_add_video_gl_texture_upload_meta (GstBuffer * buffer, return meta; } +/** + * gst_video_gl_texture_upload_meta_upload: + * @meta: a #GstVideoGLTextureUploadMeta + * @format: the GL format of the texture, e.g. GL_RGBA + * @texture_id: the texture ID to upload to + * + * Uploads the buffer which owns the meta to a specific texture ID. + * + * Returns: %TRUE if uploading succeeded, %FALSE otherwise. + */ gboolean gst_video_gl_texture_upload_meta_upload (GstVideoGLTextureUploadMeta * meta, guint format, guint texture_id)