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

Function predictor_init_state

libavcodec/sonic.c:364–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362#endif
363
364static void predictor_init_state(int *k, int *state, int order)
365{
366 int i;
367
368 for (i = order-2; i >= 0; i--)
369 {
370 int j, p, x = state[i];
371
372 for (j = 0, p = i+1; p < order; j++,p++)
373 {
374 int tmp = x + shift_down(k[j] * state[p], LATTICE_SHIFT);
375 state[p] += shift_down(k[j]*x, LATTICE_SHIFT);
376 x = tmp;
377 }
378 }
379}
380
381static int predictor_calc_error(int *k, int *state, int order, int error)
382{

Callers 1

sonic_decode_frameFunction · 0.85

Calls 1

shift_downFunction · 0.85

Tested by

no test coverage detected