Mercurial > mplayer.hg
annotate stream/realrtsp/real.h @ 23211:d9b4bfea1093
Make cache_*_add functions return the pointer to new (copied) value.
author | eugeni |
---|---|
date | Thu, 03 May 2007 19:13:54 +0000 |
parents | 4cabf7499fef |
children | 3baf6a2283da |
rev | line source |
---|---|
9922 | 1 /* |
2 * This file was ported to MPlayer from xine CVS real.h,v 1.2 2002/12/24 01:30:22 | |
3 */ | |
4 | |
5 /* | |
6 * Copyright (C) 2002 the xine project | |
7 * | |
8 * This file is part of xine, a free video player. | |
9 * | |
10 * xine is free software; you can redistribute it and/or modify | |
11 * it under the terms of the GNU General Public License as published by | |
12 * the Free Software Foundation; either version 2 of the License, or | |
13 * (at your option) any later version. | |
14 * | |
15 * xine is distributed in the hope that it will be useful, | |
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 * GNU General Public License for more details. | |
19 * | |
20 * You should have received a copy of the GNU General Public License | |
21 * along with this program; if not, write to the Free Software | |
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | |
23 * | |
24 * | |
25 * special functions for real streams. | |
26 * adopted from joschkas real tools. | |
27 * | |
28 */ | |
29 | |
30 #ifndef HAVE_REAL_H | |
31 #define HAVE_REAL_H | |
32 | |
33 #include "rmff.h" | |
18799
e16345b97dab
moved generic rtsp related files from realrtsp to librtsp
ben
parents:
18792
diff
changeset
|
34 #include "../librtsp/rtsp.h" |
9922 | 35 |
18792
6a015ba5bf45
move real_rtsp init/uninit code to its dedicated place to simplify a bit rtsp session demuxer
ben
parents:
12266
diff
changeset
|
36 #define HEADER_SIZE 4096 |
6a015ba5bf45
move real_rtsp init/uninit code to its dedicated place to simplify a bit rtsp session demuxer
ben
parents:
12266
diff
changeset
|
37 |
6a015ba5bf45
move real_rtsp init/uninit code to its dedicated place to simplify a bit rtsp session demuxer
ben
parents:
12266
diff
changeset
|
38 struct real_rtsp_session_t { |
6a015ba5bf45
move real_rtsp init/uninit code to its dedicated place to simplify a bit rtsp session demuxer
ben
parents:
12266
diff
changeset
|
39 /* receive buffer */ |
6a015ba5bf45
move real_rtsp init/uninit code to its dedicated place to simplify a bit rtsp session demuxer
ben
parents:
12266
diff
changeset
|
40 uint8_t *recv; |
6a015ba5bf45
move real_rtsp init/uninit code to its dedicated place to simplify a bit rtsp session demuxer
ben
parents:
12266
diff
changeset
|
41 int recv_size; |
6a015ba5bf45
move real_rtsp init/uninit code to its dedicated place to simplify a bit rtsp session demuxer
ben
parents:
12266
diff
changeset
|
42 int recv_read; |
6a015ba5bf45
move real_rtsp init/uninit code to its dedicated place to simplify a bit rtsp session demuxer
ben
parents:
12266
diff
changeset
|
43 |
6a015ba5bf45
move real_rtsp init/uninit code to its dedicated place to simplify a bit rtsp session demuxer
ben
parents:
12266
diff
changeset
|
44 /* header buffer */ |
6a015ba5bf45
move real_rtsp init/uninit code to its dedicated place to simplify a bit rtsp session demuxer
ben
parents:
12266
diff
changeset
|
45 uint8_t header[HEADER_SIZE]; |
6a015ba5bf45
move real_rtsp init/uninit code to its dedicated place to simplify a bit rtsp session demuxer
ben
parents:
12266
diff
changeset
|
46 int header_len; |
6a015ba5bf45
move real_rtsp init/uninit code to its dedicated place to simplify a bit rtsp session demuxer
ben
parents:
12266
diff
changeset
|
47 int header_read; |
21842 | 48 |
49 int rdteof; | |
22242
4cabf7499fef
Add support for smil playlist served over realrtsp
rtogni
parents:
21842
diff
changeset
|
50 |
4cabf7499fef
Add support for smil playlist served over realrtsp
rtogni
parents:
21842
diff
changeset
|
51 int rdt_rawdata; |
18792
6a015ba5bf45
move real_rtsp init/uninit code to its dedicated place to simplify a bit rtsp session demuxer
ben
parents:
12266
diff
changeset
|
52 }; |
6a015ba5bf45
move real_rtsp init/uninit code to its dedicated place to simplify a bit rtsp session demuxer
ben
parents:
12266
diff
changeset
|
53 |
22242
4cabf7499fef
Add support for smil playlist served over realrtsp
rtogni
parents:
21842
diff
changeset
|
54 int real_get_rdt_chunk(rtsp_t *rtsp_session, char **buffer, int rdt_rawdata); |
20527 | 55 rmff_header_t *real_setup_and_get_header(rtsp_t *rtsp_session, uint32_t bandwidth, |
56 char *username, char *password); | |
18792
6a015ba5bf45
move real_rtsp init/uninit code to its dedicated place to simplify a bit rtsp session demuxer
ben
parents:
12266
diff
changeset
|
57 struct real_rtsp_session_t *init_real_rtsp_session (void); |
6a015ba5bf45
move real_rtsp init/uninit code to its dedicated place to simplify a bit rtsp session demuxer
ben
parents:
12266
diff
changeset
|
58 void free_real_rtsp_session (struct real_rtsp_session_t* real_session); |
9922 | 59 |
60 #endif | |
61 |