Mercurial > mplayer.hg
diff libmpdemux/demux_rtp.h @ 6910:1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
see <http://www.live.com/mplayer/> for details.
author | arpi |
---|---|
date | Mon, 05 Aug 2002 00:39:07 +0000 |
parents | |
children | 99d459e7fdb9 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libmpdemux/demux_rtp.h Mon Aug 05 00:39:07 2002 +0000 @@ -0,0 +1,33 @@ +#ifndef _DEMUX_RTP_H +#define _DEMUX_RTP_H + +#include <stdlib.h> +#include <stdio.h> + +#ifndef __STREAM_H +#include "stream.h" +#endif +#ifndef __DEMUXER_H +#include "demuxer.h" +#endif + +// Open a SDP file: +stream_t* stream_open_sdp(int fd, off_t fileSize, int* file_format); + +// Open a RTSP URL: +int rtsp_streaming_start(stream_t* stream); + +// Open a RTP demuxer (which was initiated either from a SDP file, +// or from a RTSP URL): +void demux_open_rtp(demuxer_t* demuxer); + +// Test whether a RTP demuxer is for a MPEG stream: +int demux_is_mpeg_rtp_stream(demuxer_t* demuxer); + +// Read from a RTP demuxer: +int demux_rtp_fill_buffer(demuxer_t *demux, demux_stream_t* ds); + +// Close a RTP demuxer +void demux_close_rtp(demuxer_t* demuxer); + +#endif