Mercurial > mplayer.hg
annotate libmpdemux/demux_rtp.h @ 25227:75837c33484b
Mark more m_option_t uses as const
author | reimar |
---|---|
date | Sun, 02 Dec 2007 15:46:44 +0000 |
parents | 3f0d00abc073 |
children | 3baf6a2283da |
rev | line source |
---|---|
23689
3f0d00abc073
Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents:
22605
diff
changeset
|
1 #ifndef DEMUX_RTP_H |
3f0d00abc073
Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents:
22605
diff
changeset
|
2 #define DEMUX_RTP_H |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
3 |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
4 #include <stdlib.h> |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
5 #include <stdio.h> |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
6 |
23689
3f0d00abc073
Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents:
22605
diff
changeset
|
7 #ifndef STREAM_H |
22605
4d81dbdf46b9
Add explicit location for headers from the stream/ directory.
diego
parents:
15585
diff
changeset
|
8 #include "stream/stream.h" |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
9 #endif |
23689
3f0d00abc073
Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents:
22605
diff
changeset
|
10 #ifndef DEMUXER_H |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
11 #include "demuxer.h" |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
12 #endif |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
13 |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
14 // Open a RTP demuxer (which was initiated either from a SDP file, |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
15 // or from a RTSP URL): |
11983
1615952c26a8
Added support for handling multiplexed audio+video RTP streams.
rsf
parents:
10475
diff
changeset
|
16 demuxer_t* demux_open_rtp(demuxer_t* demuxer); |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
17 |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
18 // Test whether a RTP demuxer is for a MPEG stream: |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
19 int demux_is_mpeg_rtp_stream(demuxer_t* demuxer); |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
20 |
10475
99d459e7fdb9
Added support for checking whether a RTP demuxer contains a combined audio_video stream.
rsf
parents:
6910
diff
changeset
|
21 // Test whether a RTP demuxer contains combined (multiplexed) |
99d459e7fdb9
Added support for checking whether a RTP demuxer contains a combined audio_video stream.
rsf
parents:
6910
diff
changeset
|
22 // audio+video (and so needs to be demuxed by higher-level code): |
99d459e7fdb9
Added support for checking whether a RTP demuxer contains a combined audio_video stream.
rsf
parents:
6910
diff
changeset
|
23 int demux_is_multiplexed_rtp_stream(demuxer_t* demuxer); |
99d459e7fdb9
Added support for checking whether a RTP demuxer contains a combined audio_video stream.
rsf
parents:
6910
diff
changeset
|
24 |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
25 // Read from a RTP demuxer: |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
26 int demux_rtp_fill_buffer(demuxer_t *demux, demux_stream_t* ds); |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
27 |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
28 // Close a RTP demuxer |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
29 void demux_close_rtp(demuxer_t* demuxer); |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
30 |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
diff
changeset
|
31 #endif |