Mercurial > mplayer.hg
view libvo/vo_macosx.h @ 15567:c8ef0513f470
prefer width&height from bitmapinfoheader for h263 streams
fixes playback of some MOV files
(http://mplayerhq.hu/pipermail/mplayer-dev-eng/2004-July/027777.html)
author | henry |
---|---|
date | Wed, 25 May 2005 09:20:50 +0000 |
parents | 8e21844c8a4c |
children | f197f4a60b20 |
line wrap: on
line source
/* vo_macosx.h by Nicolas Plourde <nicolasplourde@gmail.com> Copyright (c) Nicolas Plourde - 2005 MPlayer Mac OSX video out module. */ #import <Cocoa/Cocoa.h> #import <QuartzCore/QuartzCore.h> #import <QuickTime/QuickTime.h> @interface CustomOpenGLView : NSOpenGLView { //Cocoa NSWindow *window; NSOpenGLContext *glContext; NSEvent *event; //CoreVideo CVPixelBufferRef currentFrameBuffer; CVOpenGLTextureCacheRef textureCache; CVOpenGLTextureRef texture; GLfloat lowerLeft[2]; GLfloat lowerRight[2]; GLfloat upperRight[2]; GLfloat upperLeft[2]; BOOL mouseHide; } - (BOOL) acceptsFirstResponder; - (BOOL) becomeFirstResponder; - (BOOL) resignFirstResponder; //window & rendering - (void) initOpenGLView; - (void) prepareOpenGL; - (void) render; - (void) reshape; - (void) setCurrentTexture; - (void) drawRect: (NSRect *) bounds; - (void) fullscreen: (BOOL) animate; - (void) ontop; - (void) panscan; - (void) rootwin; //event - (void) keyDown: (NSEvent *) theEvent; - (void) mouseMoved: (NSEvent *) theEvent; - (void) mouseDown: (NSEvent *) theEvent; - (void) rightMouseDown: (NSEvent *) theEvent; - (void) otherMouseDown: (NSEvent *) theEvent; - (void) scrollWheel: (NSEvent *) theEvent; - (void) mouseEvent: (NSEvent *) theEvent; - (void) check_events; @end