OSDN Git Service

Improved debug messages for Cell start/stop with Cell number and block.
[handbrake-jp/handbrake-jp-git.git] / macosx / PictureGLView.h
1 /* $Id: PictureGLView.h,v 1.7 2005/08/01 15:10:44 titer Exp $
2
3    This file is part of the HandBrake source code.
4    Homepage: <http://handbrake.m0k.org/>.
5    It may be used under the terms of the GNU General Public License. */
6
7 #include <Cocoa/Cocoa.h>
8
9 #include "hb.h"
10
11 #define HB_ANIMATE_NONE     1
12 #define HB_ANIMATE_BACKWARD 2
13 #define HB_ANIMATE_FORWARD  4
14 #define HB_ANIMATE_SLOW     8
15
16 @interface HBPictureGLView : NSOpenGLView
17
18 {
19     bool            fHasQE;
20     unsigned long   fTarget;
21
22     int             fWidth;
23     int             fHeight;
24     int             fTexWidth;
25     int             fTexHeight;
26     float           fCoordX;
27     float           fCoordY;
28
29     uint8_t       * fBuffers[2];
30     unsigned long   fTextures[2];
31
32     int             fLastEffect;
33     int             fAnimDuration;
34     int             fFrameRate;
35 }
36
37 - (id) initWithFrame: (NSRect) frame;
38 - (void) reshape;
39 - (void) drawRect: (NSRect) rect;
40 - (void) drawAnimation: (int) anim;
41
42 - (void) Display: (int) anim buffer1: (uint8_t *) buffer1
43     buffer2: (uint8_t *) buffer2 width: (int) width
44     height: (int) height;
45
46 @end