]> git.sesse.net Git - vlc/blob - plugins/macosx/vout_macosx.h
57bc4527cf38a72adf51b4d5b3f4c06a20cbe7ed
[vlc] / plugins / macosx / vout_macosx.h
1 /*****************************************************************************
2  * vout_macosx.h: MacOS X interface plugin
3  *****************************************************************************
4  * Copyright (C) 2001, 2002 VideoLAN
5  * $Id: vout_macosx.h,v 1.1 2002/07/15 01:54:04 jlj Exp $
6  *
7  * Authors: Colin Delacroix <colin@zoy.org>
8  *          Florian G. Pflug <fgp@phlo.org>
9  *          Jon Lech Johansen <jon-vl@nanocrew.net>
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  * 
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
24  *****************************************************************************/
25
26 /*****************************************************************************
27  * VLCWindow interface
28  *****************************************************************************/
29 @interface VLCWindow : NSWindow
30 {
31     vout_thread_t * p_vout;
32 }
33
34 - (void)setVout:(vout_thread_t *)_p_vout;
35
36 - (void)toggleFullscreen;
37 - (BOOL)isFullscreen;
38
39 @end
40
41 /*****************************************************************************
42  * VLCView interface
43  *****************************************************************************/
44 @interface VLCView : NSQuickDrawView
45 {
46     vout_thread_t * p_vout;
47 }
48
49 - (void)setVout:(vout_thread_t *)_p_vout;
50
51 @end
52
53 /*****************************************************************************
54  * vout_sys_t: MacOS X video output method descriptor
55  *****************************************************************************/
56 struct vout_sys_s
57 {
58     intf_thread_t * p_intf;
59     VLCWindow * o_window;
60
61     NSRect s_rect;
62     int b_pos_saved;
63
64     vlc_bool_t b_mouse_moved;
65     vlc_bool_t b_mouse_pointer_visible;
66     mtime_t i_time_mouse_last_moved;
67
68 #ifdef __QUICKTIME__
69     CodecType i_codec;
70     CGrafPtr p_qdport;
71     ImageSequence i_seq;
72     MatrixRecordPtr p_matrix;
73     DecompressorComponent img_dc;
74     ImageDescriptionHandle h_img_descr;
75 #endif
76 };
77
78 /*****************************************************************************
79  * vout_req_t: MacOS X video output request
80  *****************************************************************************/
81 #define VOUT_REQ_CREATE_WINDOW  0x00000001
82 #define VOUT_REQ_DESTROY_WINDOW 0x00000002
83
84 typedef struct vout_req_s
85 {
86     int i_type;
87     int i_result;
88
89     NSConditionLock * o_lock;
90
91     vout_thread_t * p_vout;
92 } vout_req_t;