Lines Matching defs:shift
697 int shift = c->bands[band].nscalablelsbs[ch];
700 shift = s->fixed_lsb_width;
701 else if (shift && adj)
702 shift += adj - 1;
704 shift += adj;
706 return shift;
715 int shift = chs_get_lsb_width(s, c, band, ch);
716 if (shift) {
722 msb[n] = msb[n] * (SUINT)(1 << shift) + (lsb[n] << adj);
725 msb[n] = msb[n] * (SUINT)(1 << shift);
1285 int n, spkr, shift, round;
1299 shift = 24 - c->pcm_bit_res + chs_get_lsb_width(s, c, 0, ch);
1300 if (shift > 24) {
1301 av_log(s->avctx, AV_LOG_WARNING, "Invalid core shift (%d bits)\n", shift);
1305 round = shift > 0 ? 1 << (shift - 1) : 0;
1313 dst[n] += (SUINT)clip23((mul16(src[n], scale_inv) + round) >> shift);
1317 dst[n] += (unsigned)((src[n] + round) >> shift);
1331 int i, j, k, ret, shift, nsamples, request_mask;
1420 shift = 16 - p->pcm_bit_res;
1425 shift = 24 - p->pcm_bit_res;
1451 plane[k] = av_clip_int16(samples[k] * (SUINT)(1 << shift));
1455 plane[k] = clip23(samples[k] * (SUINT)(1 << shift)) * (1 << 8);