-
Notifications
You must be signed in to change notification settings - Fork 33
/
SWFParser.h
72 lines (57 loc) · 1.41 KB
/
SWFParser.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
#import <Foundation/Foundation.h>
#import "SWFGeometry.h"
#import <XADMaster/CSHandle.h>
#define SWFEndTag 0
#define SWFShowFrameTag 1
#define SWFDefineShapeTag 2
#define SWFPlaceObjectTag 4
#define SWFRemoveObjectTag 5
#define SWFDefineBitsJPEGTag 6
#define SWFJPEGTables 8
#define SWFDefineTextTag 11
#define SWFDefineFontInfoTag 13
#define SWFDefineSoundTag 14
#define SWFSoundStreamHeadTag 18
#define SWFSoundStreamBlockTag 19
#define SWFDefineBitsLosslessTag 20
#define SWFDefineBitsJPEG2Tag 21
#define SWFPlaceObject2Tag 26
#define SWFRemoveObject2Tag 28
#define SWFDefineText2Tag 33
#define SWFDefineBitsJPEG3Tag 35
#define SWFDefineBitsLossless2Tag 36
#define SWFSoundStreamHead2Tag 45
#define SWFDefineFont2Tag 48
#define SWFPlaceObject3Tag 70
#define SWFDefineFont3Tag 75
extern NSString *SWFWrongMagicException;
extern NSString *SWFNoMoreTagsException;
@interface SWFParser:NSObject
{
CSHandle *fh;
off_t nexttag;
int totallen,version;
SWFRect rect;
int frames,fps;
int currtag,currlen;
int currframe;
}
+(SWFParser *)parserWithHandle:(CSHandle *)handle;
+(SWFParser *)parserForPath:(NSString *)path;
-(id)initWithHandle:(CSHandle *)handle;
-(void)dealloc;
-(void)parseHeader;
-(int)version;
-(SWFRect)rect;
-(int)frames;
-(int)framesPerSecond;
-(int)nextTag;
-(int)tag;
-(int)tagLength;
-(int)tagBytesLeft;
-(int)frame;
-(double)time;
-(CSHandle *)handle;
-(CSHandle *)tagHandle;
-(NSData *)tagContents;
@end