diff options
author | Martin Storsjö <martin@martin.st> | 2010-10-29 08:43:57 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-10-29 08:43:57 +0000 |
commit | 0526c6f7c7852730e4d3da3dd1d070deb00e5043 (patch) | |
tree | 4cccfc5da46c27036235039dd8ae85725a242de4 /libavformat/rtsp.h | |
parent | c2688f3ac80e04799fc5e97cece83c45a70b9e56 (diff) | |
download | ffmpeg-0526c6f7c7852730e4d3da3dd1d070deb00e5043.tar.gz |
rtsp: Split out the RTSP demuxer functions to a separate, new file
Originally committed as revision 25601 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.h')
-rw-r--r-- | libavformat/rtsp.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index 03edc4e5bc..8997532cc2 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -469,9 +469,33 @@ void ff_rtsp_close_streams(AVFormatContext *s); void ff_rtsp_close_connections(AVFormatContext *rt); /** + * Get the description of the stream and set up the RTSPStream child + * objects. + */ +int ff_rtsp_setup_input_streams(AVFormatContext *s, RTSPMessageHeader *reply); + +/** * Announce the stream to the server and set up the RTSPStream child * objects for each media stream. */ int ff_rtsp_setup_output_streams(AVFormatContext *s, const char *addr); +/** + * Parse a SDP description of streams by populating an RTSPState struct + * within the AVFormatContext. + */ +int ff_sdp_parse(AVFormatContext *s, const char *content); + +/** + * Receive one RTP packet from an TCP interleaved RTSP stream. + */ +int ff_rtsp_tcp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st, + uint8_t *buf, int buf_size); + +/** + * Receive one packet from the RTSPStreams set up in the AVFormatContext + * (which should contain a RTSPState struct as priv_data). + */ +int ff_rtsp_fetch_packet(AVFormatContext *s, AVPacket *pkt); + #endif /* AVFORMAT_RTSP_H */ |