From ab8b90aa5906ac1f359738d6b4240b6f4deb4317 Mon Sep 17 00:00:00 2001 From: gb Date: Mon, 29 Mar 2010 11:25:20 +0000 Subject: [PATCH] Fix documentation. --- docs/reference/libs/libs-docs.xml.in | 1 + docs/reference/libs/libs-sections.txt | 26 +++++++++++++++++ gst-libs/gst/vaapi/gstvaapidisplay.c | 2 +- gst-libs/gst/vaapi/gstvaapitexture.c | 40 ++++++++++++++++++++++++++- 4 files changed, 67 insertions(+), 2 deletions(-) diff --git a/docs/reference/libs/libs-docs.xml.in b/docs/reference/libs/libs-docs.xml.in index 29ef9b990b..53e6741f28 100644 --- a/docs/reference/libs/libs-docs.xml.in +++ b/docs/reference/libs/libs-docs.xml.in @@ -22,6 +22,7 @@ + diff --git a/docs/reference/libs/libs-sections.txt b/docs/reference/libs/libs-sections.txt index 95f822e866..b6eacd54f1 100644 --- a/docs/reference/libs/libs-sections.txt +++ b/docs/reference/libs/libs-sections.txt @@ -111,7 +111,9 @@ gst_vaapi_window_glx_new gst_vaapi_window_glx_new_with_xid gst_vaapi_window_glx_get_context gst_vaapi_window_glx_set_context +gst_vaapi_window_glx_make_current gst_vaapi_window_glx_swap_buffers +gst_vaapi_window_glx_put_texture GST_VAAPI_WINDOW_GLX GST_VAAPI_IS_WINDOW_GLX @@ -364,3 +366,27 @@ gst_vaapi_image_format_get_va_format gst_vaapi_image_format_get_caps gst_vaapi_image_format_get_score + +
+gstvaapitexture +GstVaapiTexture +GstVaapiTexture +GstVaapiTextureClass +gst_vaapi_texture_new +gst_vaapi_texture_new_with_texture +gst_vaapi_texture_get_id +gst_vaapi_texture_get_target +gst_vaapi_texture_get_format +gst_vaapi_texture_get_width +gst_vaapi_texture_get_height +gst_vaapi_texture_get_size +gst_vaapi_texture_put_surface + +GST_VAAPI_TEXTURE +GST_VAAPI_IS_TEXTURE +GST_VAAPI_TYPE_TEXTURE +gst_vaapi_texture_get_type +GST_VAAPI_TEXTURE_CLASS +GST_VAAPI_IS_TEXTURE_CLASS +GST_VAAPI_TEXTURE_GET_CLASS +
diff --git a/gst-libs/gst/vaapi/gstvaapidisplay.c b/gst-libs/gst/vaapi/gstvaapidisplay.c index f015620c22..ff10126e8e 100644 --- a/gst-libs/gst/vaapi/gstvaapidisplay.c +++ b/gst-libs/gst/vaapi/gstvaapidisplay.c @@ -595,7 +595,7 @@ gst_vaapi_display_sync(GstVaapiDisplay *display) } /** - * gst_vaapi_display_sync: + * gst_vaapi_display_flush: * @display: a #GstVaapiDisplay * * Flushes any requests queued for the windowing system. diff --git a/gst-libs/gst/vaapi/gstvaapitexture.c b/gst-libs/gst/vaapi/gstvaapitexture.c index ff90056716..3d69da25d7 100644 --- a/gst-libs/gst/vaapi/gstvaapitexture.c +++ b/gst-libs/gst/vaapi/gstvaapitexture.c @@ -263,6 +263,25 @@ gst_vaapi_texture_init(GstVaapiTexture *texture) priv->is_constructed = FALSE; } +/** + * gst_vaapi_texture_new: + * @display: a #GstVaapiDisplay + * @target: the target to which the texture is bound + * @format: the format of the pixel data + * @width: the requested width, in pixels + * @height: the requested height, in pixels + * + * Creates a texture with the specified dimensions, @target and + * @format. Note that only GL_TEXTURE_2D @target and GL_RGBA or + * GL_BGRA formats are supported at this time. + * + * The application shall maintain the live GL context itself. That is, + * gst_vaapi_window_glx_make_current() must be called beforehand, or + * any other function like glXMakeCurrent() if the context is managed + * outside of this library. + * + * Return value: the newly created #GstVaapiTexture object + */ GstVaapiTexture * gst_vaapi_texture_new( GstVaapiDisplay *display, @@ -284,6 +303,25 @@ gst_vaapi_texture_new( NULL); } +/** + * gst_vaapi_texture_new_with_texture: + * @display: a #GstVaapiDisplay + * @texture: the foreign GL texture name to use + * @target: the target to which the texture is bound + * @format: the format of the pixel data + * + * Creates a texture from an existing GL texture, with the specified + * @target and @format. Note that only GL_TEXTURE_2D @target and + * GL_RGBA or GL_BGRA formats are supported at this time. The + * dimensions will be retrieved from the @texture. + * + * The application shall maintain the live GL context itself. That is, + * gst_vaapi_window_glx_make_current() must be called beforehand, or + * any other function like glXMakeCurrent() if the context is managed + * outside of this library. + * + * Return value: the newly created #GstVaapiTexture object + */ GstVaapiTexture * gst_vaapi_texture_new_with_texture( GstVaapiDisplay *display, @@ -429,7 +467,7 @@ gst_vaapi_texture_get_size( } /** - * gst_vaapi_window_put_texture: + * gst_vaapi_texture_put_surface: * @texture: a #GstVaapiTexture * @surface: a #GstVaapiSurface * @flags: postprocessing flags. See #GstVaapiTextureRenderFlags