[MPlayer-cvslog] CVS: main/libvo vo_macosx.h, 1.3, 1.4 vo_macosx.m, 1.10, 1.11

Nicolas Plourde CVS syncmail at mplayerhq.hu
Thu Jun 2 16:10:54 CEST 2005


CVS change done by Nicolas Plourde CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv32502/libvo

Modified Files:
	vo_macosx.h vo_macosx.m 
Log Message:
Function name cleanup


Index: vo_macosx.h
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_macosx.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- vo_macosx.h	25 May 2005 23:38:59 -0000	1.3
+++ vo_macosx.h	2 Jun 2005 14:10:52 -0000	1.4
@@ -12,7 +12,7 @@
 #import <QuartzCore/QuartzCore.h>
 #import <QuickTime/QuickTime.h>
 
- at interface CustomOpenGLView : NSOpenGLView
+ at interface MPlayerOpenGLView : NSOpenGLView
 {
 	//Cocoa
 	NSWindow *window;
@@ -49,19 +49,23 @@
 - (BOOL) resignFirstResponder;
 
 //window & rendering
-- (void) initOpenGLView;
-- (void) initMenu;
-- (void) menuAction:(id)sender;
+- (void) initView;
 - (void) prepareOpenGL;
 - (void) render;
 - (void) reshape;
 - (void) setCurrentTexture;
 - (void) drawRect: (NSRect *) bounds;
+
+//vo control
 - (void) fullscreen: (BOOL) animate;
 - (void) ontop;
 - (void) panscan;
 - (void) rootwin;
 
+//menu
+- (void) initMenu;
+- (void) menuAction:(id)sender;
+
 //event
 - (void) keyDown: (NSEvent *) theEvent;
 - (void) mouseMoved: (NSEvent *) theEvent;

Index: vo_macosx.m
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_macosx.m,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- vo_macosx.m	2 Jun 2005 12:03:26 -0000	1.10
+++ vo_macosx.m	2 Jun 2005 14:10:52 -0000	1.11
@@ -25,7 +25,7 @@
 extern void mplayer_put_key(int code);
 
 //Cocoa
-CustomOpenGLView *glView;
+MPlayerOpenGLView *mpGLView;
 NSAutoreleasePool *autoreleasepool;
 OSType pixelFormat;
 
@@ -137,26 +137,26 @@
 	old_movie_aspect = movie_aspect;
 	
 	//init OpenGL View
-	glView = [[CustomOpenGLView alloc] initWithFrame:NSMakeRect(0, 0, d_width, d_height) pixelFormat:[CustomOpenGLView defaultPixelFormat]];
-	[glView initOpenGLView];
+	mpGLView = [[MPlayerOpenGLView alloc] initWithFrame:NSMakeRect(0, 0, d_width, d_height) pixelFormat:[MPlayerOpenGLView defaultPixelFormat]];
+	[mpGLView initView];
 	
 	vo_fs = flags & VOFLAG_FULLSCREEN;
 	
 	if(vo_rootwin)
-		[glView rootwin];	
+		[mpGLView rootwin];	
 
 	if(vo_fs)
-		[glView fullscreen: NO];
+		[mpGLView fullscreen: NO];
 	
 	if(vo_ontop)
-		[glView ontop];
+		[mpGLView ontop];
 	
 	return 0;
 }
 
 static void check_events(void)
 {
-	[glView check_events];
+	[mpGLView check_events];
 	
 	//update activity every 60 seconds to prevent
 	//screensaver from starting up.
@@ -181,12 +181,12 @@
 
 static void flip_page(void)
 {
-	[glView render];
+	[mpGLView render];
 }
 
 static uint32_t draw_slice(uint8_t *src[], int stride[], int w,int h,int x,int y)
 {
-	[glView setCurrentTexture];
+	[mpGLView setCurrentTexture];
 	return 0;
 }
 
@@ -204,7 +204,7 @@
 			memcpy_pic(image_data, src[0], image_width * 2, image_height, image_width * 2, image_width * 2);
 			break;
 	}
-	[glView setCurrentTexture];
+	[mpGLView setCurrentTexture];
 	return 0;
 }
 
@@ -283,11 +283,11 @@
 		case VOCTRL_PAUSE: return (int_pause=1);
 		case VOCTRL_RESUME: return (int_pause=0);
 		case VOCTRL_QUERY_FORMAT: return query_format(*((uint32_t*)data));
-		case VOCTRL_ONTOP: vo_ontop = (!(vo_ontop)); [glView ontop]; return VO_TRUE;
-		case VOCTRL_ROOTWIN: vo_rootwin = (!(vo_rootwin)); [glView rootwin]; return VO_TRUE;
-		case VOCTRL_FULLSCREEN: vo_fs = (!(vo_fs)); [glView fullscreen: YES]; return VO_TRUE;
+		case VOCTRL_ONTOP: vo_ontop = (!(vo_ontop)); [mpGLView ontop]; return VO_TRUE;
+		case VOCTRL_ROOTWIN: vo_rootwin = (!(vo_rootwin)); [mpGLView rootwin]; return VO_TRUE;
+		case VOCTRL_FULLSCREEN: vo_fs = (!(vo_fs)); [mpGLView fullscreen: YES]; return VO_TRUE;
 		case VOCTRL_GET_PANSCAN: return VO_TRUE;
-		case VOCTRL_SET_PANSCAN: [glView panscan]; return VO_TRUE;
+		case VOCTRL_SET_PANSCAN: [mpGLView panscan]; return VO_TRUE;
 	}
 	return VO_NOTIMPL;
 }
@@ -295,8 +295,8 @@
 //////////////////////////////////////////////////////////////////////////
 // NSOpenGLView Subclass
 //////////////////////////////////////////////////////////////////////////
- at implementation CustomOpenGLView
-- (void) initOpenGLView
+ at implementation MPlayerOpenGLView
+- (void) initView
 {
 	long swapInterval = 1;
 	NSRect frame = [self frame];




More information about the MPlayer-cvslog mailing list