Lines Matching defs:scale
231 // Downmix scale factor
234 av_log(s->avctx, AV_LOG_ERROR, "Invalid XXCH downmix scale index (%d)\n", index);
307 av_log(s->avctx, AV_LOG_ERROR, "Invalid scale factor code book\n");
369 // Look up scale factor from the root square table
371 av_log(s->avctx, AV_LOG_ERROR, "Invalid scale factor index\n");
391 // Look up joint scale factor
393 av_log(s->avctx, AV_LOG_ERROR, "Invalid joint scale factor index\n");
497 av_log(s->avctx, AV_LOG_ERROR, "Invalid joint scale factor code book\n");
626 int32_t audio[16], scale;
666 // Extract scale factor index from the bit stream
669 av_log(s->avctx, AV_LOG_ERROR, "Invalid LFE scale factor index\n");
674 scale = ff_dca_scale_factor_quant7[index];
677 scale = mul23(4697620 /* 0.035 * (1 << 27) */, scale);
681 s->lfe_samples[ofs] = clip23(audio[n] * scale >> 4);
712 // Determine proper scale factor
714 scale = s->scale_factors[ch][band][0];
716 scale = s->scale_factors[ch][band][1];
718 // Adjust scale factor when SEL indicates Huffman code
721 scale = clip23(adj * scale >> 22);
725 audio, step_size, scale, 0, DCA_SUBBAND_SAMPLES);
970 // Number of bits for scale indices
974 av_log(s->avctx, AV_LOG_ERROR, "Invalid number of bits for XBR scale factor index\n");
979 // XBR scale factors
993 // Parse scale factor indices and look up scale factors from the root
999 av_log(s->avctx, AV_LOG_ERROR, "Invalid XBR scale factor index\n");
1006 av_log(s->avctx, AV_LOG_ERROR, "Invalid XBR scale factor index\n");
1023 int32_t audio[DCA_SUBBAND_SAMPLES], step_size, scale;
1047 // Determine proper scale factor
1049 scale = xbr_scale_factors[ch][band][0];
1051 scale = xbr_scale_factors[ch][band][1];
1054 audio, step_size, scale, 1, DCA_SUBBAND_SAMPLES);
1178 // Get the sample pointer and scale factor
1180 int32_t scale = s->scale_factors[ch][band >> 1][band & 1];
1184 if (scale <= 1)
1188 samples[n] = mul31(rand_x96(s), scale);
1198 *samples++ = clip23(vq_samples[n] * scale + (1 << 3) >> 4);
1213 int32_t audio[DCA_SUBBAND_SAMPLES], step_size, scale;
1230 // Get the scale factor
1231 scale = s->scale_factors[ch][band >> 1][band & 1];
1234 audio, step_size, scale, 0, DCA_SUBBAND_SAMPLES);
1366 av_log(s->avctx, AV_LOG_ERROR, "Invalid X96 joint scale factor code book\n");
1449 av_log(s->avctx, AV_LOG_ERROR, "Invalid X96 scale factor code book\n");