libgpac
Documentation of the core library of GPAC
rtp_packetizer.c File Reference
#include <gpac/internal/ietf_dev.h>
#include <gpac/constants.h>
#include <gpac/maths.h>
+ Include dependency graph for rtp_packetizer.c:

Macros

#define SDP_ADD_INT(_name, _val)
 
#define SDP_ADD_STR(_name, _val)
 

Functions

void InitSL_RTP (GF_SLConfig *slc)
 
GF_EXPORT GP_RTPPacketizer * gf_rtp_builder_new (u32 rtp_payt, GF_SLConfig *slc, u32 flags, void *cbk_obj, void(*OnNewPacket)(void *cbk, GF_RTPHeader *header), void(*OnPacketDone)(void *cbk, GF_RTPHeader *header), void(*OnDataReference)(void *cbk, u32 payload_size, u32 offset_from_orig), void(*OnData)(void *cbk, u8 *data, u32 data_size, Bool is_head))
 
GF_EXPORT void gf_rtp_builder_del (GP_RTPPacketizer *builder)
 
GF_EXPORT GF_Err gf_rtp_builder_process (GP_RTPPacketizer *builder, u8 *data, u32 data_size, u8 IsAUEnd, u32 FullAUSize, u32 duration, u8 descIndex)
 
GF_EXPORT void gf_rtp_builder_init (GP_RTPPacketizer *builder, u8 PayloadType, u32 PathMTU, u32 max_ptime, u32 StreamType, u32 codecid, u32 PL_ID, u32 avgSize, u32 maxSize, u32 avgTS, u32 maxDTS, u32 IV_length, u32 KI_length, char *pref_mode)
 
void gf_rtp_builder_set_cryp_info (GP_RTPPacketizer *builder, u64 IV, char *key_indicator, Bool is_encrypted)
 
GF_EXPORT Bool gf_rtp_builder_get_payload_name (GP_RTPPacketizer *rtpb, char szPayloadName[20], char szMediaName[20])
 
GF_EXPORT GF_Err gf_rtp_builder_format_sdp (GP_RTPPacketizer *builder, char *payload_name, char **out_sdp_line, char *dsi, u32 dsi_size)
 

Macro Definition Documentation

◆ SDP_ADD_INT

#define SDP_ADD_INT (   _name,
  _val 
)
Value:
{\
if (!is_first) gf_dynstrcat(out_sdp_line, "; ", NULL); \
gf_dynstrcat(out_sdp_line, _name, NULL);\
sprintf(buffer, "%d", _val);\
gf_dynstrcat(out_sdp_line, buffer, "=");\
is_first = 0;\
}
GF_Err gf_dynstrcat(char **str, const char *to_append, const char *sep)
dynamic string concatenation
Definition: error.c:2205

◆ SDP_ADD_STR

#define SDP_ADD_STR (   _name,
  _val 
)
Value:
{\
if (!is_first) gf_dynstrcat(out_sdp_line, "; ", NULL);\
gf_dynstrcat(out_sdp_line, _name, NULL);\
gf_dynstrcat(out_sdp_line, _val, "=");\
is_first = 0;\
}

Function Documentation

◆ InitSL_RTP()

void InitSL_RTP ( GF_SLConfig slc)
+ Here is the caller graph for this function: