annotate libvo/vo_corevideo.h @ 33273:8c4a81b0bd5f

Update Doxyfile from doxygen 1.3.7 to 1.5.6. The latter is the version available in Debian oldstable and should thus be a suitable baseline that can be expected to be available on all systems. The update makes new Doxygen features available in the configuration file and avoids several deprecation warnings when using newer doxygen versions.
author diego
date Wed, 04 May 2011 14:27:35 +0000
parents 98f341e62270
children 3702a2b88d12
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15289
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
1 /*
29210
779281d8cd80 Rename macosx video output driver to corevideo.
diego
parents: 29207
diff changeset
2 * CoreVideo video output driver
28446
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28010
diff changeset
3 *
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28010
diff changeset
4 * Copyright (c) 2005 Nicolas Plourde <nicolasplourde@gmail.com>
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28010
diff changeset
5 *
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28010
diff changeset
6 * This file is part of MPlayer.
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28010
diff changeset
7 *
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28010
diff changeset
8 * MPlayer is free software; you can redistribute it and/or modify
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28010
diff changeset
9 * it under the terms of the GNU General Public License as published by
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28010
diff changeset
10 * the Free Software Foundation; either version 2 of the License, or
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28010
diff changeset
11 * (at your option) any later version.
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28010
diff changeset
12 *
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28010
diff changeset
13 * MPlayer is distributed in the hope that it will be useful,
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28010
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28010
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28010
diff changeset
16 * GNU General Public License for more details.
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28010
diff changeset
17 *
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28010
diff changeset
18 * You should have received a copy of the GNU General Public License along
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28010
diff changeset
19 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28010
diff changeset
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28010
diff changeset
21 */
15289
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
22
32126
98f341e62270 Add standard multiple inclusion guards.
diego
parents: 31760
diff changeset
23 #ifndef MPLAYER_VO_COREVIDEO_H
98f341e62270 Add standard multiple inclusion guards.
diego
parents: 31760
diff changeset
24 #define MPLAYER_VO_COREVIDEO_H
98f341e62270 Add standard multiple inclusion guards.
diego
parents: 31760
diff changeset
25
15289
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
26 #import <Cocoa/Cocoa.h>
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
27 #import <QuartzCore/QuartzCore.h>
29207
5044f4496791 Replace QuickTime.h #include with Carbon.h, which is really needed.
diego
parents: 28446
diff changeset
28 #import <Carbon/Carbon.h>
15289
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
29
25157
cf3b6015735d Set protocol for the vo proxy used in shared-buffer mode.
ulion
parents: 24077
diff changeset
30 // MPlayer OS X VO Protocol
cf3b6015735d Set protocol for the vo proxy used in shared-buffer mode.
ulion
parents: 24077
diff changeset
31 @protocol MPlayerOSXVOProto
cf3b6015735d Set protocol for the vo proxy used in shared-buffer mode.
ulion
parents: 24077
diff changeset
32 - (int) startWithWidth: (bycopy int)width
cf3b6015735d Set protocol for the vo proxy used in shared-buffer mode.
ulion
parents: 24077
diff changeset
33 withHeight: (bycopy int)height
cf3b6015735d Set protocol for the vo proxy used in shared-buffer mode.
ulion
parents: 24077
diff changeset
34 withBytes: (bycopy int)bytes
cf3b6015735d Set protocol for the vo proxy used in shared-buffer mode.
ulion
parents: 24077
diff changeset
35 withAspect: (bycopy int)aspect;
cf3b6015735d Set protocol for the vo proxy used in shared-buffer mode.
ulion
parents: 24077
diff changeset
36 - (void) stop;
cf3b6015735d Set protocol for the vo proxy used in shared-buffer mode.
ulion
parents: 24077
diff changeset
37 - (void) render;
cf3b6015735d Set protocol for the vo proxy used in shared-buffer mode.
ulion
parents: 24077
diff changeset
38 - (void) toggleFullscreen;
cf3b6015735d Set protocol for the vo proxy used in shared-buffer mode.
ulion
parents: 24077
diff changeset
39 - (void) ontop;
cf3b6015735d Set protocol for the vo proxy used in shared-buffer mode.
ulion
parents: 24077
diff changeset
40 @end
cf3b6015735d Set protocol for the vo proxy used in shared-buffer mode.
ulion
parents: 24077
diff changeset
41
15611
2f77a2da1d82 Function name cleanup
nplourde
parents: 15570
diff changeset
42 @interface MPlayerOpenGLView : NSOpenGLView
15289
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
43 {
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
44 //Cocoa
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
45 NSWindow *window;
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 29210
diff changeset
46
15289
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
47 //CoreVideo
25180
48fe4b6e3bab Support double buffering, fix osd flicker.
ulion
parents: 25157
diff changeset
48 CVPixelBufferRef frameBuffers[2];
15289
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
49 CVOpenGLTextureCacheRef textureCache;
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
50 CVOpenGLTextureRef texture;
15729
55aaeb7b6aae new texture frame
nplourde
parents: 15726
diff changeset
51 NSRect textureFrame;
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 29210
diff changeset
52
31744
e87d7a5949b1 Fix indentation.
reimar
parents: 29575
diff changeset
53 GLfloat lowerLeft[2];
e87d7a5949b1 Fix indentation.
reimar
parents: 29575
diff changeset
54 GLfloat lowerRight[2];
e87d7a5949b1 Fix indentation.
reimar
parents: 29575
diff changeset
55 GLfloat upperRight[2];
e87d7a5949b1 Fix indentation.
reimar
parents: 29575
diff changeset
56 GLfloat upperLeft[2];
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 29210
diff changeset
57
15289
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
58 BOOL mouseHide;
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 29210
diff changeset
59
15570
f197f4a60b20 create menu
nplourde
parents: 15327
diff changeset
60 //menu command id
f197f4a60b20 create menu
nplourde
parents: 15327
diff changeset
61 NSMenuItem *kHalfScreenCmd;
f197f4a60b20 create menu
nplourde
parents: 15327
diff changeset
62 NSMenuItem *kNormalScreenCmd;
f197f4a60b20 create menu
nplourde
parents: 15327
diff changeset
63 NSMenuItem *kDoubleScreenCmd;
f197f4a60b20 create menu
nplourde
parents: 15327
diff changeset
64 NSMenuItem *kFullScreenCmd;
f197f4a60b20 create menu
nplourde
parents: 15327
diff changeset
65 NSMenuItem *kKeepAspectCmd;
f197f4a60b20 create menu
nplourde
parents: 15327
diff changeset
66 NSMenuItem *kAspectOrgCmd;
f197f4a60b20 create menu
nplourde
parents: 15327
diff changeset
67 NSMenuItem *kAspectFullCmd;
f197f4a60b20 create menu
nplourde
parents: 15327
diff changeset
68 NSMenuItem *kAspectWideCmd;
f197f4a60b20 create menu
nplourde
parents: 15327
diff changeset
69 NSMenuItem *kPanScanCmd;
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 29210
diff changeset
70
28010
0a0f63090e60 factorize mouse hiding and screensaver disabling code
gpoirier
parents: 25180
diff changeset
71 //timestamps for disabling screensaver and mouse hiding
0a0f63090e60 factorize mouse hiding and screensaver disabling code
gpoirier
parents: 25180
diff changeset
72 int lastMouseHide;
0a0f63090e60 factorize mouse hiding and screensaver disabling code
gpoirier
parents: 25180
diff changeset
73 int lastScreensaverUpdate;
29564
4ae3d2d7946e Use MPlayer's standard aspect handling functions in corevideo
reimar
parents: 29263
diff changeset
74 @public
4ae3d2d7946e Use MPlayer's standard aspect handling functions in corevideo
reimar
parents: 29263
diff changeset
75 float winSizeMult;
15289
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
76 }
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
77
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
78 - (BOOL) acceptsFirstResponder;
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
79 - (BOOL) becomeFirstResponder;
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
80 - (BOOL) resignFirstResponder;
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
81
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
82 //window & rendering
24076
7ac48ed8c394 Functions that do not return a value must be void
reimar
parents: 24075
diff changeset
83 - (void) preinit;
7ac48ed8c394 Functions that do not return a value must be void
reimar
parents: 24075
diff changeset
84 - (void) config;
15289
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
85 - (void) prepareOpenGL;
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
86 - (void) render;
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
87 - (void) reshape;
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
88 - (void) setCurrentTexture;
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
89 - (void) drawRect: (NSRect *) bounds;
15611
2f77a2da1d82 Function name cleanup
nplourde
parents: 15570
diff changeset
90
2f77a2da1d82 Function name cleanup
nplourde
parents: 15570
diff changeset
91 //vo control
15289
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
92 - (void) fullscreen: (BOOL) animate;
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
93 - (void) ontop;
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
94 - (void) panscan;
15327
8e21844c8a4c enable rootwin
nplourde
parents: 15289
diff changeset
95 - (void) rootwin;
15289
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
96
15611
2f77a2da1d82 Function name cleanup
nplourde
parents: 15570
diff changeset
97 //menu
2f77a2da1d82 Function name cleanup
nplourde
parents: 15570
diff changeset
98 - (void) initMenu;
2f77a2da1d82 Function name cleanup
nplourde
parents: 15570
diff changeset
99 - (void) menuAction:(id)sender;
2f77a2da1d82 Function name cleanup
nplourde
parents: 15570
diff changeset
100
15289
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
101 //event
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
102 - (void) keyDown: (NSEvent *) theEvent;
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
103 - (void) mouseMoved: (NSEvent *) theEvent;
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
104 - (void) mouseDown: (NSEvent *) theEvent;
24077
9ce03980ed0c added double click support in vo_macosx. Patch by Ulion <ulion2002@gmail.com>
nplourde
parents: 24076
diff changeset
105 - (void) mouseUp: (NSEvent *) theEvent;
15289
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
106 - (void) rightMouseDown: (NSEvent *) theEvent;
24077
9ce03980ed0c added double click support in vo_macosx. Patch by Ulion <ulion2002@gmail.com>
nplourde
parents: 24076
diff changeset
107 - (void) rightMouseUp: (NSEvent *) theEvent;
15289
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
108 - (void) otherMouseDown: (NSEvent *) theEvent;
24077
9ce03980ed0c added double click support in vo_macosx. Patch by Ulion <ulion2002@gmail.com>
nplourde
parents: 24076
diff changeset
109 - (void) otherMouseUp: (NSEvent *) theEvent;
15289
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
110 - (void) scrollWheel: (NSEvent *) theEvent;
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
111 - (void) mouseEvent: (NSEvent *) theEvent;
e985d786c5f1 macosx core video module
nplourde
parents:
diff changeset
112 - (void) check_events;
24075
8595d6dbd0ed Text files must end with a newline
reimar
parents: 15855
diff changeset
113 @end
32126
98f341e62270 Add standard multiple inclusion guards.
diego
parents: 31760
diff changeset
114
98f341e62270 Add standard multiple inclusion guards.
diego
parents: 31760
diff changeset
115 #endif /* MPLAYER_VO_COREVIDEO_H */