Lines Matching refs:top
123 static void sub_png_paeth_prediction(uint8_t *dst, uint8_t *src, uint8_t *top,
131 b = top[i];
132 c = top[i - bpp];
168 uint8_t *src, uint8_t *top, int size, int bpp)
180 c->llvidencdsp.diff_bytes(dst, src, top, size);
184 dst[i] = src[i] - (top[i] >> 1);
186 dst[i] = src[i] - ((src[i - bpp] + top[i]) >> 1);
190 dst[i] = src[i] - top[i];
191 sub_png_paeth_prediction(dst + i, src + i, top + i, size - i, bpp);
197 uint8_t *src, uint8_t *top, int size, int bpp)
201 if (!top && pred)
208 png_filter_row(s, buf1 + 1, pred, src, top, size, bpp);
220 png_filter_row(s, dst + 1, pred, src, top, size, bpp);
489 uint8_t *ptr, *top, *crow_buf, *crow;
523 top = NULL;
532 top, pass_row_size, s->bits_per_pixel >> 3);
534 top = progressive_buf;
539 top = NULL;
542 crow = png_choose_filter(s, crow_buf, ptr, top,
545 top = ptr;