libgpac
Documentation of the core library of GPAC
slc.c File Reference
+ Include dependency graph for slc.c:

Functions

GF_Descriptorgf_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)
 

Function Documentation

◆ gf_odf_new_slc()

GF_Descriptor* gf_odf_new_slc ( u8  predef)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_odf_del_slc()

GF_Err gf_odf_del_slc ( GF_SLConfig sl)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_odf_slc_set_pref()

GF_EXPORT GF_Err gf_odf_slc_set_pref ( GF_SLConfig sl)

sets SL predefined (assign all fields according to sl->predefined value)

Parameters
slthe target SL config descriptor
Returns
error if any
+ Here is the caller graph for this function:

◆ GetTSbytesLen()

static u32 GetTSbytesLen ( GF_SLConfig sl)
static
+ Here is the caller graph for this function:

◆ gf_odf_read_slc()

GF_Err gf_odf_read_slc ( GF_BitStream *  bs,
GF_SLConfig sl,
u32  DescSize 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_odf_size_slc()

GF_Err gf_odf_size_slc ( GF_SLConfig sl,
u32 outSize 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_odf_write_slc()

GF_Err gf_odf_write_slc ( GF_BitStream *  bs,
GF_SLConfig sl 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sl_packetize()

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

Parameters
slConfigthe target SL config descriptor
Headerthe SL header for this data block
PDUthe payload to packetize
sizethe payload size
outPacketset to an allocated buffer containing the serialized SL packet - to be destroyed by caller
OutSizeset to the size of the serialized SL packer
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sl_get_header_size()

GF_EXPORT u32 gf_sl_get_header_size ( GF_SLConfig slConfig,
GF_SLHeader Header 
)

gets SL header size

Parameters
slConfigthe target SL config descriptor
Headerthe SL header for this data block
Returns
the size of the SL header in bytes
+ Here is the caller graph for this function:

◆ gf_sl_depacketize()

GF_EXPORT void gf_sl_depacketize ( GF_SLConfig slConfig,
GF_SLHeader Header,
const u8 PDU,
u32  PDULength,
u32 HeaderLen 
)

depacketizes SL-PDU

Parameters
slConfigthe target SL config descriptor
Headerfilled with the decoded SL header
PDUthe SL packet to parse
PDULengththe size of the SL packet
HeaderLenset to size of the SL header - payload will start at PDU + *HeaderLen
+ Here is the call graph for this function:
+ Here is the caller graph for this function: