Mercurial > mplayer.hg
comparison libmpdemux/realrtsp/sdpplin.h @ 9922:6cb7a295ab0e
Real rstp:// streaming support, ported from xine
author | rtognimp |
---|---|
date | Thu, 17 Apr 2003 20:39:41 +0000 |
parents | |
children | 7a51e10ceef4 |
comparison
equal
deleted
inserted
replaced
9921:61057de81510 | 9922:6cb7a295ab0e |
---|---|
1 /* | |
2 * This file was ported to MPlayer from xine CVS sdpplin.h,v 1.1 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 * sdp/sdpplin parser. | |
26 * | |
27 */ | |
28 | |
29 #ifndef HAVE_SDPPLIN_H | |
30 #define HAVE_SDPPLIN_H | |
31 | |
32 #include "rmff.h" | |
33 #include "rtsp.h" | |
34 | |
35 #ifdef __CYGWIN__ | |
36 #define uint32_t unsigned int | |
37 #define uint16_t unsigned short int | |
38 #define uint8_t unsigned char | |
39 #endif | |
40 | |
41 typedef struct { | |
42 | |
43 char *id; | |
44 char *bandwidth; | |
45 | |
46 int stream_id; | |
47 char *range; | |
48 char *length; | |
49 char *rtpmap; | |
50 char *mimetype; | |
51 int min_switch_overlap; | |
52 int start_time; | |
53 int end_one_rule_end_all; | |
54 int avg_bit_rate; | |
55 int max_bit_rate; | |
56 int avg_packet_size; | |
57 int max_packet_size; | |
58 int end_time; | |
59 int seek_greater_on_switch; | |
60 int preroll; | |
61 | |
62 int duration; | |
63 char *stream_name; | |
64 int stream_name_size; | |
65 char *mime_type; | |
66 int mime_type_size; | |
67 char *mlti_data; | |
68 int mlti_data_size; | |
69 int rmff_flags_length; | |
70 char *rmff_flags; | |
71 int asm_rule_book_length; | |
72 char *asm_rule_book; | |
73 | |
74 } sdpplin_stream_t; | |
75 | |
76 typedef struct { | |
77 | |
78 int sdp_version, sdpplin_version; | |
79 char *owner; | |
80 char *session_name; | |
81 char *session_info; | |
82 char *uri; | |
83 char *email; | |
84 char *phone; | |
85 char *connection; | |
86 char *bandwidth; | |
87 | |
88 int flags; | |
89 int is_real_data_type; | |
90 int stream_count; | |
91 char *title; | |
92 char *author; | |
93 char *copyright; | |
94 char *keywords; | |
95 int asm_rule_book_length; | |
96 char *asm_rule_book; | |
97 char *abstract; | |
98 char *range; | |
99 int avg_bit_rate; | |
100 int max_bit_rate; | |
101 int avg_packet_size; | |
102 int max_packet_size; | |
103 int preroll; | |
104 int duration; | |
105 | |
106 sdpplin_stream_t **stream; | |
107 | |
108 } sdpplin_t; | |
109 | |
110 sdpplin_t *sdpplin_parse(char *data); | |
111 | |
112 void sdpplin_free(sdpplin_t *description); | |
113 | |
114 #endif | |
115 |