Top |
Description
This module contains some helper functions for encapsulating various audio formats in IEC 61937 headers and padding.
Functions
gst_audio_iec61937_frame_size ()
guint
gst_audio_iec61937_frame_size (const GstAudioRingBufferSpec *spec
);
Calculated the size of the buffer expected by gst_audio_iec61937_payload()
for
payloading type from spec
.
gst_audio_iec61937_payload ()
gboolean gst_audio_iec61937_payload (const guint8 *src
,guint src_n
,guint8 *dst
,guint dst_n
,const GstAudioRingBufferSpec *spec
,gint endianness
);
Payloads src
in the form specified by IEC 61937 for the type from spec
and
stores the result in dst
. src
must contain exactly one frame of data and
the frame is not checked for errors.
Parameters
src |
a buffer containing the data to payload. |
[array length=src_n] |
src_n |
size of |
|
dst |
the destination buffer to store the
payloaded contents in. Should not overlap with |
[array length=dst_n] |
dst_n |
size of |
|
spec |
the ringbufer spec for |
|
endianness |
the expected byte order of the payloaded data |