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