Lines Matching refs:size
151 static void sub_left_prediction(PNGEncContext *c, uint8_t *dst, const uint8_t *src, int bpp, int size)
159 size -= bpp;
160 unaligned_w = FFMIN(32 - bpp, size);
163 size -= unaligned_w;
164 c->llvidencdsp.diff_bytes(dst, src1, src2, size);
168 uint8_t *src, uint8_t *top, int size, int bpp)
174 memcpy(dst, src, size);
177 sub_left_prediction(c, dst, src, bpp, size);
180 c->llvidencdsp.diff_bytes(dst, src, top, size);
185 for (; i < size; 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)
206 uint8_t *buf1 = dst, *buf2 = dst + size + 16;
208 png_filter_row(s, buf1 + 1, pred, src, top, size, bpp);
211 for (i = 0; i <= size; i++)
220 png_filter_row(s, dst + 1, pred, src, top, size, bpp);
274 static int png_write_row(AVCodecContext *avctx, const uint8_t *data, int size)
280 zstream->avail_in = size;
357 if (!sd || !sd->size)
360 zstream->avail_in = sd->size;
588 if (!sd || !sd->size)
590 if (sd->size != (uLong) sd->size)
593 bound = deflateBound(&s->zstream.zstream, sd->size);
628 s->bytestream_end = pkt->data + pkt->size;
643 pkt->size = s->bytestream - s->bytestream_start;