diff options
author | handbrake <[email protected]> | 2006-01-14 13:40:38 +0000 |
---|---|---|
committer | handbrake <[email protected]> | 2006-01-14 13:40:38 +0000 |
commit | 56bb6ce496b475944bb9577c7586e84be1cb831e (patch) | |
tree | 7720c135a160a34f22ce8f1f911f350e18207eaa /macosx/PictureGLView.h | |
parent | d35a2a23fe450c88925128b9db7c63a5f1ed395d (diff) |
HandBrake 0.7.0
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@16 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/PictureGLView.h')
-rw-r--r-- | macosx/PictureGLView.h | 40 |
1 files changed, 26 insertions, 14 deletions
diff --git a/macosx/PictureGLView.h b/macosx/PictureGLView.h index c558c3c0f..229d822ac 100644 --- a/macosx/PictureGLView.h +++ b/macosx/PictureGLView.h @@ -1,4 +1,4 @@ -/* $Id: PictureGLView.h,v 1.1.1.1 2003/11/03 12:03:51 titer Exp $ +/* $Id: PictureGLView.h,v 1.7 2005/08/01 15:10:44 titer Exp $ This file is part of the HandBrake source code. Homepage: <http://handbrake.m0k.org/>. @@ -6,29 +6,41 @@ #include <Cocoa/Cocoa.h> -#include "HandBrake.h" +#include "hb.h" -#define HB_ANIMATE_NONE 0 -#define HB_ANIMATE_LEFT 1 -#define HB_ANIMATE_RIGHT 2 +#define HB_ANIMATE_NONE 1 +#define HB_ANIMATE_BACKWARD 2 +#define HB_ANIMATE_FORWARD 4 +#define HB_ANIMATE_SLOW 8 @interface HBPictureGLView : NSOpenGLView { - HBHandle * fHandle; - HBTitle * fTitle; - - uint8_t * fPicture; - uint8_t * fOldPicture; + bool fHasQE; + unsigned long fTarget; + + int fWidth; + int fHeight; + int fTexWidth; + int fTexHeight; + float fCoordX; + float fCoordY; + + uint8_t * fBuffers[2]; + unsigned long fTextures[2]; + + int fLastEffect; + int fAnimDuration; + int fFrameRate; } - (id) initWithFrame: (NSRect) frame; - (void) reshape; - (void) drawRect: (NSRect) rect; -- (void) drawAnimation: (int) how; +- (void) drawAnimation: (int) anim; -- (void) SetHandle: (HBHandle*) handle; -- (void) SetTitle: (HBTitle*) title; -- (void) ShowPicture: (int) index animate: (int) how; +- (void) Display: (int) anim buffer1: (uint8_t *) buffer1 + buffer2: (uint8_t *) buffer2 width: (int) width + height: (int) height; @end |