]> git.sesse.net Git - vlc/blob - plugins/directx/vout_directx.h
* Fixed a Win32 bug in libdvdcss. This bug was appearing on title change.
[vlc] / plugins / directx / vout_directx.h
1 /*****************************************************************************
2  * vout_directx.h: Windows DirectX video output header file
3  *****************************************************************************
4  * Copyright (C) 1998, 1999, 2000 VideoLAN
5  * $Id: vout_directx.h,v 1.1 2001/07/11 14:26:19 gbazin Exp $
6  *
7  * Authors: Gildas Bazin <gbazin@netcourrier.com>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 /*****************************************************************************
25  * vout_sys_t: video output DirectX method descriptor
26  *****************************************************************************
27  * This structure is part of the video output thread descriptor.
28  * It describes the DirectX specific properties of an output thread.
29  *****************************************************************************/
30 typedef struct vout_sys_s
31 {
32
33     LPDIRECTDRAW2        p_ddobject;                    /* DirectDraw object */
34     LPDIRECTDRAWSURFACE3 p_display;                        /* Display device */
35     LPDIRECTDRAWSURFACE3 p_surface;    /* surface where we display the video */
36     LPDIRECTDRAWCLIPPER  p_clipper;             /* clipper used for blitting */
37     HINSTANCE            hddraw_dll;       /* handle of the opened ddraw dll */
38     HBRUSH               hbrush;           /* window backgound brush (color) */
39     HWND                 hwnd;                  /* Handle of the main window */
40
41     int         i_image_width;                  /* size of the decoded image */
42     int         i_image_height;
43     int         i_window_width;               /* size of the displayed image */
44     int         i_window_height;
45
46     int         i_colorkey;          /* colorkey used to display the overlay */
47  
48     boolean_t   b_display_enabled;
49     boolean_t   b_cursor;
50
51     u16         i_changes;              /* changes made to the video display */
52
53     boolean_t   b_cursor_autohidden;
54     mtime_t     i_lastmoved;
55
56     char       *p_directx_buf[2];                      /* Buffer information */
57
58     vlc_thread_t event_thread_id;                            /* event thread */
59     vlc_mutex_t  event_thread_lock;             /* lock for the event thread */
60     vlc_cond_t   event_thread_wait;
61
62     int          i_event_thread_status;         /* DirectXEventThread status */
63     boolean_t    b_event_thread_die;        /* flag to kill the event thread */
64
65 } vout_sys_t;
66
67 /*****************************************************************************
68  * Prototypes from vout_directx.c
69  *****************************************************************************/
70
71 /*****************************************************************************
72  * Prototypes from vout_events.c
73  *****************************************************************************/
74 void DirectXEventThread ( vout_thread_t *p_vout );