]> git.sesse.net Git - vlc/blob - modules/video_filter/mosaic.h
Merge branch 'master' of git@git.videolan.org:vlc
[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 } bridged_es_t;
33
34 typedef struct bridge_t
35 {
36     bridged_es_t **pp_es;
37     int i_es_num;
38 } bridge_t;
39
40 #define GetBridge(a) __GetBridge( VLC_OBJECT(a) )
41 static bridge_t *__GetBridge( vlc_object_t *p_object )
42 {
43     vlc_object_t *p_libvlc = VLC_OBJECT( p_object->p_libvlc );
44     vlc_value_t val;
45
46     if( var_Get( p_libvlc, "mosaic-struct", &val ) != VLC_SUCCESS )
47     {
48         return NULL;
49     }
50     else
51     {
52         return val.p_address;
53     }
54 }
55