-
Notifications
You must be signed in to change notification settings - Fork 6
/
XeeILBMLoader.h
78 lines (55 loc) · 1.33 KB
/
XeeILBMLoader.h
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#import "XeeBitmapImage.h"
@class XeeIFFHandle;
@interface XeeILBMImage:XeeBitmapImage
{
XeeIFFHandle *iff;
int realwidth,realheight;
int planes,masking,compression,trans;
int xasp,yasp,xscale,yscale;
int rowbytes;
BOOL ham,ham8,ehb,ocscol,transparency;
uint8_t *image;
uint8_t *mask;
uint32_t palette[256];
NSMutableArray *ranges;
NSMutableArray *comments;
int current_line;
int clock;
NSTimer *animationtimer;
}
+(NSArray *)fileTypes;
+(BOOL)canOpenFile:(NSString *)name firstBlock:(NSData *)block attributes:(NSDictionary *)attributes;
-(id)init;
-(void)dealloc;
-(SEL)initLoader;
-(void)deallocLoader;
-(SEL)loadChunk;
-(SEL)startLoadingImage;
-(SEL)loadPaletteImage;
-(SEL)loadRGBImage;
-(void)readRow:(uint8_t *)row;
-(void)renderImage;
-(void)addCommentWithLabel:(NSString *)label data:(NSData *)commentdata;
-(uint32_t *)palette;
-(BOOL)animated;
-(void)setAnimating:(BOOL)animating;
-(BOOL)animating;
+(NSArray *)fileTypes;
@end
@interface XeeILBMRange:NSObject
{
int num;
uint32_t *colours;
int *indexes;
float interval;
float next;
XeeILBMImage *image;
}
-(id)initWithIFF:(XeeIFFHandle *)iff image:(XeeILBMImage *)image;
-(void)dealloc;
-(BOOL)allocBuffers:(int)length;
-(void)setIndexesFrom:(int)start to:(int)end reverse:(BOOL)reverse;
-(void)setup;
-(BOOL)triggerCheck:(float)time;
-(void)cycle;
@end