OSDN Git Service

add bitmap_id parameter into apply factor method.
[swfed/swfed.git] / src / swf_gradient.h
1 /*
2   +----------------------------------------------------------------------+
3   | Author: yoya@awm.jp                                                  |
4   +----------------------------------------------------------------------+
5 */
6
7 #ifndef __SWF_GRADIENT_H__
8 #define __SWF_GRADIENT_H__
9
10 #include "swf_tag.h"
11 #include "swf_gradient_record.h"
12
13 typedef struct swf_gradient_ {
14     unsigned char spread_mode : 2; // DefineShape4
15     unsigned char interpolation_mode : 2; // DefineShape4
16     unsigned char pad : 4;    // other tag
17     unsigned char count : 4;
18     swf_gradient_record_t *gradient_record; // count
19     signed short focal_point; // type == 0x13
20     
21 } swf_gradient_t;
22
23 extern int swf_gradient_parse(bitstream_t *bs, swf_gradient_t *gradient,
24                               swf_tag_t *tag, int type);
25 extern int swf_gradient_build(bitstream_t *bs, swf_gradient_t *gradient,
26                               swf_tag_t *tag, int type);
27 extern int swf_gradient_print(swf_gradient_t *gradient, int indent_depth,
28                               swf_tag_t *tag, int type);
29
30 extern int swf_gradient_delete(swf_gradient_t *gradient);
31
32 #endif /* __SWF_GRADIENT_H__ */