![]() |
libgpac
Documentation of the core library of GPAC
|
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... | |
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:
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
bsroot | the root node of XML document describing the bitstream to create |
parent_url | URL of the parent document |
out_data | pointer to output buffer allocated by the function to store the result |
out_data_size | pointer to output buffer size allocated by the function to store the result |
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
Parses XML bit sequence in an existing bitstream object. The syntax for the XML is the same as in gf_xml_parse_bit_sequence
bsroot | the root node of XML document describing the bitstream to create |
parent_url | URL of the parent document |
base_media | URL of base media file if any, relative to parent url. May be NULL |
bs | target bitstream to write the result into. The bitstream must be a dynamic write bitstream object |