Top |
Functions
Functions
gst_riff_create_audio_caps ()
GstCaps * gst_riff_create_audio_caps (guint16 codec_id
,gst_riff_strh *strh
,gst_riff_strf_auds *strf
,GstBuffer *strf_data
,GstBuffer *strd_data
,char **codec_name
,gint channel_reorder_map[18]
);
gst_riff_create_iavs_caps ()
GstCaps * gst_riff_create_iavs_caps (guint32 codec_fcc
,gst_riff_strh *strh
,gst_riff_strf_iavs *strf
,GstBuffer *strf_data
,GstBuffer *strd_data
,char **codec_name
);
gst_riff_create_video_caps ()
GstCaps * gst_riff_create_video_caps (guint32 codec_fcc
,gst_riff_strh *strh
,gst_riff_strf_vids *strf
,GstBuffer *strf_data
,GstBuffer *strd_data
,char **codec_name
);
Parameters
codec_fcc |
fourCC codec for this codec. |
|
strh |
pointer to the strh stream header structure. |
|
strf |
pointer to the strf stream header structure, including any data that is within the range of strf.size, but excluding any additional data withint this chunk but outside strf.size. |
|
strf_data |
a GstBuffer containing the additional data in the strf chunk outside reach of strf.size. Ususally a palette. |
|
strd_data |
a GstBuffer containing the data in the strd stream header chunk. Usually codec initialization data. |
|
codec_name |
if given, will be filled with a human-readable codec name. |
gst_riff_parse_chunk ()
gboolean gst_riff_parse_chunk (GstElement *element
,GstBuffer *buf
,guint *offset
,guint32 *fourcc
,GstBuffer **chunk_data
);
Reads a single chunk.
Parameters
element |
caller element (used for debugging). |
|
buf |
input buffer. |
|
offset |
offset in the buffer in the caller. Is incremented by the read size by this function. |
|
fourcc |
fourcc (returned by this function0 of the chunk. |
|
chunk_data |
buffer (returned by the function) containing the chunk data, which may be NULL if chunksize == 0 |
gst_riff_parse_file_header ()
gboolean gst_riff_parse_file_header (GstElement *element
,GstBuffer *buf
,guint32 *doctype
);
Reads the first few bytes from the provided buffer, checks
if this stream is a RIFF stream, and determines document type.
This function takes ownership of buf
so it should not be used anymore
after calling this function.
gst_riff_parse_info ()
void gst_riff_parse_info (GstElement *element
,GstBuffer *buf
,GstTagList **taglist
);
Parses stream metadata from input data.
gst_riff_parse_strf_auds ()
gboolean gst_riff_parse_strf_auds (GstElement *element
,GstBuffer *buf
,gst_riff_strf_auds **strf
,GstBuffer **data
);
Parses an audio stream's strf structure plus optionally some
extradata from input data. This function takes ownership of buf
.
use.
Parameters
element |
caller element (used for debugging/error). |
|
buf |
input data to be used for parsing, stripped from header. |
|
strf |
a pointer (returned by this function) to a filled-in strf/auds structure. Caller should free it. |
|
data |
a pointer (returned by this function) to a buffer containing extradata for this particular stream (e.g. codec initialization data). |
gst_riff_parse_strf_iavs ()
gboolean gst_riff_parse_strf_iavs (GstElement *element
,GstBuffer *buf
,gst_riff_strf_iavs **strf
,GstBuffer **data
);
Parses a interleaved (also known as "complex") stream´s strf
structure plus optionally some extradata from input data. This
function takes ownership of buf
.
Parameters
element |
caller element (used for debugging/error). |
|
buf |
input data to be used for parsing, stripped from header. |
|
strf |
a pointer (returned by this function) to a filled-in strf/iavs structure. Caller should free it. |
|
data |
a pointer (returned by this function) to a buffer containing extradata for this particular stream (e.g. codec initialization data). |
gst_riff_parse_strf_vids ()
gboolean gst_riff_parse_strf_vids (GstElement *element
,GstBuffer *buf
,gst_riff_strf_vids **strf
,GstBuffer **data
);
Parses a video stream's strf structure plus optionally some
extradata from input data. This function takes ownership of buf
.
Parameters
element |
caller element (used for debugging/error). |
|
buf |
input data to be used for parsing, stripped from header. |
|
strf |
a pointer (returned by this function) to a filled-in strf/vids structure. Caller should free it. |
|
data |
a pointer (returned by this function) to a buffer containing extradata for this particular stream (e.g. palette, codec initialization data). |
gst_riff_parse_strh ()
gboolean gst_riff_parse_strh (GstElement *element
,GstBuffer *buf
,gst_riff_strh **strh
);
Parses a strh structure from input data. Takes ownership of buf
.
gst_riff_read_chunk ()
GstFlowReturn gst_riff_read_chunk (GstElement *element
,GstPad *pad
,guint64 *offset
,guint32 *tag
,GstBuffer **chunk_data
);
Reads a single chunk of data. 'JUNK' chunks are skipped automatically.