aspect.c: use fallback if screen dimensions are not known
[mplayer/glamo.git] / libmpdemux / demux_rtp.h
blob6d3462d8560adc19fe79755d1b241cd39355357d
1 /*
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
22 #include <stdlib.h>
23 #include <stdio.h>
24 #include "demuxer.h"
26 // Open a RTP demuxer (which was initiated either from a SDP file,
27 // or from a RTSP URL):
28 demuxer_t* demux_open_rtp(demuxer_t* demuxer);
30 // Test whether a RTP demuxer is for a MPEG stream:
31 int demux_is_mpeg_rtp_stream(demuxer_t* demuxer);
33 // Test whether a RTP demuxer contains combined (multiplexed)
34 // audio+video (and so needs to be demuxed by higher-level code):
35 int demux_is_multiplexed_rtp_stream(demuxer_t* demuxer);
37 // Read from a RTP demuxer:
38 int demux_rtp_fill_buffer(demuxer_t *demux, demux_stream_t* ds);
40 // Close a RTP demuxer
41 void demux_close_rtp(demuxer_t* demuxer);
43 #endif /* MPLAYER_DEMUX_RTP_H */