| 476 | } |
| 477 | |
| 478 | static int parse_transform_color(WebPContext *s) |
| 479 | { |
| 480 | int block_bits, blocks_w, blocks_h, ret; |
| 481 | |
| 482 | PARSE_BLOCK_SIZE(s->reduced_width, s->height); |
| 483 | |
| 484 | ret = decode_entropy_coded_image(s, IMAGE_ROLE_COLOR_TRANSFORM, blocks_w, |
| 485 | blocks_h); |
| 486 | if (ret < 0) |
| 487 | return ret; |
| 488 | |
| 489 | s->image[IMAGE_ROLE_COLOR_TRANSFORM].size_reduction = block_bits; |
| 490 | |
| 491 | return 0; |
| 492 | } |
| 493 | |
| 494 | static int parse_transform_color_indexing(WebPContext *s) |
| 495 | { |
no test coverage detected