libgpac
Documentation of the core library of GPAC
XML Binary Formatting
+ Collaboration diagram for XML Binary Formatting:

Functions

GF_Err gf_xml_parse_bit_sequence (GF_XMLNode *bsroot, const char *parent_url, u8 **out_data, u32 *out_data_size)
 bit-sequence XML parser More...
 
GF_Err gf_xml_parse_bit_sequence_bs (GF_XMLNode *bsroot, const char *parent_url, const char *base_media, GF_BitStream *bs)
 bit-sequence XML parser More...
 

Detailed Description

Binarization using XML in GPAC

GPAC uses a special node name BS (for BitSequence) in XML documents to transform text data into sequences of bits. This function inspects all child elements of the node and converts children node names BS into bits. BS take the following attributes:

Function Documentation

◆ gf_xml_parse_bit_sequence()

GF_Err gf_xml_parse_bit_sequence ( GF_XMLNode bsroot,
const char *  parent_url,
u8 **  out_data,
u32 out_data_size 
)
Parameters
bsrootthe root node of XML document describing the bitstream to create
parent_urlURL of the parent document
out_datapointer to output buffer allocated by the function to store the result
out_data_sizepointer to output buffer size allocated by the function to store the result
Returns
error code if any or GF_OK
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_xml_parse_bit_sequence_bs()

GF_Err gf_xml_parse_bit_sequence_bs ( GF_XMLNode bsroot,
const char *  parent_url,
const char *  base_media,
GF_BitStream *  bs 
)

Parses XML bit sequence in an existing bitstream object. The syntax for the XML is the same as in gf_xml_parse_bit_sequence

Parameters
bsrootthe root node of XML document describing the bitstream to create
parent_urlURL of the parent document
base_mediaURL of base media file if any, relative to parent url. May be NULL
bstarget bitstream to write the result into. The bitstream must be a dynamic write bitstream object
Returns
error code or GF_OK
+ Here is the call graph for this function:
+ Here is the caller graph for this function: