Lines Matching defs:idelta

70 **		1,2		initial idelta (positive)
79 ** 2,3 initial idelta (positive) for left channel
80 ** 4,5 initial idelta (positive) for right channel
111 static void choose_predictor (unsigned int channels, short *data, int *bpred, int *idelta) ;
223 int idelta ;
297 idelta = chan_idelta [chan] ;
298 chan_idelta [chan] = (AdaptationTable [bytecode] * idelta) >> 8 ; /* => / 256 => FIXED_POINT_ADAPTATION_BASE == 256 */
306 current = (bytecode * idelta) + predict ;
529 int chan, k, predict, bpred [2] = { 0 }, idelta [2] = { 0 },
532 choose_predictor (pms->channels, pms->samples, bpred, idelta) ;
538 pms->block [1] = idelta [0] & 0xFF ;
539 pms->block [2] = idelta [0] >> 8 ;
552 errordelta = (pms->samples [k] - predict) / idelta [0] ;
557 newsamp = predict + (idelta [0] * errordelta) ;
571 idelta [0] = (idelta [0] * AdaptationTable [errordelta]) >> 8 ;
572 if (idelta [0] < 16)
573 idelta [0] = 16 ;
582 pms->block [2] = idelta [0] & 0xFF ;
583 pms->block [3] = idelta [0] >> 8 ;
584 pms->block [4] = idelta [1] & 0xFF ;
585 pms->block [5] = idelta [1] >> 8 ;
605 errordelta = (pms->samples [k] - predict) / idelta [chan] ;
612 newsamp = predict + (idelta [chan] * errordelta) ;
627 idelta [chan] = (idelta [chan] * AdaptationTable [errordelta]) >> 8 ;
628 if (idelta [chan] < 16)
629 idelta [chan] = 16 ;
807 ** Each block requires a predictor and an idelta for each channel.
811 ** abs (idelta) is chosen as the best predictor for this block.
812 ** The value of idelta is chosen to to give a 4 bit code value of +/- 4 (approx. half the
813 ** max. code value). If the average abs (idelta) is zero, the sixth predictor is chosen.
814 ** If the value of idelta is less then 16 it is set to 16.
824 choose_predictor (unsigned int channels, short *data, int *block_pred, int *idelta)
852 idelta [chan] = best_idelta ;