gl: fix some GIR annotations
authorMark Nauwelaerts <mnauw@users.sourceforge.net>
Fri, 20 Apr 2018 19:54:23 +0000 (21:54 +0200)
committerMark Nauwelaerts <mnauw@users.sourceforge.net>
Mon, 23 Apr 2018 17:33:19 +0000 (19:33 +0200)
Mostly related to out and array parameters

gst-libs/gst/gl/gstgldisplay.c
gst-libs/gst/gl/gstglmemory.c
gst-libs/gst/gl/gstglslstage.c
gst-libs/gst/gl/gstglupload.c

index f272571..e108073 100644 (file)
@@ -465,7 +465,7 @@ gst_context_set_gl_display (GstContext * context, GstGLDisplay * display)
 /**
  * gst_context_get_gl_display:
  * @context: a #GstContext
- * @display: (transfer full): resulting #GstGLDisplay
+ * @display: (out) (transfer full): resulting #GstGLDisplay
  *
  * Returns: Whether @display was in @context
  *
index 76d7034..30d5f5e 100644 (file)
@@ -1425,8 +1425,10 @@ gst_gl_video_allocation_params_copy_data (GstGLVideoAllocationParams * src_vid,
  * @allocator: the @GstGLMemoryAllocator to allocate from
  * @buffer: a #GstBuffer to setup
  * @params: the #GstGLVideoAllocationParams to allocate with
- * @tex_formats: (allow-none): a list of #GstGLFormat's to allocate with.
- * @wrapped_data: a list of wrapped data pointers
+ * @tex_formats: (allow-none) (array length=n_wrapped_pointers):
+ *     a list of #GstGLFormat's to allocate with.
+ * @wrapped_data: (array length=n_wrapped_pointers) (element-type gpointer):
+ *     a list of wrapped data pointers
  * @n_wrapped_pointers: the number of elements in @tex_formats and @wrapped_data
  *
  * Returns: whether the buffer was correctly setup
index 0205f38..4e7374c 100644 (file)
@@ -195,7 +195,8 @@ _ensure_shader (GstGLSLStage * stage)
  * @version: the #GstGLSLVersion
  * @profile: the #GstGLSLProfile
  * @n_strings: the number of strings in @str
- * @str: an array of strings concatted together to produce a shader
+ * @str: (array length=n_strings):
+ *     an array of strings concatted together to produce a shader
  *
  * Returns: (transfer floating): a new #GstGLSLStage of the specified @type
  *
@@ -304,7 +305,7 @@ gst_glsl_stage_new_default_fragment (GstGLContext * context)
  * @version: a #GstGLSLVersion
  * @profile: a #GstGLSLProfile
  * @n_strings: number of strings in @str
- * @str: (transfer none): a GLSL shader string
+ * @str: (array length=n_strings) (transfer none): a GLSL shader string
  *
  * Replaces the current shader string with @str.
  *
index 5390cdf..fa4884a 100644 (file)
@@ -1784,7 +1784,7 @@ _upload_find_method (GstGLUpload * upload)
  * gst_gl_upload_perform_with_buffer:
  * @upload: a #GstGLUpload
  * @buffer: input #GstBuffer
- * @outbuf_ptr: resulting #GstBuffer
+ * @outbuf_ptr: (out): resulting #GstBuffer
  *
  * Uploads @buffer using the transformation specified by
  * gst_gl_upload_set_caps() creating a new #GstBuffer in @outbuf_ptr.