PageRenderTime 32ms CodeModel.GetById 25ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/XeePhotoshopLoader.h

https://code.google.com/p/xee/
C Header | 66 lines | 45 code | 21 blank | 0 comment | 0 complexity | 12394ac5260460625a1964c5c8e7df17 MD5 | raw file
 1#import "XeeMultiImage.h"
 2#import "XeeBitmapImage.h"
 3
 4#import <XADMaster/CSByteStreamHandle.h>
 5
 6#define XeePhotoshopBitmapMode 0
 7#define XeePhotoshopGreyscaleMode 1
 8#define XeePhotoshopIndexedMode 2
 9#define XeePhotoshopRGBMode 3
10#define XeePhotoshopCMYKMode 4
11#define XeePhotoshopMultichannelMode 7
12#define XeePhotoshopDuotoneMode 8
13#define XeePhotoshopLabMode 9
14
15
16
17@interface XeePhotoshopImage:XeeMultiImage
18{
19	int bitdepth,mode,channels;
20
21	SEL loadersel;
22	int loaderframe;
23}
24
25-(CSHandle *)handleForNumberOfChannels:(int)requiredchannels alpha:(BOOL)alpha;
26
27-(id)init;
28-(void)dealloc;
29-(SEL)initLoader;
30
31-(int)bitDepth;
32-(int)mode;
33
34@end
35
36
37
38@interface XeePackbitsHandle:CSByteStreamHandle
39{
40	int rows,bytesperrow;
41	off_t totalsize,*offsets;
42
43	int spanleft;
44	uint8_t spanbyte;
45	BOOL literal;
46}
47
48-(id)initWithHandle:(CSHandle *)handle rows:(int)numrows bytesPerRow:(int)bpr channel:(int)channel of:(int)numchannels previousSize:(off_t)prevsize;
49-(void)dealloc;
50
51-(uint8_t)produceByteAtOffset:(off_t)pos;
52
53-(off_t)totalSize;
54
55@end
56
57@interface XeeDeltaHandle:CSByteStreamHandle
58{
59	int cols,depth;
60	uint16_t curr;
61}
62
63-(id)initWithHandle:(CSHandle *)handle depth:(int)bitdepth columns:(int)columns;
64-(uint8_t)produceByteAtOffset:(off_t)pos;
65
66@end