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

Function predict

libavcodec/ffv1.c:256–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256static inline int predict(int_fast16_t *src, int_fast16_t *last){
257 const int LT= last[-1];
258 const int T= last[ 0];
259 const int L = src[-1];
260
261 return mid_pred(L, L + T - LT, T);
262}
263
264static inline int get_context(FFV1Context *f, int_fast16_t *src, int_fast16_t *last, int_fast16_t *last2){
265 const int LT= last[-1];

Callers 2

encode_lineFunction · 0.70
decode_lineFunction · 0.70

Calls 1

mid_predFunction · 0.70

Tested by

no test coverage detected