vout.h 2.81 KB
Newer Older
1
2
3
/*****************************************************************************
 * vout.h: MacOS X interface plugin
 *****************************************************************************
hartman's avatar
hartman committed
4
5
 * Copyright (C) 2001-2003 VideoLAN
 * $Id: vout.h,v 1.10 2003/03/06 11:43:07 hartman Exp $
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
 *
 * Authors: Colin Delacroix <colin@zoy.org>
 *          Florian G. Pflug <fgp@phlo.org>
 *          Jon Lech Johansen <jon-vl@nanocrew.net>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
 *****************************************************************************/

/*****************************************************************************
 * VLCWindow interface
 *****************************************************************************/
@interface VLCWindow : NSWindow
{
    vout_thread_t * p_vout;
}

- (void)setVout:(vout_thread_t *)_p_vout;
35
- (vout_thread_t *)getVout;
36

hartman's avatar
hartman committed
37
- (void)scaleWindowWithFactor: (float)factor;
38
39
- (void)toggleFullscreen;
- (BOOL)isFullscreen;
40
- (void)updateTitle;
41

42
43
- (BOOL)windowShouldClose:(id)sender;

44
45
46
47
48
49
50
51
52
@end

/*****************************************************************************
 * VLCView interface
 *****************************************************************************/
@interface VLCView : NSQuickDrawView
{
}

53
54
55
56
57
58
59
60
61
62
63
@end

/*****************************************************************************
 * VLCVout interface
 *****************************************************************************/
@interface VLCVout : NSObject
{
}

- (void)createWindow:(NSValue *)o_value;
- (void)destroyWindow:(NSValue *)o_value;
64
65
66
67
68
69
70
71
72
73

@end

/*****************************************************************************
 * vout_sys_t: MacOS X video output method descriptor
 *****************************************************************************/
struct vout_sys_t
{
    NSRect s_rect;
    int b_pos_saved;
74
    VLCWindow * o_window;
75
76
77
78
79
80
81
82
83
84
85
86

    vlc_bool_t b_mouse_moved;
    vlc_bool_t b_mouse_pointer_visible;
    mtime_t i_time_mouse_last_moved;

#ifdef __QUICKTIME__
    CodecType i_codec;
    CGrafPtr p_qdport;
    ImageSequence i_seq;
    MatrixRecordPtr p_matrix;
    DecompressorComponent img_dc;
    ImageDescriptionHandle h_img_descr;
87
    Ptr p_fullscreen_state;
88
89
#endif
};