OSDN Git Service

delete png_set_gAMA
[swfed/swfed.git] / src / swf_cxformwithalpha.h
1 /*
2   +----------------------------------------------------------------------+
3   | Author: yoya@awm.jp                                                  |
4   +----------------------------------------------------------------------+
5 */
6
7 #ifndef __SWF_CXFORMWITHALPHA_H__
8 #define __SWF_CXFORMWITHALPHA_H__
9
10 typedef struct swf_cxformwithalpha_ {
11     unsigned char has_add_terms;
12     unsigned char has_mult_terms;
13     unsigned char nbits;
14     // multiply value
15     unsigned int red_mult_term;
16     unsigned int green_mult_term;
17     unsigned int blue_mult_term;
18     unsigned int alpha_mult_term;
19     // addition value
20     unsigned int red_add_term;
21     unsigned int green_add_term;
22     unsigned int blue_add_term;
23     unsigned int alpha_add_term;
24 } swf_cxformwithalpha_t;
25
26
27 extern int swf_cxformwithalpha_parse(bitstream_t *bs, swf_cxformwithalpha_t *color);
28 extern int swf_cxformwithalpha_build(bitstream_t *bs, swf_cxformwithalpha_t *color);
29 extern int swf_cxformwithalpha_print(swf_cxformwithalpha_t *color, int indent_depth);
30
31 #endif /* __SWF_CXFORMWITHALPHA_H__ */