mosaic.h 1.59 KB
Newer Older
1
/*****************************************************************************
2
 * mosaic.h:
3
 *****************************************************************************
Jean-Baptiste Kempf's avatar
LGPL  
Jean-Baptiste Kempf committed
4
 * Copyright (C) 2004-2008 VLC authors and VideoLAN
5 6 7
 * $Id$
 *
 * Authors: Antoine Cellerier <dionoea@videolan.org>
8
 *          Christophe Massiot <massiot@via.ecp.fr>
9
 *
Jean-Baptiste Kempf's avatar
LGPL  
Jean-Baptiste Kempf committed
10 11 12
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
13 14 15 16
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Jean-Baptiste Kempf's avatar
LGPL  
Jean-Baptiste Kempf committed
17 18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
19
 *
Jean-Baptiste Kempf's avatar
LGPL  
Jean-Baptiste Kempf committed
20 21 22
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software 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 34 35

    int i_alpha;
    int i_x;
    int i_y;
36 37 38 39 40 41 42
} bridged_es_t;

typedef struct bridge_t
{
    bridged_es_t **pp_es;
    int i_es_num;
} bridge_t;
43

44
static bridge_t *GetBridge( vlc_object_t *p_object )
45
{
46
    return var_GetAddress(VLC_OBJECT(p_object->obj.libvlc), "mosaic-struct");
47
}
48
#define GetBridge(a) GetBridge( VLC_OBJECT(a) )