| 460 | } |
| 461 | |
| 462 | static int parse_transform_predictor(WebPContext *s) |
| 463 | { |
| 464 | int block_bits, blocks_w, blocks_h, ret; |
| 465 | |
| 466 | PARSE_BLOCK_SIZE(s->reduced_width, s->height); |
| 467 | |
| 468 | ret = decode_entropy_coded_image(s, IMAGE_ROLE_PREDICTOR, blocks_w, |
| 469 | blocks_h); |
| 470 | if (ret < 0) |
| 471 | return ret; |
| 472 | |
| 473 | s->image[IMAGE_ROLE_PREDICTOR].size_reduction = block_bits; |
| 474 | |
| 475 | return 0; |
| 476 | } |
| 477 | |
| 478 | static int parse_transform_color(WebPContext *s) |
| 479 | { |
no test coverage detected