| 59 | } LSCRContext; |
| 60 | |
| 61 | static void handle_row(LSCRContext *s) |
| 62 | { |
| 63 | uint8_t *ptr, *last_row; |
| 64 | |
| 65 | ptr = s->image_buf + s->image_linesize * s->y; |
| 66 | if (s->y == 0) |
| 67 | last_row = s->last_row; |
| 68 | else |
| 69 | last_row = ptr - s->image_linesize; |
| 70 | |
| 71 | ff_png_filter_row(&s->dsp, ptr, s->crow_buf[0], s->crow_buf + 1, |
| 72 | last_row, s->row_size, 3); |
| 73 | |
| 74 | s->y++; |
| 75 | } |
| 76 | |
| 77 | static int decode_idat(LSCRContext *s, z_stream *zstream, int length) |
| 78 | { |
no test coverage detected