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
|
|
16 #include <liveMedia.hh>
|
|
17 #endif
|
|
18
|
|
19 // Codec-specific initialization routines:
|
|
20 void rtpCodecInitialize_video(demuxer_t* demuxer,
|
|
21 MediaSubsession* subsession, unsigned& flags);
|
|
22 void rtpCodecInitialize_audio(demuxer_t* demuxer,
|
|
23 MediaSubsession* subsession, unsigned& flags);
|
|
24
|
|
25 // Flags that may be set by the above routines:
|
|
26 #define RTPSTATE_IS_MPEG 0x1 // is an MPEG audio, video or transport stream
|
|
27
|
|
28 // A routine to wait for the first packet of a RTP stream to arrive.
|
|
29 // (For some RTP payload formats, codecs cannot be fully initialized until
|
|
30 // we've started receiving data.)
|
|
31 Boolean awaitRTPPacket(demuxer_t* demuxer, unsigned streamType,
|
|
32 unsigned char*& packetData, unsigned& packetDataLen);
|
|
33 // "streamType": 0 => video; 1 => audio
|
|
34 // This routine returns False if the input stream has closed
|
|
35
|
|
36 #endif
|