demux.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * demux.h: Input demux functions
00003  *****************************************************************************
00004  * Copyright (C) 1998-2008 the VideoLAN team
00005  * Copyright (C) 2008 Laurent Aimar
00006  * $Id: 8e9aa27088f644b2409b3b927563206fd698851c $
00007  *
00008  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00023  *****************************************************************************/
00024 
00025 #if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__)
00026 # error This header file can only be included from LibVLC.
00027 #endif
00028 
00029 #ifndef _INPUT_DEMUX_H
00030 #define _INPUT_DEMUX_H 1
00031 
00032 #include <vlc_common.h>
00033 #include <vlc_demux.h>
00034 
00035 #include "stream.h"
00036 
00037 /* stream_t *s could be null and then it mean a access+demux in one */
00038 #define demux_New( a, b, c, d, e, f, g, h ) __demux_New(VLC_OBJECT(a),b,c,d,e,f,g,h)
00039 demux_t *__demux_New( vlc_object_t *p_obj, input_thread_t *p_parent_input, const char *psz_access, const char *psz_demux, const char *psz_path, stream_t *s, es_out_t *out, bool );
00040 
00041 void demux_Delete( demux_t * );
00042 
00043 static inline int demux_Demux( demux_t *p_demux )
00044 {
00045     if( !p_demux->pf_demux )
00046         return 1;
00047 
00048     return p_demux->pf_demux( p_demux );
00049 }
00050 static inline int demux_vaControl( demux_t *p_demux, int i_query, va_list args )
00051 {
00052     return p_demux->pf_control( p_demux, i_query, args );
00053 }
00054 static inline int demux_Control( demux_t *p_demux, int i_query, ... )
00055 {
00056     va_list args;
00057     int     i_result;
00058 
00059     va_start( args, i_query );
00060     i_result = demux_vaControl( p_demux, i_query, args );
00061     va_end( args );
00062     return i_result;
00063 }
00064 
00065 #endif
00066 

Generated on Mon Nov 22 07:55:20 2010 for VLC by  doxygen 1.5.6