Mercurial > mplayer.hg
annotate libmpdemux/demux_rtp_internal.h @ 27000:c86217387637
Add command to create dhahelper device to install-dhahelper target.
author | diego |
---|---|
date | Sun, 08 Jun 2008 14:18:51 +0000 |
parents | 1318e956c092 |
children | e7c989f7a7c9 |
rev | line source |
---|---|
26029 | 1 #ifndef MPLAYER_DEMUX_RTP_INTERNAL_H |
2 #define MPLAYER_DEMUX_RTP_INTERNAL_H | |
9250 | 3 |
4 #include <stdlib.h> | |
5 | |
6 extern "C" { | |
23689
3f0d00abc073
Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents:
22852
diff
changeset
|
7 #ifndef STREAM_H |
22605
4d81dbdf46b9
Add explicit location for headers from the stream/ directory.
diego
parents:
22454
diff
changeset
|
8 #include "stream/stream.h" |
9250 | 9 #endif |
23689
3f0d00abc073
Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents:
22852
diff
changeset
|
10 #ifndef DEMUXER_H |
9250 | 11 #include "demuxer.h" |
12 #endif | |
26069
1318e956c092
FFmpeg now uses different (unified) #include paths.
diego
parents:
26029
diff
changeset
|
13 #ifdef USE_LIBAVCODEC |
22852 | 14 #include "libavcodec/avcodec.h" |
15 #endif | |
9250 | 16 } |
17 | |
18 #ifndef _LIVEMEDIA_HH | |
12530
773ad7374436
MinGW compilation fix, idea and approval by Sascha Sommer
diego
parents:
11754
diff
changeset
|
19 #undef STREAM_SEEK |
9250 | 20 #include <liveMedia.hh> |
21 #endif | |
22 | |
23 // Codec-specific initialization routines: | |
24 void rtpCodecInitialize_video(demuxer_t* demuxer, | |
25 MediaSubsession* subsession, unsigned& flags); | |
26 void rtpCodecInitialize_audio(demuxer_t* demuxer, | |
27 MediaSubsession* subsession, unsigned& flags); | |
28 | |
29 // Flags that may be set by the above routines: | |
9565
e74916774667
Improved RTP packet buffering, by relying on the underlying OS's UDP
rsf
parents:
9250
diff
changeset
|
30 #define RTPSTATE_IS_MPEG12_VIDEO 0x1 // is a MPEG-1 or 2 video stream |
10476
1bc3ac054b08
Added support for checking whether a RTP demuxer had combined audio+video data.
rsf
parents:
9565
diff
changeset
|
31 #define RTPSTATE_IS_MULTIPLEXED 0x2 // is a combined audio+video stream |
9250 | 32 |
33 // A routine to wait for the first packet of a RTP stream to arrive. | |
34 // (For some RTP payload formats, codecs cannot be fully initialized until | |
35 // we've started receiving data.) | |
9565
e74916774667
Improved RTP packet buffering, by relying on the underlying OS's UDP
rsf
parents:
9250
diff
changeset
|
36 Boolean awaitRTPPacket(demuxer_t* demuxer, demux_stream_t* ds, |
e74916774667
Improved RTP packet buffering, by relying on the underlying OS's UDP
rsf
parents:
9250
diff
changeset
|
37 unsigned char*& packetData, unsigned& packetDataLen, |
e74916774667
Improved RTP packet buffering, by relying on the underlying OS's UDP
rsf
parents:
9250
diff
changeset
|
38 float& pts); |
9250 | 39 // "streamType": 0 => video; 1 => audio |
40 // This routine returns False if the input stream has closed | |
41 | |
26029 | 42 #endif /* MPLAYER_DEMUX_RTP_INTERNAL_H */ |