sdp.c File Reference
Go to the source code of this file.
|
Classes |
| struct | sdp_session_level |
Functions |
| static void | dest_write (char *buff, int size, const char *dest_addr, int ttl) |
| static void | sdp_write_header (char *buff, int size, struct sdp_session_level *s) |
| static int | get_address (char *dest_addr, int size, int *ttl, const char *url) |
| static void | digit_to_char (char *dst, uint8_t src) |
| static char * | data_to_hex (char *buff, const uint8_t *src, int s) |
| static char * | extradata2config (const uint8_t *extradata, int extradata_size) |
| static char * | sdp_media_attributes (char *buff, int size, AVCodecContext *c, int payload_type) |
| static void | sdp_write_media (char *buff, int size, AVCodecContext *c, const char *dest_addr, int port, int ttl) |
| int | avf_sdp_create (AVFormatContext *ac[], int n_files, char *buff, int size) |
| | Generate an SDP for an RTP session.
|
Function Documentation
| static void dest_write |
( |
char * |
buff, |
|
|
int |
size, |
|
|
const char * |
dest_addr, |
|
|
int |
ttl | |
|
) |
| | [static] |
| static void sdp_write_header |
( |
char * |
buff, |
|
|
int |
size, |
|
|
struct sdp_session_level * |
s | |
|
) |
| | [static] |
| static int get_address |
( |
char * |
dest_addr, |
|
|
int |
size, |
|
|
int * |
ttl, |
|
|
const char * |
url | |
|
) |
| | [static] |
| static void digit_to_char |
( |
char * |
dst, |
|
|
uint8_t |
src | |
|
) |
| | [static] |
| static char* data_to_hex |
( |
char * |
buff, |
|
|
const uint8_t * |
src, |
|
|
int |
s | |
|
) |
| | [static] |
| static char* extradata2config |
( |
const uint8_t * |
extradata, |
|
|
int |
extradata_size | |
|
) |
| | [static] |
| static char* sdp_media_attributes |
( |
char * |
buff, |
|
|
int |
size, |
|
|
AVCodecContext * |
c, |
|
|
int |
payload_type | |
|
) |
| | [static] |
| static void sdp_write_media |
( |
char * |
buff, |
|
|
int |
size, |
|
|
AVCodecContext * |
c, |
|
|
const char * |
dest_addr, |
|
|
int |
port, |
|
|
int |
ttl | |
|
) |
| | [static] |
| int avf_sdp_create |
( |
AVFormatContext * |
ac[], |
|
|
int |
n_files, |
|
|
char * |
buff, |
|
|
int |
size | |
|
) |
| | |
Generate an SDP for an RTP session.
- Parameters:
-
| ac | array of AVFormatContexts describing the RTP streams. If the array is composed by only one context, such context can contain multiple AVStreams (one AVStream per RTP stream). Otherwise, all the contexts in the array (an AVCodecContext per RTP stream) must contain only one AVStream |
| n_files | number of AVCodecContexts contained in ac |
| buff | buffer where the SDP will be stored (must be allocated by the caller |
| size | the size of the buffer |
- Returns:
- 0 if OK. AVERROR_xxx if error.
Definition at line 220 of file sdp.c.