Lines Matching refs:scanline
85 EXRScanlineData *scanline; member
127 s->scanline = av_calloc(s->nb_scanlines, sizeof(*s->scanline)); in encode_init()
128 if (!s->scanline) in encode_init()
138 for (int y = 0; y < s->nb_scanlines && s->scanline; y++) { in encode_close()
139 EXRScanlineData *scanline = &s->scanline[y]; in encode_close() local
141 av_freep(&scanline->tmp); in encode_close()
142 av_freep(&scanline->compressed_data); in encode_close()
143 av_freep(&scanline->uncompressed_data); in encode_close()
146 av_freep(&s->scanline); in encode_close()
219 EXRScanlineData *scanline = &s->scanline[y]; in encode_scanline_rle() local
223 av_fast_padded_malloc(&scanline->uncompressed_data, &scanline->uncompressed_size, tmp_size); in encode_scanline_rle()
224 if (!scanline->uncompressed_data) in encode_scanline_rle()
227 av_fast_padded_malloc(&scanline->tmp, &scanline->tmp_size, tmp_size); in encode_scanline_rle()
228 if (!scanline->tmp) in encode_scanline_rle()
231 …av_fast_padded_malloc(&scanline->compressed_data, &scanline->compressed_size, max_compressed_size); in encode_scanline_rle()
232 if (!scanline->compressed_data) in encode_scanline_rle()
240 memcpy(scanline->uncompressed_data + frame->width * 4 * p, in encode_scanline_rle()
247 uint16_t *dst = (uint16_t *)(scanline->uncompressed_data + frame->width * 2 * p); in encode_scanline_rle()
256 reorder_pixels(scanline->tmp, scanline->uncompressed_data, tmp_size); in encode_scanline_rle()
257 predictor(scanline->tmp, tmp_size); in encode_scanline_rle()
258 scanline->actual_size = rle_compress(scanline->compressed_data, in encode_scanline_rle()
260 scanline->tmp, tmp_size); in encode_scanline_rle()
262 if (scanline->actual_size <= 0 || scanline->actual_size >= tmp_size) { in encode_scanline_rle()
263 FFSWAP(uint8_t *, scanline->uncompressed_data, scanline->compressed_data); in encode_scanline_rle()
264 FFSWAP(int, scanline->uncompressed_size, scanline->compressed_size); in encode_scanline_rle()
265 scanline->actual_size = tmp_size; in encode_scanline_rle()
277 EXRScanlineData *scanline = &s->scanline[y]; in encode_scanline_zip() local
283 av_fast_padded_malloc(&scanline->uncompressed_data, &scanline->uncompressed_size, tmp_size); in encode_scanline_zip()
284 if (!scanline->uncompressed_data) in encode_scanline_zip()
287 av_fast_padded_malloc(&scanline->tmp, &scanline->tmp_size, tmp_size); in encode_scanline_zip()
288 if (!scanline->tmp) in encode_scanline_zip()
291 …av_fast_padded_malloc(&scanline->compressed_data, &scanline->compressed_size, max_compressed_size); in encode_scanline_zip()
292 if (!scanline->compressed_data) in encode_scanline_zip()
303 memcpy(scanline->uncompressed_data + scanline_size * l + p * frame->width * 4, in encode_scanline_zip()
315 …uint16_t *dst = (uint16_t *)(scanline->uncompressed_data + scanline_size * l + p * frame->width * … in encode_scanline_zip()
325 reorder_pixels(scanline->tmp, scanline->uncompressed_data, tmp_size); in encode_scanline_zip()
326 predictor(scanline->tmp, tmp_size); in encode_scanline_zip()
329 compress(scanline->compressed_data, &actual_size, in encode_scanline_zip()
330 scanline->tmp, source_size); in encode_scanline_zip()
332 scanline->actual_size = actual_size; in encode_scanline_zip()
333 if (scanline->actual_size >= tmp_size) { in encode_scanline_zip()
334 FFSWAP(uint8_t *, scanline->uncompressed_data, scanline->compressed_data); in encode_scanline_zip()
335 FFSWAP(int, scanline->uncompressed_size, scanline->compressed_size); in encode_scanline_zip()
336 scanline->actual_size = tmp_size; in encode_scanline_zip()
488 EXRScanlineData *scanline = &s->scanline[y]; in encode_frame() local
491 offset += scanline->actual_size + 8; in encode_frame()
495 EXRScanlineData *scanline = &s->scanline[y]; in encode_frame() local
498 bytestream2_put_le32(pb, scanline->actual_size); in encode_frame()
499 bytestream2_put_buffer(pb, scanline->compressed_data, in encode_frame()
500 scanline->actual_size); in encode_frame()