Mercurial > mplayer.hg
view libvo/vo_macosx.h @ 24340:df689b37871f
Fix compilation after FFmpeg AUDIO_(DE)MUXER split
The FFmpeg build system split AUDIO_(DE)MUXER into two parts:
AUDIO_BEOS_(DE)MUXER and OSS_(DE)MUXER. cehoyos's earlier fix only
changed the code from AUDIO_(DE)MUXER to AUDIO_BEOS_(DE)MUXER ignoring
the other half of the split. Fix it to also disable OSS_(DE)MUXER.
author | uau |
---|---|
date | Fri, 07 Sep 2007 18:57:45 +0000 |
parents | 9ce03980ed0c |
children | cf3b6015735d |
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 MPlayerOpenGLView : NSOpenGLView { //Cocoa NSWindow *window; NSOpenGLContext *glContext; NSEvent *event; //CoreVideo CVPixelBufferRef currentFrameBuffer; CVOpenGLTextureCacheRef textureCache; CVOpenGLTextureRef texture; NSRect textureFrame; GLfloat lowerLeft[2]; GLfloat lowerRight[2]; GLfloat upperRight[2]; GLfloat upperLeft[2]; BOOL mouseHide; float winSizeMult; //menu command id NSMenuItem *kQuitCmd; NSMenuItem *kHalfScreenCmd; NSMenuItem *kNormalScreenCmd; NSMenuItem *kDoubleScreenCmd; NSMenuItem *kFullScreenCmd; NSMenuItem *kKeepAspectCmd; NSMenuItem *kAspectOrgCmd; NSMenuItem *kAspectFullCmd; NSMenuItem *kAspectWideCmd; NSMenuItem *kPanScanCmd; } - (BOOL) acceptsFirstResponder; - (BOOL) becomeFirstResponder; - (BOOL) resignFirstResponder; //window & rendering - (void) preinit; - (void) config; - (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; - (void) mouseDown: (NSEvent *) theEvent; - (void) mouseUp: (NSEvent *) theEvent; - (void) rightMouseDown: (NSEvent *) theEvent; - (void) rightMouseUp: (NSEvent *) theEvent; - (void) otherMouseDown: (NSEvent *) theEvent; - (void) otherMouseUp: (NSEvent *) theEvent; - (void) scrollWheel: (NSEvent *) theEvent; - (void) mouseEvent: (NSEvent *) theEvent; - (void) check_events; @end