summaryrefslogtreecommitdiffstats
path: root/libvo/vo_macosx.h
diff options
context:
space:
mode:
authorulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-28 00:01:35 +0000
committerulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-28 00:01:35 +0000
commite3c9524d66036b0267beb23658fda920f5973c75 (patch)
treeb92a6d48755ad0e591418234c0efeeb0c608453f /libvo/vo_macosx.h
parent8e18e416381c546fa77eba30ce15d3dfa2e9a4f3 (diff)
downloadmpv-e3c9524d66036b0267beb23658fda920f5973c75.tar.bz2
mpv-e3c9524d66036b0267beb23658fda920f5973c75.tar.xz
Set protocol for the vo proxy used in shared-buffer mode.
NOTE: You have to update your mplayerosx to svn r148 or newer to work with it. This change will speed up vo proxy and fix all these warnings: vo_macosx.m: In function 'config': vo_macosx.m:165: warning: 'NSProxy' may not respond to '-startWithWidth:withHeight:withBytes:withAspect:' vo_macosx.m:165: warning: (Messages without a matching method signature vo_macosx.m:165: warning: will be assumed to return 'id' and accept vo_macosx.m:165: warning: '...' as arguments.) vo_macosx.m: In function 'flip_page': vo_macosx.m:183: warning: 'NSProxy' may not respond to '-render' vo_macosx.m: In function 'uninit': vo_macosx.m:235: warning: 'NSProxy' may not respond to '-stop' vo_macosx.m: In function 'control': vo_macosx.m:334: warning: 'NSProxy' may not respond to '-ontop' vo_macosx.m:336: warning: 'NSProxy' may not respond to '-toggleFullscreen' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25185 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_macosx.h')
-rw-r--r--libvo/vo_macosx.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libvo/vo_macosx.h b/libvo/vo_macosx.h
index 04a2381e54..a4c7c8266b 100644
--- a/libvo/vo_macosx.h
+++ b/libvo/vo_macosx.h
@@ -12,6 +12,18 @@
#import <QuartzCore/QuartzCore.h>
#import <QuickTime/QuickTime.h>
+// MPlayer OS X VO Protocol
+@protocol MPlayerOSXVOProto
+- (int) startWithWidth: (bycopy int)width
+ withHeight: (bycopy int)height
+ withBytes: (bycopy int)bytes
+ withAspect: (bycopy int)aspect;
+- (void) stop;
+- (void) render;
+- (void) toggleFullscreen;
+- (void) ontop;
+@end
+
@interface MPlayerOpenGLView : NSOpenGLView
{
//Cocoa