mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
audio: add missing array and element-type annotations for binary data
This commit is contained in:
parent
fd91104636
commit
17815020fd
4 changed files with 11 additions and 9 deletions
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue