Fix vf_tcdump's compilation
[mplayer/kovensky.git] / libmpdemux / demux_rtp_internal.h
blobfb8f582b530c2b9527c85bae070d28f82501b8b0
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_INTERNAL_H
20 #define MPLAYER_DEMUX_RTP_INTERNAL_H
22 #include <stdlib.h>
24 extern "C" {
25 #include "demuxer.h"
26 #ifdef CONFIG_LIBAVCODEC
27 #include "libavcodec/avcodec.h"
28 #endif
31 #ifndef _LIVEMEDIA_HH
32 #undef STREAM_SEEK
33 #include <liveMedia.hh>
34 #endif
36 // Codec-specific initialization routines:
37 void rtpCodecInitialize_video(demuxer_t* demuxer,
38 MediaSubsession* subsession, unsigned& flags);
39 void rtpCodecInitialize_audio(demuxer_t* demuxer,
40 MediaSubsession* subsession, unsigned& flags);
42 // Flags that may be set by the above routines:
43 #define RTPSTATE_IS_MPEG12_VIDEO 0x1 // is a MPEG-1 or 2 video stream
44 #define RTPSTATE_IS_MULTIPLEXED 0x2 // is a combined audio+video stream
46 // A routine to wait for the first packet of a RTP stream to arrive.
47 // (For some RTP payload formats, codecs cannot be fully initialized until
48 // we've started receiving data.)
49 Boolean awaitRTPPacket(demuxer_t* demuxer, demux_stream_t* ds,
50 unsigned char*& packetData, unsigned& packetDataLen,
51 float& pts);
52 // "streamType": 0 => video; 1 => audio
53 // This routine returns False if the input stream has closed
55 #endif /* MPLAYER_DEMUX_RTP_INTERNAL_H */