Lines Matching refs:frame
222 static int encode_scanline_rle(EXRContext *s, const AVFrame *frame)
226 for (int y = 0; y < frame->height; y++) {
228 int64_t tmp_size = element_size * s->planes * frame->width;
248 memcpy(scanline->uncompressed_data + frame->width * 4 * p,
249 frame->data[ch] + y * frame->linesize[ch], frame->width * 4);
255 uint16_t *dst = (uint16_t *)(scanline->uncompressed_data + frame->width * 2 * p);
256 uint32_t *src = (uint32_t *)(frame->data[ch] + y * frame->linesize[ch]);
258 for (int x = 0; x < frame->width; x++)
280 static int encode_scanline_zip(EXRContext *s, const AVFrame *frame)
286 const int scanline_height = FFMIN(s->scanline_height, frame->height - y * s->scanline_height);
287 int64_t tmp_size = element_size * s->planes * frame->width * scanline_height;
306 const int scanline_size = frame->width * 4 * s->planes;
311 memcpy(scanline->uncompressed_data + scanline_size * l + p * frame->width * 4,
312 frame->data[ch] + (y * s->scanline_height + l) * frame->linesize[ch],
313 frame->width * 4);
319 const int scanline_size = frame->width * 2 * s->planes;
323 uint16_t *dst = (uint16_t *)(scanline->uncompressed_data + scanline_size * l + p * frame->width * 2);
324 uint32_t *src = (uint32_t *)(frame->data[ch] + (y * s->scanline_height + l) * frame->linesize[ch]);
326 for (int x = 0; x < frame->width; x++)
352 const AVFrame *frame, int *got_packet)
441 encode_scanline_rle(s, frame);
445 encode_scanline_zip(s, frame);
467 bytestream2_put_buffer(pb, frame->data[ch] + y * frame->linesize[ch],
482 uint32_t *src = (uint32_t *)(frame->data[ch] + y * frame->linesize[ch]);
484 for (int x = 0; x < frame->width; x++)