Lines Matching defs:linesize

101                                 const uint8_t *buf, const int linesize)
115 buf += linesize;
139 static int pick_palette_entry(const uint8_t *buf, int linesize, int w, int h)
147 buf += linesize;
156 const uint8_t *buf, const int linesize,
174 if (buf[linesize * *y_start + i] != trans) {
189 if (buf[linesize * y_end + i] != trans) {
203 if (buf[linesize * i + *x_start] != trans) {
217 if (buf[linesize * i + x_end] != trans) {
236 const uint8_t *buf, const int linesize,
244 const int ref_linesize = s->last_frame->linesize[0];
250 if (memcmp(ref + *y_start*ref_linesize, buf + *y_start*linesize, *width))
255 if (memcmp(ref + y_end*ref_linesize, buf + y_end*linesize, *width))
265 if (ref[y*ref_linesize + *x_start] != buf[y*linesize + *x_start]) {
277 if (ref[y*ref_linesize + x_end] != buf[y*linesize + x_end]) {
296 const uint8_t *buf, const int linesize,
316 if (!s->image && is_image_translucent(avctx, buf, linesize)) {
317 gif_crop_translucent(avctx, buf, linesize, &width, &height, &x_start, &y_start);
321 gif_crop_opaque(avctx, palette, buf, linesize, &width, &height, &x_start, &y_start);
354 trans = pick_palette_entry(buf + y_start*linesize + x_start,
355 linesize, width, height);
406 s->shrunk_buf = av_malloc(avctx->height * linesize);
412 remap_frame_to_palette(buf, linesize, s->shrunk_buf, linesize, avctx->width, avctx->height, map);
413 ptr = s->shrunk_buf + y_start*linesize + x_start;
415 ptr = buf + y_start*linesize + x_start;
418 const int ref_linesize = s->last_frame->linesize[0];
427 ptr += linesize;
433 ptr += linesize;
502 pict->data[0], pict->linesize[0], pkt);