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
sdp.c File Reference
#include <gpac/ietf.h>
#include <gpac/token.h>
+ Include dependency graph for sdp.c:

Macros

#define SDP_WRITE_STEPALLOC   2048
 
#define SDPM_DESTROY(p)   if (media->p) gf_free(media->p)
 
#define SDP_DESTROY(p)
 
#define SDP_WRITE_ALLOC_STR_WITHOUT_CHECK(str, space)
 
#define SDP_WRITE_ALLOC_STR(str, space)
 
#define SDP_WRITE_ALLOC_INT(d, spa, sig)
 
#define SDP_WRITE_ALLOC_FLOAT(d, spa)
 
#define TEST_SDP_WRITE_SINGLE(type, str, sep)
 
#define SDP_WRITE_CONN(conn)
 

Functions

GF_SDP_FMTPgf_sdp_fmtp_new ()
 
void gf_sdp_fmtp_del (GF_SDP_FMTP *fmtp)
 
GF_SDP_FMTPSDP_GetFMTPForPayload (GF_SDPMedia *media, u32 PayloadType)
 
void SDP_ParseAttribute (GF_SDPInfo *sdp, char *buffer, GF_SDPMedia *media)
 
void gf_sdp_media_del (GF_SDPMedia *media)
 
GF_SDPConnectiongf_sdp_conn_new ()
 
void gf_sdp_conn_del (GF_SDPConnection *conn)
 
GF_SDPMediagf_sdp_media_new ()
 
GF_SDPInfogf_sdp_info_new ()
 
void gf_sdp_info_reset (GF_SDPInfo *sdp)
 
void gf_sdp_info_del (GF_SDPInfo *sdp)
 
Bool SDP_IsDynamicPayload (GF_SDPMedia *media, char *payt)
 
s32 SDP_MakeSeconds (char *buf)
 
GF_Err gf_sdp_info_parse (GF_SDPInfo *sdp, char *sdp_text, u32 text_size)
 
GF_Err SDP_CheckConnection (GF_SDPConnection *conn)
 
GF_Err gf_sdp_info_check (GF_SDPInfo *sdp)
 
GF_Err gf_sdp_info_write (GF_SDPInfo *sdp, char **out_str_buf)
 

Macro Definition Documentation

#define SDP_WRITE_STEPALLOC   2048
#define SDPM_DESTROY (   p)    if (media->p) gf_free(media->p)
#define SDP_DESTROY (   p)
Value:
if (sdp->p) \
gf_free(sdp->p); \
sdp->p = NULL;
void gf_free(void *ptr)
Definition: alloc.c:164
#define NULL
Definition: setup.h:284
#define SDP_WRITE_ALLOC_STR_WITHOUT_CHECK (   str,
  space 
)
Value:
if (strlen(str)+pos + (space ? 1 : 0) >= buf_size) { \
buf_size += SDP_WRITE_STEPALLOC; \
buf = (char*)gf_realloc(buf, sizeof(char)*buf_size); \
} \
strcpy(buf+pos, str); \
pos += (u32) strlen(str); \
if (space) { \
strcat(buf+pos, " "); \
pos += 1; \
}
void * gf_realloc(void *ptr, size_t size)
Definition: alloc.c:159
#define SDP_WRITE_STEPALLOC
Definition: sdp.c:35
uint32_t u32
Definition: setup.h:246
#define SDP_WRITE_ALLOC_STR (   str,
  space 
)
Value:
if (str) { \
} \
#define SDP_WRITE_ALLOC_STR_WITHOUT_CHECK(str, space)
Definition: sdp.c:808
#define SDP_WRITE_ALLOC_INT (   d,
  spa,
  sig 
)
Value:
if (sig < 0) { \
sprintf(temp, "%d", d); \
} else { \
sprintf(temp, "%u", d); \
} \
#define SDP_WRITE_ALLOC_STR_WITHOUT_CHECK(str, space)
Definition: sdp.c:808
#define SDP_WRITE_ALLOC_FLOAT (   d,
  spa 
)
Value:
sprintf(temp, "%.2f", d); \
#define SDP_WRITE_ALLOC_STR_WITHOUT_CHECK(str, space)
Definition: sdp.c:808
#define TEST_SDP_WRITE_SINGLE (   type,
  str,
  sep 
)
Value:
if (str) { \
if (sep) SDP_WRITE_ALLOC_STR(":", 0); \
SDP_WRITE_ALLOC_STR(str, 0); \
SDP_WRITE_ALLOC_STR("\r\n", 0); \
}
#define SDP_WRITE_ALLOC_STR(str, space)
Definition: sdp.c:820
#define SDP_WRITE_CONN (   conn)
Value:
if (conn) { \
SDP_WRITE_ALLOC_STR(conn->net_type, 1); \
SDP_WRITE_ALLOC_STR(conn->add_type, 1); \
SDP_WRITE_ALLOC_STR(conn->host, 0); \
if (gf_sk_is_multicast_address(conn->host)) { \
SDP_WRITE_ALLOC_INT(conn->TTL, 0, 0); \
if (conn->add_count >= 2) { \
SDP_WRITE_ALLOC_INT(conn->add_count, 0, 0); \
} \
} \
SDP_WRITE_ALLOC_STR("\r\n", 0); \
}
#define SDP_WRITE_ALLOC_INT(d, spa, sig)
Definition: sdp.c:825
#define SDP_WRITE_ALLOC_STR(str, space)
Definition: sdp.c:820
u32 gf_sk_is_multicast_address(const char *multi_ip_add)
Definition: os_net.c:874

Function Documentation

GF_SDP_FMTP* gf_sdp_fmtp_new ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sdp_fmtp_del ( GF_SDP_FMTP fmtp)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_SDP_FMTP* SDP_GetFMTPForPayload ( GF_SDPMedia media,
u32  PayloadType 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SDP_ParseAttribute ( GF_SDPInfo sdp,
char *  buffer,
GF_SDPMedia media 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sdp_media_del ( GF_SDPMedia media)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_SDPConnection* gf_sdp_conn_new ( )

+ Here is the caller graph for this function:

void gf_sdp_conn_del ( GF_SDPConnection conn)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_SDPMedia* gf_sdp_media_new ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_SDPInfo* gf_sdp_info_new ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sdp_info_reset ( GF_SDPInfo sdp)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sdp_info_del ( GF_SDPInfo sdp)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool SDP_IsDynamicPayload ( GF_SDPMedia media,
char *  payt 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

s32 SDP_MakeSeconds ( char *  buf)

+ Here is the caller graph for this function:

GF_Err gf_sdp_info_parse ( GF_SDPInfo sdp,
char *  sdp_text,
u32  text_size 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err SDP_CheckConnection ( GF_SDPConnection conn)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_sdp_info_check ( GF_SDPInfo sdp)

media->PortNumber ||

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_sdp_info_write ( GF_SDPInfo sdp,
char **  out_str_buf 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: