/external/flac/src/libFLAC/ |
D | lpc.c | 220 …nst FLAC__real lp_coeff[], uint32_t order, uint32_t precision, FLAC__int32 qlp_coeff[], int *shift) in FLAC__lpc_quantize_coefficients() argument 280 qlp_coeff[i] = q; in FLAC__lpc_quantize_coefficients() 308 qlp_coeff[i] = q; in FLAC__lpc_quantize_coefficients() 321 …lac_restrict data, uint32_t data_len, const FLAC__int32 * flac_restrict qlp_coeff, uint32_t order,… in FLAC__lpc_compute_residual_from_qlp_coefficients() argument 332 fprintf(stderr,", q[%u]=%d",i,qlp_coeff[i]); in FLAC__lpc_compute_residual_from_qlp_coefficients() 342 sum += qlp_coeff[j] * (*(--history)); in FLAC__lpc_compute_residual_from_qlp_coefficients() 343 sumo += (FLAC__int64)qlp_coeff[j] * (FLAC__int64)(*history); in FLAC__lpc_compute_residual_from_qlp_coefficients() 345 …coefficients: OVERFLOW, i=%u, j=%u, c=%d, d=%d, sumo=%" PRId64 "\n",i,j,qlp_coeff[j],*history,sumo… in FLAC__lpc_compute_residual_from_qlp_coefficients() 378 sum += qlp_coeff[11] * data[i-12]; 379 sum += qlp_coeff[10] * data[i-11]; [all …]
|
D | lpc_intrin_avx2.c | 51 …trin_avx2(const FLAC__int32 *data, uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t orde… in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_avx2() argument 65 q0 = _mm256_set1_epi32(0xffff & qlp_coeff[0 ]); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_avx2() 66 q1 = _mm256_set1_epi32(0xffff & qlp_coeff[1 ]); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_avx2() 67 q2 = _mm256_set1_epi32(0xffff & qlp_coeff[2 ]); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_avx2() 68 q3 = _mm256_set1_epi32(0xffff & qlp_coeff[3 ]); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_avx2() 69 q4 = _mm256_set1_epi32(0xffff & qlp_coeff[4 ]); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_avx2() 70 q5 = _mm256_set1_epi32(0xffff & qlp_coeff[5 ]); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_avx2() 71 q6 = _mm256_set1_epi32(0xffff & qlp_coeff[6 ]); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_avx2() 72 q7 = _mm256_set1_epi32(0xffff & qlp_coeff[7 ]); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_avx2() 73 q8 = _mm256_set1_epi32(0xffff & qlp_coeff[8 ]); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_avx2() [all …]
|
D | lpc_intrin_neon.c | 80 …trin_neon(const FLAC__int32 *data, uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t orde… in FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_neon() argument 94 … int32x4_t qlp_coeff_0 = {qlp_coeff[0], qlp_coeff[1], qlp_coeff[2], qlp_coeff[3]}; in FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_neon() 95 … int32x4_t qlp_coeff_1 = {qlp_coeff[4], qlp_coeff[5], qlp_coeff[6], qlp_coeff[7]}; in FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_neon() 96 … int32x4_t qlp_coeff_2 = {qlp_coeff[8], qlp_coeff[9], qlp_coeff[10], qlp_coeff[11]}; in FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_neon() 153 … int32x4_t qlp_coeff_0 = {qlp_coeff[0], qlp_coeff[1], qlp_coeff[2], qlp_coeff[3]}; in FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_neon() 154 … int32x4_t qlp_coeff_1 = {qlp_coeff[4], qlp_coeff[5], qlp_coeff[6], qlp_coeff[7]}; in FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_neon() 155 int32x4_t qlp_coeff_2 = {qlp_coeff[8], qlp_coeff[9], qlp_coeff[10], 0}; in FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_neon() 211 … int32x4_t qlp_coeff_0 = {qlp_coeff[0], qlp_coeff[1], qlp_coeff[2], qlp_coeff[3]}; in FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_neon() 212 … int32x4_t qlp_coeff_1 = {qlp_coeff[4], qlp_coeff[5], qlp_coeff[6], qlp_coeff[7]}; in FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_neon() 213 int32x4_t qlp_coeff_2 = {qlp_coeff[8], qlp_coeff[9], 0, 0}; in FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_neon() [all …]
|
D | lpc_intrin_sse2.c | 80 …trin_sse2(const FLAC__int32 *data, uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t orde… in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_sse2() argument 94 … q0 = _mm_cvtsi32_si128(0xffff & qlp_coeff[0]); q0 = _mm_shuffle_epi32(q0, _MM_SHUFFLE(0,0,0,0)); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_sse2() 95 … q1 = _mm_cvtsi32_si128(0xffff & qlp_coeff[1]); q1 = _mm_shuffle_epi32(q1, _MM_SHUFFLE(0,0,0,0)); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_sse2() 96 … q2 = _mm_cvtsi32_si128(0xffff & qlp_coeff[2]); q2 = _mm_shuffle_epi32(q2, _MM_SHUFFLE(0,0,0,0)); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_sse2() 97 … q3 = _mm_cvtsi32_si128(0xffff & qlp_coeff[3]); q3 = _mm_shuffle_epi32(q3, _MM_SHUFFLE(0,0,0,0)); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_sse2() 98 … q4 = _mm_cvtsi32_si128(0xffff & qlp_coeff[4]); q4 = _mm_shuffle_epi32(q4, _MM_SHUFFLE(0,0,0,0)); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_sse2() 99 … q5 = _mm_cvtsi32_si128(0xffff & qlp_coeff[5]); q5 = _mm_shuffle_epi32(q5, _MM_SHUFFLE(0,0,0,0)); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_sse2() 100 … q6 = _mm_cvtsi32_si128(0xffff & qlp_coeff[6]); q6 = _mm_shuffle_epi32(q6, _MM_SHUFFLE(0,0,0,0)); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_sse2() 101 … q7 = _mm_cvtsi32_si128(0xffff & qlp_coeff[7]); q7 = _mm_shuffle_epi32(q7, _MM_SHUFFLE(0,0,0,0)); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_sse2() 102 … q8 = _mm_cvtsi32_si128(0xffff & qlp_coeff[8]); q8 = _mm_shuffle_epi32(q8, _MM_SHUFFLE(0,0,0,0)); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_sse2() [all …]
|
D | lpc_intrin_sse41.c | 56 …rin_sse41(const FLAC__int32 *data, uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t orde… in FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_sse41() argument 70 xmm0 = _mm_loadl_epi64((const __m128i*)(const void*)(qlp_coeff+0)); // 0 0 q[1] q[0] in FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_sse41() 71 xmm1 = _mm_loadl_epi64((const __m128i*)(const void*)(qlp_coeff+2)); // 0 0 q[3] q[2] in FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_sse41() 72 xmm2 = _mm_loadl_epi64((const __m128i*)(const void*)(qlp_coeff+4)); // 0 0 q[5] q[4] in FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_sse41() 73 xmm3 = _mm_loadl_epi64((const __m128i*)(const void*)(qlp_coeff+6)); // 0 0 q[7] q[6] in FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_sse41() 74 xmm4 = _mm_loadl_epi64((const __m128i*)(const void*)(qlp_coeff+8)); // 0 0 q[9] q[8] in FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_sse41() 75 xmm5 = _mm_loadl_epi64((const __m128i*)(const void*)(qlp_coeff+10)); // 0 0 q[11] q[10] in FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_sse41() 133 xmm0 = _mm_loadl_epi64((const __m128i*)(const void*)(qlp_coeff+0)); in FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_sse41() 134 xmm1 = _mm_loadl_epi64((const __m128i*)(const void*)(qlp_coeff+2)); in FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_sse41() 135 xmm2 = _mm_loadl_epi64((const __m128i*)(const void*)(qlp_coeff+4)); in FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_sse41() [all …]
|
D | stream_encoder.c | 386 …ficients)(const FLAC__int32 *data, uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t orde… 387 …ts_64bit)(const FLAC__int32 *data, uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t orde… 388 …ts_16bit)(const FLAC__int32 *data, uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t orde… 4034 …FLAC__int32 qlp_coeff[FLAC__MAX_LPC_ORDER]; /* WATCHOUT: the size is important; some x86 intrinsic… in evaluate_lpc_subframe_() local 4046 …ret = FLAC__lpc_quantize_coefficients(lp_coeff, order, qlp_coeff_precision, qlp_coeff, &quantizati… in evaluate_lpc_subframe_() 4050 if(FLAC__lpc_max_residual_bps(subframe_bps, qlp_coeff, order, quantization) > 32) { in evaluate_lpc_subframe_() 4052 …icients_limit_residual(((FLAC__int32 *)signal)+order, residual_samples, qlp_coeff, order, quantiza… in evaluate_lpc_subframe_() 4056 …s_limit_residual_33bit(((FLAC__int64 *)signal)+order, residual_samples, qlp_coeff, order, quantiza… in evaluate_lpc_subframe_() 4060 if(FLAC__lpc_max_prediction_before_shift_bps(subframe_bps, qlp_coeff, order) <= 32) in evaluate_lpc_subframe_() 4062 …qlp_coefficients_16bit(((FLAC__int32 *)signal)+order, residual_samples, qlp_coeff, order, quantiza… in evaluate_lpc_subframe_() [all …]
|
D | stream_decoder.c | 2817 subframe->qlp_coeff[u] = i32; in read_subframe_lpc_() 2861 …if(FLAC__lpc_max_residual_bps(bps, subframe->qlp_coeff, order, subframe->quantization_level) <= 32… in read_subframe_lpc_() 2862 FLAC__lpc_max_prediction_before_shift_bps(bps, subframe->qlp_coeff, order) <= 32) in read_subframe_lpc_() 2863 …al[channel], decoder->private_->frame.header.blocksize-order, subframe->qlp_coeff, order, subframe… in read_subframe_lpc_() 2865 …al[channel], decoder->private_->frame.header.blocksize-order, subframe->qlp_coeff, order, subframe… in read_subframe_lpc_() 2870 …al[channel], decoder->private_->frame.header.blocksize-order, subframe->qlp_coeff, order, subframe… in read_subframe_lpc_()
|
D | stream_encoder_framing.c | 455 if(!FLAC__bitwriter_write_raw_int32(bw, subframe->qlp_coeff[i], subframe->qlp_coeff_precision)) in FLAC__subframe_add_lpc()
|
/external/flac/src/libFLAC/include/private/ |
D | lpc.h | 140 …st FLAC__real lp_coeff[], uint32_t order, uint32_t precision, FLAC__int32 qlp_coeff[], int *shift); 155 …fficients(const FLAC__int32 *data, uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t orde… 156 …ents_wide(const FLAC__int32 *data, uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t orde… 157 …_residual(const FLAC__int32 *data, uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t orde… 158 …ual_33bit(const FLAC__int64 *data, uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t orde… 161 …trin_neon(const FLAC__int32 *data, uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t orde… 162 …trin_neon(const FLAC__int32 *data, uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t orde… 167 …trin_sse2(const FLAC__int32 *data, uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t orde… 168 …trin_sse2(const FLAC__int32 *data, uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t orde… 171 …rin_sse41(const FLAC__int32 *data, uint32_t data_len, const FLAC__int32 qlp_coeff[], uint32_t orde… [all …]
|
/external/flac/include/FLAC/ |
D | format.h | 335 FLAC__int32 qlp_coeff[FLAC__MAX_LPC_ORDER]; member
|
/external/flac/src/flac/ |
D | analyze.c | 105 fprintf(fout, "\t\tqlp_coeff[%u]=%d\n", i, subframe->data.lpc.qlp_coeff[i]); in flac__analyze_frame()
|