00001 /***************************************************************************** 00002 * mosaic.h: 00003 ***************************************************************************** 00004 * Copyright (C) 2004-2008 the VideoLAN team 00005 * $Id$ 00006 * 00007 * Authors: Antoine Cellerier <dionoea@videolan.org> 00008 * Christophe Massiot <massiot@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 typedef struct bridged_es_t 00026 { 00027 es_format_t fmt; 00028 picture_t *p_picture; 00029 picture_t **pp_last; 00030 bool b_empty; 00031 char *psz_id; 00032 00033 int i_alpha; 00034 int i_x; 00035 int i_y; 00036 } bridged_es_t; 00037 00038 typedef struct bridge_t 00039 { 00040 bridged_es_t **pp_es; 00041 int i_es_num; 00042 } bridge_t; 00043 00044 #define GetBridge(a) __GetBridge( VLC_OBJECT(a) ) 00045 static bridge_t *__GetBridge( vlc_object_t *p_object ) 00046 { 00047 vlc_object_t *p_libvlc = VLC_OBJECT( p_object->p_libvlc ); 00048 vlc_value_t val; 00049 00050 if( var_Get( p_libvlc, "mosaic-struct", &val ) != VLC_SUCCESS ) 00051 { 00052 return NULL; 00053 } 00054 else 00055 { 00056 return val.p_address; 00057 } 00058 } 00059
1.5.6