GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
rtp_packetizer.c File Reference
#include <gpac/internal/ietf_dev.h>
#include <gpac/constants.h>
#include <gpac/math.h>
+ Include dependency graph for rtp_packetizer.c:

Macros

#define SDP_ADD_INT(_name, _val)   { if (!is_first) strcat(sdpLine, "; "); sprintf(buffer, "%s=%d", _name, _val); strcat(sdpLine, buffer); is_first = 0;}
 
#define SDP_ADD_STR(_name, _val)   { if (!is_first) strcat(sdpLine, "; "); sprintf(buffer, "%s=%s", _name, _val); strcat(sdpLine, buffer); is_first = 0;}
 

Functions

void InitSL_RTP (GF_SLConfig *slc)
 
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, char *data, u32 data_size, Bool is_head))
 
void gf_rtp_builder_del (GP_RTPPacketizer *builder)
 
GF_Err gf_rtp_builder_process (GP_RTPPacketizer *builder, char *data, u32 data_size, u8 IsAUEnd, u32 FullAUSize, u32 duration, u8 descIndex)
 
void gf_rtp_builder_init (GP_RTPPacketizer *builder, u8 PayloadType, u32 PathMTU, u32 max_ptime, u32 StreamType, u32 OTI, u32 PL_ID, u32 avgSize, u32 maxSize, u32 avgTS, u32 maxDTS, u32 IV_length, u32 KI_length, char *pref_mode)
 
void gp_rtp_builder_set_cryp_info (GP_RTPPacketizer *builder, u64 IV, char *key_indicator, Bool is_encrypted)
 
Bool gf_rtp_builder_get_payload_name (GP_RTPPacketizer *rtpb, char *szPayloadName, char *szMediaName)
 
GF_Err gf_rtp_builder_format_sdp (GP_RTPPacketizer *builder, char *payload_name, char *sdpLine, char *dsi, u32 dsi_size)
 

Macro Definition Documentation

#define SDP_ADD_INT (   _name,
  _val 
)    { if (!is_first) strcat(sdpLine, "; "); sprintf(buffer, "%s=%d", _name, _val); strcat(sdpLine, buffer); is_first = 0;}
#define SDP_ADD_STR (   _name,
  _val 
)    { if (!is_first) strcat(sdpLine, "; "); sprintf(buffer, "%s=%s", _name, _val); strcat(sdpLine, buffer); is_first = 0;}

Function Documentation

void InitSL_RTP ( GF_SLConfig slc)

+ Here is the caller graph for this function:

GP_RTPPacketizer* gf_rtp_builder_new ( u32  rtp_payt,
GF_SLConfig slc,
u32  flags,
void *  cbk_obj,
void(*)(void *cbk, GF_RTPHeader *header)  OnNewPacket,
void(*)(void *cbk, GF_RTPHeader *header)  OnPacketDone,
void(*)(void *cbk, u32 payload_size, u32 offset_from_orig)  OnDataReference,
void(*)(void *cbk, char *data, u32 data_size, Bool is_head)  OnData 
)

+ Here is the caller graph for this function:

void gf_rtp_builder_del ( GP_RTPPacketizer *  builder)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_rtp_builder_process ( GP_RTPPacketizer *  builder,
char *  data,
u32  data_size,
u8  IsAUEnd,
u32  FullAUSize,
u32  duration,
u8  descIndex 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_rtp_builder_init ( GP_RTPPacketizer *  builder,
u8  PayloadType,
u32  PathMTU,
u32  max_ptime,
u32  StreamType,
u32  OTI,
u32  PL_ID,
u32  avgSize,
u32  maxSize,
u32  avgTS,
u32  maxDTS,
u32  IV_length,
u32  KI_length,
char *  pref_mode 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gp_rtp_builder_set_cryp_info ( GP_RTPPacketizer *  builder,
u64  IV,
char *  key_indicator,
Bool  is_encrypted 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_rtp_builder_get_payload_name ( GP_RTPPacketizer *  rtpb,
char *  szPayloadName,
char *  szMediaName 
)

+ Here is the caller graph for this function:

GF_Err gf_rtp_builder_format_sdp ( GP_RTPPacketizer *  builder,
char *  payload_name,
char *  sdpLine,
char *  dsi,
u32  dsi_size 
)

+ Here is the caller graph for this function: