6 swf_rgba_parse(bitstream_t *bs, swf_rgba_t *color) {
8 color->red = bitstream_getbyte(bs);
9 color->green = bitstream_getbyte(bs);
10 color->blue = bitstream_getbyte(bs);
11 ret = bitstream_getbyte(bs);
20 swf_rgba_build(bitstream_t *bs, swf_rgba_t *color) {
21 bitstream_putbyte(bs, color->red);
22 bitstream_putbyte(bs, color->green);
23 bitstream_putbyte(bs, color->blue);
24 bitstream_putbyte(bs, color->alpha);
29 swf_rgba_print(swf_rgba_t *color, int indent_depth) {
30 print_indent(indent_depth);
31 printf("RGB(A)=#%02x%02x%02x(%02x)\n",
32 color->red, color->green, color->blue, color->alpha);