VLC  4.0.0-dev
Macros | Functions | Variables
rtp.c File Reference

Real-Time Protocol (RTP) demux module for VLC media player. More...

Include dependency graph for rtp.c:

Macros

#define IPPROTO_DCCP   33 /* IANA */
 
#define IPPROTO_UDPLITE   136 /* from IANA */
 
#define RTCP_PORT_TEXT   N_("RTCP (local) port")
 
#define RTCP_PORT_LONGTEXT
 
#define SRTP_KEY_TEXT   N_("SRTP key (hexadecimal)")
 
#define SRTP_KEY_LONGTEXT
 
#define SRTP_SALT_TEXT   N_("SRTP salt (hexadecimal)")
 
#define SRTP_SALT_LONGTEXT
 
#define RTP_MAX_SRC_TEXT   N_("Maximum RTP sources")
 
#define RTP_MAX_SRC_LONGTEXT
 
#define RTP_TIMEOUT_TEXT   N_("RTP source timeout (sec)")
 
#define RTP_TIMEOUT_LONGTEXT
 
#define RTP_MAX_DROPOUT_TEXT   N_("Maximum RTP sequence number dropout")
 
#define RTP_MAX_DROPOUT_LONGTEXT
 
#define RTP_MAX_MISORDER_TEXT   N_("Maximum RTP sequence number misordering")
 
#define RTP_MAX_MISORDER_LONGTEXT
 
#define RTP_DYNAMIC_PT_TEXT
 
#define RTP_DYNAMIC_PT_LONGTEXT
 

Functions

static int extract_port (char **phost)
 Extracts port number from "[host]:port" or "host:port" strings, and remove brackets from the host name. More...
 
static int Control (demux_t *demux, int query, va_list args)
 Control callback. More...
 
static void Close (vlc_object_t *obj)
 Releases resources. More...
 
static int OpenSDP (vlc_object_t *obj)
 
static int OpenURL (vlc_object_t *obj)
 Probes and initializes. More...
 
DLL_SYMBOL int CDECL_SYMBOL vlc_entry__MODULE_NAME (vlc_set_cb vlc_set, void *opaque)
 
EXTERN_SYMBOL const DLL_SYMBOL char *CDECL_SYMBOL vlc_entry_api_version__MODULE_NAME (void)
 
EXTERN_SYMBOL const DLL_SYMBOL char *CDECL_SYMBOL VLC_SYMBOL() vlc_entry_api_version (void)
 

Variables

static const char *const dynamic_pt_list [] = { "theora" }
 
static const char *const dynamic_pt_list_text [] = { "Theora Encoded Video" }
 

Detailed Description

Real-Time Protocol (RTP) demux module for VLC media player.

Macro Definition Documentation

◆ IPPROTO_DCCP

#define IPPROTO_DCCP   33 /* IANA */

◆ IPPROTO_UDPLITE

#define IPPROTO_UDPLITE   136 /* from IANA */

◆ RTCP_PORT_LONGTEXT

#define RTCP_PORT_LONGTEXT
Value:
N_( \
"RTCP packets will be received on this transport protocol port. " \
"If zero, multiplexed RTP/RTCP is used.")

◆ RTCP_PORT_TEXT

#define RTCP_PORT_TEXT   N_("RTCP (local) port")

◆ RTP_DYNAMIC_PT_LONGTEXT

#define RTP_DYNAMIC_PT_LONGTEXT
Value:
N_( \
"This payload format will be assumed for dynamic payload types " \
"(between 96 and 127) if it can't be determined otherwise with " \
"out-of-band mappings (SDP)" )

◆ RTP_DYNAMIC_PT_TEXT

#define RTP_DYNAMIC_PT_TEXT
Value:
N_("RTP payload format assumed for dynamic " \
"payloads")

◆ RTP_MAX_DROPOUT_LONGTEXT

#define RTP_MAX_DROPOUT_LONGTEXT
Value:
N_( \
"RTP packets will be discarded if they are too much ahead (i.e. in the " \
"future) by this many packets from the last received packet." )

◆ RTP_MAX_DROPOUT_TEXT

#define RTP_MAX_DROPOUT_TEXT   N_("Maximum RTP sequence number dropout")

◆ RTP_MAX_MISORDER_LONGTEXT

#define RTP_MAX_MISORDER_LONGTEXT
Value:
N_( \
"RTP packets will be discarded if they are too far behind (i.e. in the " \
"past) by this many packets from the last received packet." )

◆ RTP_MAX_MISORDER_TEXT

#define RTP_MAX_MISORDER_TEXT   N_("Maximum RTP sequence number misordering")

◆ RTP_MAX_SRC_LONGTEXT

#define RTP_MAX_SRC_LONGTEXT
Value:
N_( \
"How many distinct active RTP sources are allowed at a time." )

◆ RTP_MAX_SRC_TEXT

#define RTP_MAX_SRC_TEXT   N_("Maximum RTP sources")

◆ RTP_TIMEOUT_LONGTEXT

#define RTP_TIMEOUT_LONGTEXT
Value:
N_( \
"How long to wait for any packet before a source is expired.")

◆ RTP_TIMEOUT_TEXT

#define RTP_TIMEOUT_TEXT   N_("RTP source timeout (sec)")

◆ SRTP_KEY_LONGTEXT

#define SRTP_KEY_LONGTEXT
Value:
N_( \
"RTP packets will be authenticated and deciphered "\
"with this Secure RTP master shared secret key. "\
"This must be a 32-character-long hexadecimal string.")

◆ SRTP_KEY_TEXT

#define SRTP_KEY_TEXT   N_("SRTP key (hexadecimal)")

◆ SRTP_SALT_LONGTEXT

#define SRTP_SALT_LONGTEXT
Value:
N_( \
"Secure RTP requires a (non-secret) master salt value. " \
"This must be a 28-character-long hexadecimal string.")

◆ SRTP_SALT_TEXT

#define SRTP_SALT_TEXT   N_("SRTP salt (hexadecimal)")

Function Documentation

◆ Close()

static void Close ( vlc_object_t obj)
static

◆ Control()

static int Control ( demux_t demux,
int  query,
va_list  args 
)
static

◆ extract_port()

static int extract_port ( char **  phost)
static

Extracts port number from "[host]:port" or "host:port" strings, and remove brackets from the host name.

Parameters
phostpointer to the string upon entry, pointer to the hostname upon return.
Returns
port number, 0 if missing.

Referenced by OpenURL().

◆ OpenSDP()

static int OpenSDP ( vlc_object_t obj)
static

◆ OpenURL()

static int OpenURL ( vlc_object_t obj)
static

◆ vlc_entry__MODULE_NAME()

DLL_SYMBOL int CDECL_SYMBOL vlc_entry__MODULE_NAME ( vlc_set_cb  vlc_set,
void *  opaque 
)

◆ vlc_entry_api_version()

EXTERN_SYMBOL const DLL_SYMBOL char* CDECL_SYMBOL VLC_SYMBOL() vlc_entry_api_version ( void  )

◆ vlc_entry_api_version__MODULE_NAME()

EXTERN_SYMBOL const DLL_SYMBOL char* CDECL_SYMBOL vlc_entry_api_version__MODULE_NAME ( void  )

Variable Documentation

◆ dynamic_pt_list

const char* const dynamic_pt_list[] = { "theora" }
static

◆ dynamic_pt_list_text

const char* const dynamic_pt_list_text[] = { "Theora Encoded Video" }
static
N_
#define N_(str)
Definition: vlc_fixups.h:375