Mercurial > mplayer.hg
comparison libmpdemux/realrtsp/real.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 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" | |
34 #include "rtsp.h" | |
35 | |
36 #ifdef __CYGWIN__ | |
37 #define uint32_t unsigned int | |
38 #define uint16_t unsigned short int | |
39 #define uint8_t unsigned char | |
40 #endif | |
41 | |
42 /* | |
43 * calculates response and checksum of a given challenge | |
44 * (RealChallenge1 in rtsp). See implementation for details. | |
45 */ | |
46 void real_calc_response_and_checksum (char *response, char *chksum, char *challenge); | |
47 int real_get_rdt_chunk(rtsp_t *rtsp_session, char *buffer); | |
48 rmff_header_t *real_parse_sdp(char *data, char *stream_rules, uint32_t bandwidth); | |
49 rmff_header_t *real_setup_and_get_header(rtsp_t *rtsp_session, uint32_t bandwidth); | |
50 | |
51 #endif | |
52 |