]> git.sesse.net Git - vlc/blob - plugins/macosx/macosx.h
* ALL: the first libvlc commit.
[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.10 2002/06/01 12:32:00 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 };
47
48 /*****************************************************************************
49  * vout_sys_t: MacOS X video output method descriptor
50  *****************************************************************************/
51 struct vout_sys_s
52 {
53     VLCWindow *o_window;
54
55     NSRect s_rect;
56     int b_pos_saved;
57
58     vlc_bool_t b_mouse_moved;
59     vlc_bool_t b_mouse_pointer_visible;
60     mtime_t i_time_mouse_last_moved;
61     
62     CodecType i_codec;
63     CGrafPtr p_qdport;
64     ImageSequence i_seq;
65     MatrixRecordPtr p_matrix;
66     DecompressorComponent img_dc;
67     ImageDescriptionHandle h_img_descr;
68 };
69
70 /*****************************************************************************
71  * vout_req_t: MacOS X video output request 
72  *****************************************************************************/
73 #define VOUT_REQ_CREATE_WINDOW  0x00000001
74 #define VOUT_REQ_DESTROY_WINDOW 0x00000002
75
76 typedef struct vout_req_s
77 {
78     int i_type;
79     int i_result;
80
81     NSConditionLock *o_lock;
82
83     vout_thread_t *p_vout;
84 } vout_req_t;