Lines Matching refs:predictor
286 int predictor, nibble, bias; in adpcm_ms_compress_sample() local
288 predictor = (((c->sample1) * (c->coeff1)) + in adpcm_ms_compress_sample()
291 nibble = sample - predictor; in adpcm_ms_compress_sample()
300 predictor += ((nibble & 0x08) ? (nibble - 0x10) : nibble) * c->idelta; in adpcm_ms_compress_sample()
303 c->sample1 = av_clip_int16(predictor); in adpcm_ms_compress_sample()
318 c->predictor = 0; in adpcm_yamaha_compress_sample()
322 delta = sample - c->predictor; in adpcm_yamaha_compress_sample()
326 c->predictor += ((c->step * ff_adpcm_yamaha_difflookup[nibble]) / 8); in adpcm_yamaha_compress_sample()
327 c->predictor = av_clip_int16(c->predictor); in adpcm_yamaha_compress_sample()
371 nodes[0]->sample1 = c->predictor; in adpcm_compress_trellis()
388 const int predictor = ((nodes[j]->sample1 * c->coeff1) + in adpcm_compress_trellis() local
390 const int div = (sample - predictor) / step; in adpcm_compress_trellis()
395 int dec_sample = predictor + nidx * step; in adpcm_compress_trellis()
468 const int predictor = nodes[j]->sample1;\ in adpcm_compress_trellis()
469 const int div = (sample - predictor) * 4 / STEP_TABLE;\ in adpcm_compress_trellis()
478 int dec_sample = predictor +\ in adpcm_compress_trellis()
533 c->predictor = nodes[0]->sample1; in adpcm_compress_trellis()
669 status->prev_sample = status->predictor; in adpcm_encode_frame()
766 int predictor = 0; in adpcm_encode_frame() local
767 *dst++ = predictor; in adpcm_encode_frame()
768 c->status[i].coeff1 = ff_adpcm_AdaptCoeff1[predictor]; in adpcm_encode_frame()
769 c->status[i].coeff2 = ff_adpcm_AdaptCoeff2[predictor]; in adpcm_encode_frame()