libavformat/rtsp.h File Reference

#include <stdint.h>
#include "avformat.h"
#include "rtspcodes.h"
#include "rtpdec.h"
#include "network.h"

Go to the source code of this file.

Data Structures

struct  RTSPTransportField
 This describes a single item in the "Transport:" line of one stream as negotiated by the SETUP RTSP command. More...
struct  RTSPMessageHeader
 This describes the server response to each RTSP command. More...
struct  RTSPState
 Private data for the RTSP demuxer. More...
struct  RTSPStream
 Describes a single stream, as identified by a single m= line block in the SDP content. More...

Defines

#define RTSP_DEFAULT_PORT   554
#define RTSP_MAX_TRANSPORTS   8
#define RTSP_TCP_MAX_PACKET_SIZE   1472
#define RTSP_DEFAULT_NB_AUDIO_CHANNELS   2
#define RTSP_DEFAULT_AUDIO_SAMPLERATE   44100
#define RTSP_RTP_PORT_MIN   5000
#define RTSP_RTP_PORT_MAX   10000

Enumerations

enum  RTSPLowerTransport { RTSP_LOWER_TRANSPORT_UDP = 0, RTSP_LOWER_TRANSPORT_TCP = 1, RTSP_LOWER_TRANSPORT_UDP_MULTICAST = 2, RTSP_LOWER_TRANSPORT_NB }
 Network layer over which RTP/etc packet data will be transported. More...
enum  RTSPTransport { RTSP_TRANSPORT_RTP, RTSP_TRANSPORT_RDT, RTSP_TRANSPORT_NB }
 Packet profile of the data that we will be receiving. More...
enum  RTSPClientState { RTSP_STATE_IDLE, RTSP_STATE_PLAYING, RTSP_STATE_PAUSED }
 Client state, i.e. More...
enum  RTSPServerType { RTSP_SERVER_RTP, RTSP_SERVER_REAL, RTSP_SERVER_WMS, RTSP_SERVER_NB }
 Identifies particular servers that require special handling, such as standards-incompliant "Transport:" lines in the SETUP request. More...

Functions

int rtsp_init (void)
void rtsp_parse_line (RTSPMessageHeader *reply, const char *buf)
int rtsp_pause (AVFormatContext *s)
int rtsp_resume (AVFormatContext *s)

Variables

int rtsp_default_protocols
int rtsp_rtp_port_min
int rtsp_rtp_port_max


Define Documentation

#define RTSP_DEFAULT_AUDIO_SAMPLERATE   44100

Definition at line 55 of file rtsp.h.

Referenced by sdp_parse_rtpmap().

#define RTSP_DEFAULT_NB_AUDIO_CHANNELS   2

Definition at line 54 of file rtsp.h.

Referenced by sdp_parse_rtpmap().

#define RTSP_DEFAULT_PORT   554

Definition at line 51 of file rtsp.h.

Referenced by rtsp_read_header().

#define RTSP_MAX_TRANSPORTS   8

Definition at line 52 of file rtsp.h.

#define RTSP_RTP_PORT_MAX   10000

Definition at line 57 of file rtsp.h.

Referenced by make_setup_request().

#define RTSP_RTP_PORT_MIN   5000

Definition at line 56 of file rtsp.h.

Referenced by make_setup_request().

#define RTSP_TCP_MAX_PACKET_SIZE   1472

Definition at line 53 of file rtsp.h.

Referenced by http_prepare_data(), and rtp_new_av_stream().


Enumeration Type Documentation

Client state, i.e.

whether we are currently receiving data (PLAYING) or setup-but-not-receiving (PAUSED). State can be changed in applications by calling av_read_play/pause().

Enumerator:
RTSP_STATE_IDLE  not initialized
RTSP_STATE_PLAYING  initialized and receiving data
RTSP_STATE_PAUSED  initialized, but not receiving data

Definition at line 142 of file rtsp.h.

Network layer over which RTP/etc packet data will be transported.

Enumerator:
RTSP_LOWER_TRANSPORT_UDP  UDP/unicast.
RTSP_LOWER_TRANSPORT_TCP  TCP; interleaved in RTSP.
RTSP_LOWER_TRANSPORT_UDP_MULTICAST  UDP/multicast.
RTSP_LOWER_TRANSPORT_NB 

Definition at line 33 of file rtsp.h.

Identifies particular servers that require special handling, such as standards-incompliant "Transport:" lines in the SETUP request.

Enumerator:
RTSP_SERVER_RTP  Standards-compliant RTP-server.
RTSP_SERVER_REAL  Realmedia-style server.
RTSP_SERVER_WMS  Windows Media server.
RTSP_SERVER_NB 

Definition at line 152 of file rtsp.h.

Packet profile of the data that we will be receiving.

Real servers commonly send RDT (although they can sometimes send RTP as well), whereas most others will send RTP.

Enumerator:
RTSP_TRANSPORT_RTP  Standards-compliant RTP.
RTSP_TRANSPORT_RDT  Realmedia Data Transport.
RTSP_TRANSPORT_NB 

Definition at line 45 of file rtsp.h.


Function Documentation

int rtsp_init ( void   ) 

void rtsp_parse_line ( RTSPMessageHeader reply,
const char *  buf 
)

Definition at line 675 of file rtsp.c.

Referenced by rtsp_parse_request(), and rtsp_send_cmd().

int rtsp_pause ( AVFormatContext s  ) 

int rtsp_resume ( AVFormatContext s  ) 


Variable Documentation

Definition at line 49 of file rtsp.c.


Generated on Fri Oct 26 02:35:46 2012 for FFmpeg by  doxygen 1.5.8