OSDN Git Service

test for replaceBitmapData Lossless with alpha0
[swfed/swfed.git] / src / swf_shape_record_edge.h
1 /*
2   +----------------------------------------------------------------------+
3   | Author: yoya@awm.jp                                                  |
4   +----------------------------------------------------------------------+
5 */
6
7 #ifndef __SWF_SHAPE_RECORD_EDGE_H__
8 #define __SWF_SHAPE_RECORD_EDGE_H__
9
10 #include "swf_styles.h"
11
12 typedef struct swf_shape_record_edge_ {
13     unsigned shape_record_type : 1;
14     unsigned shape_edge_type : 1;
15     unsigned shape_coord_size : 4;
16     //  shape_coord_real_size =  shape_coord_size + 2;
17     signed /* twips */ shape_control_x; // :  shape_coord_real_size;
18     signed /* twips */ shape_control_y; // :  shape_coord_real_size;
19     signed /* twips */ shape_anchor_x; // :  shape_coord_real_size;
20     signed /* twips */ shape_anchor_y; // :  shape_coord_real_size;
21     unsigned shape_line_has_x_and_y : 1;
22     unsigned shape_line_has_x_or_y : 1;
23     signed /* twips */ shape_x; // :  shape_coord_real_size;
24     signed /* twips */ shape_y; // :  shape_coord_real_size;
25 } swf_shape_record_edge_t;
26
27 extern int swf_shape_record_edge_parse(bitstream_t *bs, swf_shape_record_edge_t *color, swf_tag_t *tag);
28 extern int swf_shape_record_edge_build(bitstream_t *bs, swf_shape_record_edge_t *color, swf_tag_t *tag);
29 extern int swf_shape_record_edge_print(swf_shape_record_edge_t *color, int indent_depth);
30
31 #endif /* __SWF_SHAPE_RECORD_EDGE_H__ */