blob: bcbb0951706b8714ef45dc1d541618bd5141fe50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/* $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/>.
It may be used under the terms of the GNU General Public License. */
#include <Cocoa/Cocoa.h>
#include "hb.h"
#define HB_ANIMATE_NONE 1
#define HB_ANIMATE_BACKWARD 2
#define HB_ANIMATE_FORWARD 4
#define HB_ANIMATE_SLOW 8
@interface HBPictureGLView : NSOpenGLView
{
bool fHasQE;
unsigned long fTarget;
int fWidth;
int fHeight;
int fTexWidth;
int fTexHeight;
float fCoordX;
float fCoordY;
uint8_t * fBuffers[2];
#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4
unsigned long fTextures[2];
#else
/* Leopard */
unsigned int fTextures[2];
#endif;
int fLastEffect;
int fAnimDuration;
int fFrameRate;
}
- (id) initWithFrame: (NSRect) frame;
- (void) reshape;
- (void) drawRect: (NSRect) rect;
- (void) drawAnimation: (int) anim;
- (void) Display: (int) anim buffer1: (uint8_t *) buffer1
buffer2: (uint8_t *) buffer2 width: (int) width
height: (int) height;
@end
|