]> git.sesse.net Git - vlc/blob - modules/video_filter/mosaic.h
Use var_InheritString for --decklink-video-connection.
[vlc] / modules / video_filter / mosaic.h
1 /*****************************************************************************
2  * mosaic.h:
3  *****************************************************************************
4  * Copyright (C) 2004-2008 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Antoine Cellerier <dionoea@videolan.org>
8  *          Christophe Massiot <massiot@via.ecp.fr>
9  *
10  * This program 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  * This program 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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24
25 typedef struct bridged_es_t
26 {
27     es_format_t fmt;
28     picture_t *p_picture;
29     picture_t **pp_last;
30     bool b_empty;
31     char *psz_id;
32
33     int i_alpha;
34     int i_x;
35     int i_y;
36 } bridged_es_t;
37
38 typedef struct bridge_t
39 {
40     bridged_es_t **pp_es;
41     int i_es_num;
42 } bridge_t;
43
44 #define GetBridge(a) __GetBridge( VLC_OBJECT(a) )
45 static bridge_t *__GetBridge( vlc_object_t *p_object )
46 {
47     vlc_object_t *p_libvlc = VLC_OBJECT( p_object->p_libvlc );
48     vlc_value_t val;
49
50     if( var_Get( p_libvlc, "mosaic-struct", &val ) != VLC_SUCCESS )
51     {
52         return NULL;
53     }
54     else
55     {
56         return val.p_address;
57     }
58 }
59