Lines Matching refs:lp_quantization
265 void FLAC__lpc_compute_residual_from_qlp_coefficients(const FLAC__int32 *data, unsigned data_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 residual[])
274 fprintf(stderr,"FLAC__lpc_compute_residual_from_qlp_coefficients: data_len=%d, order=%u, lpq=%d",data_len,order,lp_quantization);
296 *(residual++) = *(data++) - (sum >> lp_quantization);
304 residual[i] = data[i] - (sum >> lp_quantization);
339 residual[i] = data[i] - (sum >> lp_quantization);
356 residual[i] = data[i] - (sum >> lp_quantization);
374 residual[i] = data[i] - (sum >> lp_quantization);
389 residual[i] = data[i] - (sum >> lp_quantization);
407 residual[i] = data[i] - (sum >> lp_quantization);
420 residual[i] = data[i] - (sum >> lp_quantization);
434 residual[i] = data[i] - (sum >> lp_quantization);
445 residual[i] = data[i] - (sum >> lp_quantization);
459 residual[i] = data[i] - (sum >> lp_quantization);
468 residual[i] = data[i] - (sum >> lp_quantization);
478 residual[i] = data[i] - (sum >> lp_quantization);
483 residual[i] = data[i] - ((qlp_coeff[0] * data[i-1]) >> lp_quantization);
525 residual[i] = data[i] - (sum >> lp_quantization);
531 void FLAC__lpc_compute_residual_from_qlp_coefficients_wide(const FLAC__int32 *data, unsigned data_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 residual[])
539 fprintf(stderr,"FLAC__lpc_compute_residual_from_qlp_coefficients_wide: data_len=%d, order=%u, lpq=%d",data_len,order,lp_quantization);
551 if(FLAC__bitmath_silog2_wide(sum >> lp_quantization) > 32) {
553 fprintf(stderr,"FLAC__lpc_compute_residual_from_qlp_coefficients_wide: OVERFLOW, i=%u, sum=%I64d\n", i, sum >> lp_quantization);
555 fprintf(stderr,"FLAC__lpc_compute_residual_from_qlp_coefficients_wide: OVERFLOW, i=%u, sum=%lld\n", i, (long long)(sum >> lp_quantization));
559 if(FLAC__bitmath_silog2_wide((FLAC__int64)(*data) - (sum >> lp_quantization)) > 32) {
561 fprintf(stderr,"FLAC__lpc_compute_residual_from_qlp_coefficients_wide: OVERFLOW, i=%u, data=%d, sum=%I64d, residual=%I64d\n", i, *data, sum >> lp_quantization, (FLAC__int64)(*data) - (sum >> lp_quantization));
563 fprintf(stderr,"FLAC__lpc_compute_residual_from_qlp_coefficients_wide: OVERFLOW, i=%u, data=%d, sum=%lld, residual=%lld\n", i, *data, (long long)(sum >> lp_quantization), (long long)((FLAC__int64)(*data) - (sum >> lp_quantization)));
567 *(residual++) = *(data++) - (FLAC__int32)(sum >> lp_quantization);
601 residual[i] = data[i] - (FLAC__int32)(sum >> lp_quantization);
618 residual[i] = data[i] - (FLAC__int32)(sum >> lp_quantization);
636 residual[i] = data[i] - (FLAC__int32)(sum >> lp_quantization);
651 residual[i] = data[i] - (FLAC__int32)(sum >> lp_quantization);
669 residual[i] = data[i] - (FLAC__int32)(sum >> lp_quantization);
682 residual[i] = data[i] - (FLAC__int32)(sum >> lp_quantization);
696 residual[i] = data[i] - (FLAC__int32)(sum >> lp_quantization);
707 residual[i] = data[i] - (FLAC__int32)(sum >> lp_quantization);
721 residual[i] = data[i] - (FLAC__int32)(sum >> lp_quantization);
730 residual[i] = data[i] - (FLAC__int32)(sum >> lp_quantization);
740 residual[i] = data[i] - (FLAC__int32)(sum >> lp_quantization);
745 residual[i] = data[i] - (FLAC__int32)((qlp_coeff[0] * (FLAC__int64)data[i-1]) >> lp_quantization);
787 residual[i] = data[i] - (FLAC__int32)(sum >> lp_quantization);
795 void FLAC__lpc_restore_signal(const FLAC__int32 residual[], unsigned data_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 data[])
804 fprintf(stderr,"FLAC__lpc_restore_signal: data_len=%d, order=%u, lpq=%d",data_len,order,lp_quantization);
826 *(data++) = *(r++) + (sum >> lp_quantization);
834 data[i] = residual[i] + (sum >> lp_quantization);
869 data[i] = residual[i] + (sum >> lp_quantization);
886 data[i] = residual[i] + (sum >> lp_quantization);
904 data[i] = residual[i] + (sum >> lp_quantization);
919 data[i] = residual[i] + (sum >> lp_quantization);
937 data[i] = residual[i] + (sum >> lp_quantization);
950 data[i] = residual[i] + (sum >> lp_quantization);
964 data[i] = residual[i] + (sum >> lp_quantization);
975 data[i] = residual[i] + (sum >> lp_quantization);
989 data[i] = residual[i] + (sum >> lp_quantization);
998 data[i] = residual[i] + (sum >> lp_quantization);
1008 data[i] = residual[i] + (sum >> lp_quantization);
1013 data[i] = residual[i] + ((qlp_coeff[0] * data[i-1]) >> lp_quantization);
1055 data[i] = residual[i] + (sum >> lp_quantization);
1061 void FLAC__lpc_restore_signal_wide(const FLAC__int32 residual[], unsigned data_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 data[])
1069 fprintf(stderr,"FLAC__lpc_restore_signal_wide: data_len=%d, order=%u, lpq=%d",data_len,order,lp_quantization);
1081 if(FLAC__bitmath_silog2_wide(sum >> lp_quantization) > 32) {
1083 fprintf(stderr,"FLAC__lpc_restore_signal_wide: OVERFLOW, i=%u, sum=%I64d\n", i, sum >> lp_quantization);
1085 fprintf(stderr,"FLAC__lpc_restore_signal_wide: OVERFLOW, i=%u, sum=%lld\n", i, (long long)(sum >> lp_quantization));
1089 if(FLAC__bitmath_silog2_wide((FLAC__int64)(*r) + (sum >> lp_quantization)) > 32) {
1091 fprintf(stderr,"FLAC__lpc_restore_signal_wide: OVERFLOW, i=%u, residual=%d, sum=%I64d, data=%I64d\n", i, *r, sum >> lp_quantization, (FLAC__int64)(*r) + (sum >> lp_quantization));
1093 fprintf(stderr,"FLAC__lpc_restore_signal_wide: OVERFLOW, i=%u, residual=%d, sum=%lld, data=%lld\n", i, *r, (long long)(sum >> lp_quantization), (long long)((FLAC__int64)(*r) + (sum >> lp_quantization)));
1097 *(data++) = *(r++) + (FLAC__int32)(sum >> lp_quantization);
1131 data[i] = residual[i] + (FLAC__int32)(sum >> lp_quantization);
1148 data[i] = residual[i] + (FLAC__int32)(sum >> lp_quantization);
1166 data[i] = residual[i] + (FLAC__int32)(sum >> lp_quantization);
1181 data[i] = residual[i] + (FLAC__int32)(sum >> lp_quantization);
1199 data[i] = residual[i] + (FLAC__int32)(sum >> lp_quantization);
1212 data[i] = residual[i] + (FLAC__int32)(sum >> lp_quantization);
1226 data[i] = residual[i] + (FLAC__int32)(sum >> lp_quantization);
1237 data[i] = residual[i] + (FLAC__int32)(sum >> lp_quantization);
1251 data[i] = residual[i] + (FLAC__int32)(sum >> lp_quantization);
1260 data[i] = residual[i] + (FLAC__int32)(sum >> lp_quantization);
1270 data[i] = residual[i] + (FLAC__int32)(sum >> lp_quantization);
1275 data[i] = residual[i] + (FLAC__int32)((qlp_coeff[0] * (FLAC__int64)data[i-1]) >> lp_quantization);
1317 data[i] = residual[i] + (FLAC__int32)(sum >> lp_quantization);