2 * This file is part of MPlayer.
4 * MPlayer is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * MPlayer is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef MPLAYER_DEMUX_RTP_H
20 #define MPLAYER_DEMUX_RTP_H
26 #include "stream/stream.h"
32 // Open a RTP demuxer (which was initiated either from a SDP file,
33 // or from a RTSP URL):
34 demuxer_t
* demux_open_rtp(demuxer_t
* demuxer
);
36 // Test whether a RTP demuxer is for a MPEG stream:
37 int demux_is_mpeg_rtp_stream(demuxer_t
* demuxer
);
39 // Test whether a RTP demuxer contains combined (multiplexed)
40 // audio+video (and so needs to be demuxed by higher-level code):
41 int demux_is_multiplexed_rtp_stream(demuxer_t
* demuxer
);
43 // Read from a RTP demuxer:
44 int demux_rtp_fill_buffer(demuxer_t
*demux
, demux_stream_t
* ds
);
46 // Close a RTP demuxer
47 void demux_close_rtp(demuxer_t
* demuxer
);
49 #endif /* MPLAYER_DEMUX_RTP_H */