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

Function get_context

libavcodec/ffv1.c:264–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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];
266 const int T= last[ 0];
267 const int RT= last[ 1];
268 const int L = src[-1];
269
270 if(f->quant_table[3][127]){
271 const int TT= last2[0];
272 const int LL= src[-2];
273 return f->quant_table[0][(L-LT) & 0xFF] + f->quant_table[1][(LT-T) & 0xFF] + f->quant_table[2][(T-RT) & 0xFF]
274 +f->quant_table[3][(LL-L) & 0xFF] + f->quant_table[4][(TT-T) & 0xFF];
275 }else
276 return f->quant_table[0][(L-LT) & 0xFF] + f->quant_table[1][(LT-T) & 0xFF] + f->quant_table[2][(T-RT) & 0xFF];
277}
278
279static inline void put_symbol_inline(RangeCoder *c, uint8_t *state, int v, int is_signed){
280 int i;

Callers 2

encode_lineFunction · 0.85
decode_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected