Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

mosaic.h

00001 /*****************************************************************************
00002  * mosaic.h:
00003  *****************************************************************************
00004  * Copyright (C) 2004-2005 the VideoLAN team
00005  * $Id: mosaic.h 11664 2005-07-09 06:17:09Z courmisch $
00006  *
00007  * Authors: Antoine Cellerier <[email protected]>
00008  *          Christophe Massiot <[email protected]>
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., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
00023  *****************************************************************************/
00024 
00025 typedef struct bridged_es_t
00026 {
00027     es_format_t fmt;
00028     picture_t *p_picture;
00029     picture_t **pp_last;
00030     vlc_bool_t b_empty;
00031     char *psz_id;
00032 } bridged_es_t;
00033 
00034 typedef struct bridge_t
00035 {
00036     bridged_es_t **pp_es;
00037     int i_es_num;
00038 } bridge_t;
00039 
00040 #define GetBridge(a) __GetBridge( VLC_OBJECT(a) )
00041 static bridge_t *__GetBridge( vlc_object_t *p_object )
00042 {
00043     libvlc_t *p_libvlc = p_object->p_libvlc;
00044     bridge_t *p_bridge;
00045     vlc_value_t val;
00046 
00047     if( var_Get( p_libvlc, "mosaic-struct", &val ) != VLC_SUCCESS )
00048     {
00049         p_bridge = NULL;
00050     }
00051     else
00052     {
00053         p_bridge = val.p_address;
00054     }    
00055 
00056     return p_bridge;
00057 }
00058 

Generated on Tue Dec 20 10:14:52 2005 for vlc-0.8.4a by  doxygen 1.4.2