From 17815020fded47edbca370dc257ba2cb9c8e1d13 Mon Sep 17 00:00:00 2001 From: Evan Nemerson Date: Wed, 4 Jul 2012 14:00:14 -0700 Subject: [PATCH] audio: add missing array and element-type annotations for binary data --- gst-libs/gst/audio/audio-format.c | 3 ++- gst-libs/gst/audio/audio-format.h | 9 +++++---- gst-libs/gst/audio/gstaudioiec61937.c | 6 +++--- gst-libs/gst/audio/gstaudioringbuffer.h | 2 +- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/gst-libs/gst/audio/audio-format.c b/gst-libs/gst/audio/audio-format.c index 45575b8568..7d91afc10a 100644 --- a/gst-libs/gst/audio/audio-format.c +++ b/gst-libs/gst/audio/audio-format.c @@ -435,7 +435,8 @@ gst_audio_format_get_info (GstAudioFormat format) /** * gst_audio_format_fill_silence: * @info: a #GstAudioFormatInfo - * @dest: a destination to fill + * @dest: (array length=length) (element-type guint8): a destination + * to fill * @length: the length to fill * * Fill @length bytes in @dest with silence samples for @info. diff --git a/gst-libs/gst/audio/audio-format.h b/gst-libs/gst/audio/audio-format.h index d47cb79511..e515d11149 100644 --- a/gst-libs/gst/audio/audio-format.h +++ b/gst-libs/gst/audio/audio-format.h @@ -182,8 +182,8 @@ typedef enum /** * GstAudioFormatUnpack: * @info: a #GstAudioFormatInfo - * @dest: a destination array - * @data: pointer to the audio data + * @dest: (array) (element-type guint8): a destination array + * @data: (array) (element-type guint8): pointer to the audio data * @length: the amount of samples to unpack. * * Unpacks @length samples from the given data of format @info. @@ -197,8 +197,9 @@ typedef void (*GstAudioFormatUnpack) (const GstAudioFormatInfo *info, /** * GstAudioFormatPack: * @info: a #GstAudioFormatInfo - * @src: a source array - * @data: pointer to the destination data + * @src: (array) (element-type guint8): a source array + * @data: (array) (element-type guint8): pointer to the destination + * data * @length: the amount of samples to pack. * * Packs @length samples from @src to the data array in format @info. diff --git a/gst-libs/gst/audio/gstaudioiec61937.c b/gst-libs/gst/audio/gstaudioiec61937.c index c67f1d62a4..d665474fc0 100644 --- a/gst-libs/gst/audio/gstaudioiec61937.c +++ b/gst-libs/gst/audio/gstaudioiec61937.c @@ -128,10 +128,10 @@ gst_audio_iec61937_frame_size (const GstAudioRingBufferSpec * spec) /** * gst_audio_iec61937_payload: - * @src: a buffer containing the data to payload + * @src: (array length=src_n): a buffer containing the data to payload * @src_n: size of @src in bytes - * @dst: the destination buffer to store the payloaded contents in. Should not - * overlap with @src + * @dst: (array length=dst_n): the destination buffer to store the + * payloaded contents in. Should not overlap with @src * @dst_n: size of @dst in bytes * @spec: the ringbufer spec for @src * diff --git a/gst-libs/gst/audio/gstaudioringbuffer.h b/gst-libs/gst/audio/gstaudioringbuffer.h index 9c871be6ea..0d01f843f9 100644 --- a/gst-libs/gst/audio/gstaudioringbuffer.h +++ b/gst-libs/gst/audio/gstaudioringbuffer.h @@ -43,7 +43,7 @@ typedef struct _GstAudioRingBufferSpec GstAudioRingBufferSpec; /** * GstAudioRingBufferCallback: * @rbuf: a #GstAudioRingBuffer - * @data: target to fill + * @data: (array length=len): target to fill * @len: amount to fill * @user_data: user data *