libgpac
Documentation of the core library of GPAC
|
#include <gpac/internal/odf_dev.h>
Functions | |
GF_Descriptor * | gf_odf_new_slc (u8 predef) |
GF_Err | gf_odf_del_slc (GF_SLConfig *sl) |
GF_EXPORT GF_Err | gf_odf_slc_set_pref (GF_SLConfig *sl) |
static u32 | GetTSbytesLen (GF_SLConfig *sl) |
GF_Err | gf_odf_read_slc (GF_BitStream *bs, GF_SLConfig *sl, u32 DescSize) |
GF_Err | gf_odf_size_slc (GF_SLConfig *sl, u32 *outSize) |
GF_Err | gf_odf_write_slc (GF_BitStream *bs, GF_SLConfig *sl) |
GF_EXPORT void | gf_sl_packetize (GF_SLConfig *slConfig, GF_SLHeader *Header, u8 *PDU, u32 size, u8 **outPacket, u32 *OutSize) |
GF_EXPORT u32 | gf_sl_get_header_size (GF_SLConfig *slConfig, GF_SLHeader *Header) |
GF_EXPORT void | gf_sl_depacketize (GF_SLConfig *slConfig, GF_SLHeader *Header, const u8 *PDU, u32 PDULength, u32 *HeaderLen) |
GF_Descriptor* gf_odf_new_slc | ( | u8 | predef | ) |
GF_Err gf_odf_del_slc | ( | GF_SLConfig * | sl | ) |
GF_EXPORT GF_Err gf_odf_slc_set_pref | ( | GF_SLConfig * | sl | ) |
sets SL predefined (assign all fields according to sl->predefined value)
sl | the target SL config descriptor |
|
static |
GF_Err gf_odf_read_slc | ( | GF_BitStream * | bs, |
GF_SLConfig * | sl, | ||
u32 | DescSize | ||
) |
GF_Err gf_odf_size_slc | ( | GF_SLConfig * | sl, |
u32 * | outSize | ||
) |
GF_Err gf_odf_write_slc | ( | GF_BitStream * | bs, |
GF_SLConfig * | sl | ||
) |
GF_EXPORT void gf_sl_packetize | ( | GF_SLConfig * | slConfig, |
GF_SLHeader * | Header, | ||
u8 * | PDU, | ||
u32 | size, | ||
u8 ** | outPacket, | ||
u32 * | OutSize | ||
) |
packetizes SL-PDU. If PDU is NULL or size 0, only writes the SL header
slConfig | the target SL config descriptor |
Header | the SL header for this data block |
PDU | the payload to packetize |
size | the payload size |
outPacket | set to an allocated buffer containing the serialized SL packet - to be destroyed by caller |
OutSize | set to the size of the serialized SL packer |
GF_EXPORT u32 gf_sl_get_header_size | ( | GF_SLConfig * | slConfig, |
GF_SLHeader * | Header | ||
) |
gets SL header size
slConfig | the target SL config descriptor |
Header | the SL header for this data block |
GF_EXPORT void gf_sl_depacketize | ( | GF_SLConfig * | slConfig, |
GF_SLHeader * | Header, | ||
const u8 * | PDU, | ||
u32 | PDULength, | ||
u32 * | HeaderLen | ||
) |
depacketizes SL-PDU
slConfig | the target SL config descriptor |
Header | filled with the decoded SL header |
PDU | the SL packet to parse |
PDULength | the size of the SL packet |
HeaderLen | set to size of the SL header - payload will start at PDU + *HeaderLen |