Mercurial > mplayer.hg
annotate libmpdemux/demux_rtp_internal.h @ 15532:f05963f1dff6
Document lavf muxers.
author | diego |
---|---|
date | Fri, 20 May 2005 23:22:54 +0000 |
parents | 5b10f76f7a9d |
children | 0f5455fc2d5d |
rev | line source |
---|---|
9250 | 1 #ifndef _DEMUX_RTP_INTERNAL_H |
2 #define _DEMUX_RTP_INTERNAL_H | |
3 | |
4 #include <stdlib.h> | |
5 | |
6 extern "C" { | |
7 #ifndef __STREAM_H | |
8 #include "stream.h" | |
9 #endif | |
10 #ifndef __DEMUXER_H | |
11 #include "demuxer.h" | |
12 #endif | |
13 } | |
14 | |
15 #ifndef _LIVEMEDIA_HH | |
12530
773ad7374436
MinGW compilation fix, idea and approval by Sascha Sommer
diego
parents:
11754
diff
changeset
|
16 #undef STREAM_SEEK |
9250 | 17 #include <liveMedia.hh> |
18 #endif | |
19 | |
20 // Codec-specific initialization routines: | |
21 void rtpCodecInitialize_video(demuxer_t* demuxer, | |
22 MediaSubsession* subsession, unsigned& flags); | |
23 void rtpCodecInitialize_audio(demuxer_t* demuxer, | |
24 MediaSubsession* subsession, unsigned& flags); | |
25 | |
26 // 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
|
27 #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
|
28 #define RTPSTATE_IS_MULTIPLEXED 0x2 // is a combined audio+video stream |
9250 | 29 |
30 // A routine to wait for the first packet of a RTP stream to arrive. | |
31 // (For some RTP payload formats, codecs cannot be fully initialized until | |
32 // we've started receiving data.) | |
9565
e74916774667
Improved RTP packet buffering, by relying on the underlying OS's UDP
rsf
parents:
9250
diff
changeset
|
33 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
|
34 unsigned char*& packetData, unsigned& packetDataLen, |
e74916774667
Improved RTP packet buffering, by relying on the underlying OS's UDP
rsf
parents:
9250
diff
changeset
|
35 float& pts); |
9250 | 36 // "streamType": 0 => video; 1 => audio |
37 // This routine returns False if the input stream has closed | |
38 | |
9565
e74916774667
Improved RTP packet buffering, by relying on the underlying OS's UDP
rsf
parents:
9250
diff
changeset
|
39 // A routine for adding our own data to an incoming RTP data stream: |
e74916774667
Improved RTP packet buffering, by relying on the underlying OS's UDP
rsf
parents:
9250
diff
changeset
|
40 Boolean insertRTPData(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
|
41 unsigned char* data, unsigned dataLen); |
e74916774667
Improved RTP packet buffering, by relying on the underlying OS's UDP
rsf
parents:
9250
diff
changeset
|
42 |
9250 | 43 #endif |