00001 /***************************************************************************** 00002 * real.c: rtsp input 00003 ***************************************************************************** 00004 * Copyright (C) 2002-2004 the xine project 00005 * Copyright (C) 2005 VideoLAN 00006 * $Id: file.c 10310 2005-03-11 22:36:40Z anil $ 00007 * 00008 * Authors: Gildas Bazin <[email protected]> 00009 * Adapted from xine which itself adapted it from joschkas real tools. 00010 * 00011 * This program is free software; you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License as published by 00013 * the Free Software Foundation; either version 2 of the License, or 00014 * (at your option) any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License 00022 * along with this program; if not, write to the Free Software 00023 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. 00024 *****************************************************************************/ 00025 #ifndef HAVE_REAL_H 00026 #define HAVE_REAL_H 00027 00028 #include <stdlib.h> 00029 #include <string.h> 00030 #include <inttypes.h> 00031 00032 #include <vlc/vlc.h> 00033 #include "rtsp.h" 00034 #include "real_rmff.h" 00035 #include "real_sdpplin.h" 00036 00037 #ifdef REALDEBUG 00038 # define lprintf printf 00039 #else 00040 static inline void lprintf( char *dummy, ... ){} 00041 #endif 00042 00043 int real_get_rdt_chunk_header(rtsp_client_t *, rmff_pheader_t *); 00044 int real_get_rdt_chunk(rtsp_client_t *, rmff_pheader_t *, unsigned char **); 00045 rmff_header_t *real_setup_and_get_header(rtsp_client_t *, int bandwidth); 00046 00047 int asmrp_match(const char *rules, int bandwidth, int *matches) ; 00048 00049 #endif