6 swf_xrgb_parse(bitstream_t *bs, swf_xrgb_t *color) {
8 (void) bitstream_getbyte(bs); // pad
9 color->red = bitstream_getbyte(bs);
10 color->green = bitstream_getbyte(bs);
11 ret = bitstream_getbyte(bs);
20 swf_xrgb_build(bitstream_t *bs, swf_xrgb_t *color) {
21 bitstream_putbyte(bs, 0); // pad
22 bitstream_putbyte(bs, color->red);
23 bitstream_putbyte(bs, color->green);
24 bitstream_putbyte(bs, color->blue);
29 swf_xrgb_print(swf_xrgb_t *color) {
30 printf("pad=0xXX red=0x%02x green=0x%02X blue=0x%02x\n",
31 color->red, color->green, color->blue);