Lines Matching refs:idelta
111 static void choose_predictor (unsigned int channels, short *data, int *bpred, int *idelta) ;
217 int idelta ; in msadpcm_decode_block() local
291 idelta = chan_idelta [chan] ; in msadpcm_decode_block()
292 …chan_idelta [chan] = (AdaptationTable [bytecode] * idelta) >> 8 ; /* => / 256 => FIXED_POINT_ADAPT… in msadpcm_decode_block()
300 current = (bytecode * idelta) + predict ; in msadpcm_decode_block()
523 int chan, k, predict, bpred [2] = { 0 }, idelta [2] = { 0 }, in msadpcm_encode_block() local
526 choose_predictor (pms->channels, pms->samples, bpred, idelta) ; in msadpcm_encode_block()
532 pms->block [1] = idelta [0] & 0xFF ; in msadpcm_encode_block()
533 pms->block [2] = idelta [0] >> 8 ; in msadpcm_encode_block()
546 errordelta = (pms->samples [k] - predict) / idelta [0] ; in msadpcm_encode_block()
551 newsamp = predict + (idelta [0] * errordelta) ; in msadpcm_encode_block()
565 idelta [0] = (idelta [0] * AdaptationTable [errordelta]) >> 8 ; in msadpcm_encode_block()
566 if (idelta [0] < 16) in msadpcm_encode_block()
567 idelta [0] = 16 ; in msadpcm_encode_block()
576 pms->block [2] = idelta [0] & 0xFF ; in msadpcm_encode_block()
577 pms->block [3] = idelta [0] >> 8 ; in msadpcm_encode_block()
578 pms->block [4] = idelta [1] & 0xFF ; in msadpcm_encode_block()
579 pms->block [5] = idelta [1] >> 8 ; in msadpcm_encode_block()
599 errordelta = (pms->samples [k] - predict) / idelta [chan] ; in msadpcm_encode_block()
606 newsamp = predict + (idelta [chan] * errordelta) ; in msadpcm_encode_block()
621 idelta [chan] = (idelta [chan] * AdaptationTable [errordelta]) >> 8 ; in msadpcm_encode_block()
622 if (idelta [chan] < 16) in msadpcm_encode_block()
623 idelta [chan] = 16 ; in msadpcm_encode_block()
818 choose_predictor (unsigned int channels, short *data, int *block_pred, int *idelta) in choose_predictor() argument
846 idelta [chan] = best_idelta ; in choose_predictor()