OSDN Git Service

test for replaceBitmapData Lossless with alpha0
[swfed/swfed.git] / src / swf_shape_record.h
1 /*
2   +----------------------------------------------------------------------+
3   | Author: yoya@awm.jp                                                  |
4   +----------------------------------------------------------------------+
5 */
6
7 #ifndef __SWF_SHAPE_RECORD_H__
8 #define __SWF_SHAPE_RECORD_H__
9
10 #include "swf_tag.h"
11 #include "swf_shape_record_end.h"
12 #include "swf_shape_record_setup.h"
13 #include "swf_shape_record_edge.h"
14
15 typedef struct swf_shape_record_ {
16     unsigned char first_6bits; //  : 6
17     union {
18         swf_shape_record_end_t   shape_end;
19         swf_shape_record_setup_t shape_setup;
20         swf_shape_record_edge_t  shape_edge;
21     } shape;
22     struct swf_shape_record_ *next;
23 } swf_shape_record_t;
24
25 extern int swf_shape_record_parse(bitstream_t *bs,
26                                   swf_shape_record_t *shape_record,
27                                   swf_tag_t *tag);
28 extern int swf_shape_record_build(bitstream_t *bs,
29                                   swf_shape_record_t *shape_record,
30                                   swf_tag_t *tag);
31 extern int swf_shape_record_print(swf_shape_record_t *shape_record,
32                                   int indent_depth, swf_tag_t *tag);
33 extern int swf_shape_record_delete(swf_shape_record_t *shape_record);
34
35 extern int swf_shape_record_edge_apply_factor(swf_shape_record_t *shape_record,
36                                               double scale_x, double scale_y,
37                                               signed trans_x, signed trans_y);
38
39 #endif /* __SWF_SHAPE_RECORD_H__ */