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