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

Function predictor

libavcodec/exrenc.c:170–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170static void predictor(uint8_t *src, ptrdiff_t size)
171{
172 int p = src[0];
173
174 for (ptrdiff_t i = 1; i < size; i++) {
175 int d = src[i] - p + 384;
176
177 p = src[i];
178 src[i] = d;
179 }
180}
181
182static int64_t rle_compress(uint8_t *out, int64_t out_size,
183 const uint8_t *in, int64_t in_size)

Callers 2

encode_scanline_rleFunction · 0.70
encode_scanline_zipFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected