forked from zepouet/Xee-xCode-4.5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PDFStream.h
103 lines (77 loc) · 2.12 KB
/
PDFStream.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#import <Foundation/Foundation.h>
#import "NSDictionaryNumberExtension.h"
#import <XADMaster/CSHandle.h>
#import <XADMaster/CSByteStreamHandle.h>
@class PDFParser,PDFObjectReference;
@interface PDFStream:NSObject
{
NSDictionary *dict;
CSHandle *fh;
off_t offs;
PDFObjectReference *ref;
PDFParser *parser;
}
-(id)initWithDictionary:(NSDictionary *)dictionary fileHandle:(CSHandle *)filehandle
reference:(PDFObjectReference *)reference parser:(PDFParser *)owner;
-(void)dealloc;
-(NSDictionary *)dictionary;
-(PDFObjectReference *)reference;
-(BOOL)isImage;
-(BOOL)isJPEG;
-(BOOL)isJPEG2000;
-(BOOL)isMask;
-(BOOL)isBitmap;
-(BOOL)isIndexed;
-(BOOL)isGrey;
-(BOOL)isRGB;
-(BOOL)isCMYK;
-(BOOL)isLab;
-(NSString *)finalFilter;
-(int)bitsPerComponent;
-(NSString *)colourSpaceOrAlternate;
-(NSString *)subColourSpaceOrAlternate;
-(NSString *)_parseColourSpace:(id)colourspace;
-(int)numberOfColours;
-(NSData *)paletteData;
-(NSArray *)decodeArray;
-(CSHandle *)rawHandle;
-(CSHandle *)handle;
-(CSHandle *)JPEGHandle;
-(CSHandle *)handleExcludingLast:(BOOL)excludelast;
-(CSHandle *)handleForFilterName:(NSString *)filtername decodeParms:(NSDictionary *)decodeparms parentHandle:(CSHandle *)parent;
-(CSHandle *)predictorHandleForDecodeParms:(NSDictionary *)decodeparms parentHandle:(CSHandle *)parent;
-(NSString *)description;
@end
@interface PDFASCII85Handle:CSByteStreamHandle
{
uint32_t val;
BOOL finalbytes;
}
-(void)resetByteStream;
-(uint8_t)produceByteAtOffset:(off_t)pos;
@end
@interface PDFHexHandle:CSByteStreamHandle
{
}
-(uint8_t)produceByteAtOffset:(off_t)pos;
@end
@interface PDFTIFFPredictorHandle:CSByteStreamHandle
{
int cols,comps,bpc;
int prev[4];
}
-(id)initWithHandle:(CSHandle *)handle columns:(int)columns
components:(int)components bitsPerComponent:(int)bitspercomp;
-(uint8_t)produceByteAtOffset:(off_t)pos;
@end
@interface PDFPNGPredictorHandle:CSByteStreamHandle
{
int cols,comps,bpc;
uint8_t *prevbuf;
int type;
}
-(id)initWithHandle:(CSHandle *)handle columns:(int)columns
components:(int)components bitsPerComponent:(int)bitspercomp;
-(void)resetByteStream;
-(uint8_t)produceByteAtOffset:(off_t)pos;
@end