Lines Matching defs:icoef

626 static void mclms_update(WmallDecodeCtx *s, int icoef, int *pred)
634 pred_error = s->channel_residues[ich][icoef] - (unsigned)pred[ich];
640 s->mclms_coeffs_cur[ich * num_channels + j] += WMASIGN(s->channel_residues[j][icoef]);
646 s->mclms_coeffs_cur[ich * num_channels + j] -= WMASIGN(s->channel_residues[j][icoef]);
652 s->mclms_prevvalues[s->mclms_recent] = av_clip(s->channel_residues[ich][icoef],
654 s->mclms_updates[s->mclms_recent] = WMASIGN(s->channel_residues[ich][icoef]);
668 static void mclms_predict(WmallDecodeCtx *s, int icoef, int *pred)
682 pred[ich] += (uint32_t)s->channel_residues[i][icoef] *
686 s->channel_residues[ich][icoef] += (unsigned)pred[ich];
692 int icoef, pred[WMALL_MAX_CHANNELS] = { 0 };
693 for (icoef = 0; icoef < tile_size; icoef++) {
694 mclms_predict(s, icoef, pred);
695 mclms_update(s, icoef, pred);
701 int ilms, recent, icoef;
707 for (icoef = 0; icoef < s->cdlms[ich][ilms].order; icoef++)
708 s->cdlms[ich][ilms].lms_updates[icoef + recent] *= 2;
710 for (icoef = 0; icoef < s->cdlms[ich][ilms].order; icoef++)
711 s->cdlms[ich][ilms].lms_updates[icoef] *= 2;
719 int ilms, recent, icoef;
725 for (icoef = 0; icoef < s->cdlms[ich][ilms].order; icoef++)
726 s->cdlms[ich][ilms].lms_updates[icoef + recent] /= 2;
728 for (icoef = 0; icoef < s->cdlms[ich][ilms].order; icoef++)
729 s->cdlms[ich][ilms].lms_updates[icoef] /= 2;
766 int icoef, ilms, num_lms, residue, input; \
771 for (icoef = coef_begin; icoef < coef_end; icoef++) { \
774 residue = s->channel_residues[ch][icoef]; \
783 s->channel_residues[ch][icoef] = input; \
797 int icoef;
798 for (icoef = 0; icoef < tile_size; icoef++) {
799 s->channel_residues[0][icoef] -= (unsigned)(s->channel_residues[1][icoef] >> 1);
800 s->channel_residues[1][icoef] += (unsigned) s->channel_residues[0][icoef];