MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / reorder_pixels

Function reorder_pixels

libavcodec/exrenc.c:158–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158static void reorder_pixels(uint8_t *dst, const uint8_t *src, ptrdiff_t size)
159{
160 const ptrdiff_t half_size = (size + 1) / 2;
161 uint8_t *t1 = dst;
162 uint8_t *t2 = dst + half_size;
163
164 for (ptrdiff_t i = 0; i < half_size; i++) {
165 t1[i] = *(src++);
166 t2[i] = *(src++);
167 }
168}
169
170static void predictor(uint8_t *src, ptrdiff_t size)
171{

Callers 2

encode_scanline_rleFunction · 0.85
encode_scanline_zipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected