2 +----------------------------------------------------------------------+
3 | Author: yoya@awm.jp |
4 +----------------------------------------------------------------------+
7 #ifndef __SWF_SHAPE_RECORD_H__
8 #define __SWF_SHAPE_RECORD_H__
11 #include "swf_shape_record_end.h"
12 #include "swf_shape_record_setup.h"
13 #include "swf_shape_record_edge.h"
15 typedef struct swf_shape_record_ {
16 unsigned char first_6bits; // : 6
18 swf_shape_record_end_t shape_end;
19 swf_shape_record_setup_t shape_setup;
20 swf_shape_record_edge_t shape_edge;
22 struct swf_shape_record_ *next;
25 extern int swf_shape_record_parse(bitstream_t *bs,
26 swf_shape_record_t *shape_record,
28 extern int swf_shape_record_build(bitstream_t *bs,
29 swf_shape_record_t *shape_record,
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);
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);
39 #endif /* __SWF_SHAPE_RECORD_H__ */