]> git.sesse.net Git - vlc/blob - modules/video_output/qte/qte.h
e665ca949841650bd68a31f1dea5a3e8cdb12e69
[vlc] / modules / video_output / qte / qte.h
1 /*****************************************************************************
2  * qte.h : QT Embedded plugin for vlc
3  *****************************************************************************
4  * Copyright (C) 1998-2002 VideoLAN
5  * $Id: qte.h,v 1.5 2003/02/12 23:09:23 jpsaman Exp $
6  *
7  * Authors: Gerald Hansink <gerald.hansink@ordain.nl>
8  *          Jean-Paul Saman <jpsaman@wxs.nl>
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., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
23  *****************************************************************************/
24
25 /*****************************************************************************
26  * Preamble
27  *****************************************************************************/
28
29 /*****************************************************************************
30  * event_thread_t: QT Embedded event thread
31  *****************************************************************************/
32 typedef struct event_thread_t
33 {
34     VLC_COMMON_MEMBERS
35
36     vout_thread_t * p_vout;
37
38 } event_thread_t;
39
40
41 /*****************************************************************************
42  * vout_sys_t: video output method descriptor
43  *****************************************************************************
44  * This structure is part of the video output thread descriptor.
45  * It describes the specific properties of an video output plugin
46  *****************************************************************************/
47 struct vout_sys_t
48 {
49     /* Internal settings and properties */
50     int                 i_width;
51     int                 i_height;
52
53     bool                bRunning;
54     bool                bOwnsQApp;
55
56 #ifdef NEED_QTE_MAIN
57     module_t *          p_qte_main;
58 #endif
59
60     QApplication*       p_QApplication;
61     QWidget*            p_VideoWidget;
62
63     event_thread_t *    p_event;
64 };
65
66
67 /*****************************************************************************
68  * picture_sys_t: direct buffer method descriptor
69  *****************************************************************************/
70 struct picture_sys_t
71 {
72     QImage*             pQImage;
73 };
74
75
76 /*****************************************************************************
77  * Chroma defines
78  *****************************************************************************/
79 #define QTE_MAX_DIRECTBUFFERS    2
80