Home
last modified time | relevance | path

Searched refs:scaling (Results 1 – 25 of 214) sorted by relevance

123456789

/external/webrtc/webrtc/modules/audio_coding/neteq/
Dtime_stretch.cc81 int scaling = 31 - WebRtcSpl_NormW32(max_input_value_ * max_input_value_) - in Process() local
83 scaling = std::max(0, scaling); in Process()
92 WebRtcSpl_DotProductWithScale(vec1, vec1, peak_index, scaling); in Process()
94 WebRtcSpl_DotProductWithScale(vec2, vec2, peak_index, scaling); in Process()
98 WebRtcSpl_DotProductWithScale(vec1, vec2, peak_index, scaling); in Process()
102 scaling); in Process()
162 int scaling = kLogCorrelationLen - WebRtcSpl_NormW32( in AutoCorrelation() local
164 scaling = std::max(0, scaling); in AutoCorrelation()
170 kCorrelationLen, kMaxLag - kMinLag, scaling, -1); in AutoCorrelation()
174 scaling = std::max(0, 17 - WebRtcSpl_NormW32(max_corr)); in AutoCorrelation()
[all …]
Dnormal.cc81 int scaling = 6 + fs_shift in Process() local
83 scaling = std::max(scaling, 0); // |scaling| should always be >= 0. in Process()
85 energy_length, scaling); in Process()
87 static_cast<int32_t>(energy_length >> scaling); in Process()
98 scaling = WebRtcSpl_NormW32(energy) - 16; in Process()
101 background_noise_.Energy(channel_ix) << (scaling+14); in Process()
102 int16_t energy_scaled = static_cast<int16_t>(energy << scaling); in Process()
/external/webrtc/webrtc/common_audio/signal_processing/
Dauto_correlation.c23 int scaling = 0; in WebRtcSpl_AutoCorrelation() local
33 scaling = 0; in WebRtcSpl_AutoCorrelation()
41 scaling = 0; in WebRtcSpl_AutoCorrelation()
43 scaling = nbits - t; in WebRtcSpl_AutoCorrelation()
52 sum += (in_vector[j + 0] * in_vector[i + j + 0]) >> scaling; in WebRtcSpl_AutoCorrelation()
53 sum += (in_vector[j + 1] * in_vector[i + j + 1]) >> scaling; in WebRtcSpl_AutoCorrelation()
54 sum += (in_vector[j + 2] * in_vector[i + j + 2]) >> scaling; in WebRtcSpl_AutoCorrelation()
55 sum += (in_vector[j + 3] * in_vector[i + j + 3]) >> scaling; in WebRtcSpl_AutoCorrelation()
58 sum += (in_vector[j] * in_vector[i + j]) >> scaling; in WebRtcSpl_AutoCorrelation()
63 *scale = scaling; in WebRtcSpl_AutoCorrelation()
Ddot_product_with_scale.c16 int scaling) { in WebRtcSpl_DotProductWithScale() argument
22 sum += (vector1[i + 0] * vector2[i + 0]) >> scaling; in WebRtcSpl_DotProductWithScale()
23 sum += (vector1[i + 1] * vector2[i + 1]) >> scaling; in WebRtcSpl_DotProductWithScale()
24 sum += (vector1[i + 2] * vector2[i + 2]) >> scaling; in WebRtcSpl_DotProductWithScale()
25 sum += (vector1[i + 3] * vector2[i + 3]) >> scaling; in WebRtcSpl_DotProductWithScale()
28 sum += (vector1[i] * vector2[i]) >> scaling; in WebRtcSpl_DotProductWithScale()
Denergy.c26 int scaling = in WebRtcSpl_Energy() local
33 en += (*vectorptr * *vectorptr) >> scaling; in WebRtcSpl_Energy()
36 *scale_factor = scaling; in WebRtcSpl_Energy()
Dcross_correlation_neon.c19 int scaling) { in DotProductWithScaleNeon() argument
56 *cross_correlation = (int32_t)((sum2 + sum_res) >> scaling); in DotProductWithScaleNeon()
58 int64x1_t shift = vdup_n_s64(-scaling); in DotProductWithScaleNeon()
/external/aac/libAACenc/src/
Dpre_echo_control.cpp125 int scaling; in FDKaacEnc_PreEchoControl() local
139 scaling = 2 * (mdctScale - *mdctScalenm1); in FDKaacEnc_PreEchoControl()
143 FDK_ASSERT(scaling >= 0); in FDKaacEnc_PreEchoControl()
144 tmpThreshold1 = maxAllowedIncreaseFactor * (pbThresholdNm1[i] >> scaling); in FDKaacEnc_PreEchoControl()
157 scaling = 2 * (*mdctScalenm1 - mdctScale); in FDKaacEnc_PreEchoControl()
167 FDK_ASSERT(scaling >= 0); in FDKaacEnc_PreEchoControl()
168 if ((pbThreshold[i] >> (scaling + 1)) > tmpThreshold1) { in FDKaacEnc_PreEchoControl()
169 pbThreshold[i] = tmpThreshold1 << (scaling + 1); in FDKaacEnc_PreEchoControl()
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/fix/source/
Dpitch_estimator_c.c23 int16_t scaling,n,k; in WebRtcIsacfix_PCorr2Q32() local
30 scaling = WebRtcSpl_GetScalingSquare((int16_t*)in, in WebRtcIsacfix_PCorr2Q32()
37 ysum32 += in[n] * in[n] >> scaling; // Q0 in WebRtcIsacfix_PCorr2Q32()
38 csum32 += x[n] * in[n] >> scaling; // Q0 in WebRtcIsacfix_PCorr2Q32()
56 ysum32 -= in[k - 1] * in[k - 1] >> scaling; in WebRtcIsacfix_PCorr2Q32()
58 scaling; in WebRtcIsacfix_PCorr2Q32()
67 int32x4_t int_32x4_scale = vdupq_n_s32(-scaling); in WebRtcIsacfix_PCorr2Q32()
88 if(scaling == 0) { in WebRtcIsacfix_PCorr2Q32()
94 csum32 += (x[n] * inptr[n]) >> scaling; in WebRtcIsacfix_PCorr2Q32()
Dfilters_mips.c21 int16_t scaling = 0; in WebRtcIsacfix_AutocorrMIPS() local
126 [count] "+r" (count), [scaling] "=r" (scaling) in WebRtcIsacfix_AutocorrMIPS()
135 if (scaling == 0) { in WebRtcIsacfix_AutocorrMIPS()
204 } else if (scaling == 32) { in WebRtcIsacfix_AutocorrMIPS()
277 int32_t tmp_shift = 32 - scaling; in WebRtcIsacfix_AutocorrMIPS()
353 : [scaling] "r" (scaling) in WebRtcIsacfix_AutocorrMIPS()
362 *scale = scaling; in WebRtcIsacfix_AutocorrMIPS()
Dfilters.c24 int16_t scaling = 0; in WebRtcIsacfix_AutocorrC() local
41 scaling = 0; in WebRtcIsacfix_AutocorrC()
43 scaling = 32 - WebRtcSpl_NormU32(temp); in WebRtcIsacfix_AutocorrC()
45 r[0] = (int32_t)(prod >> scaling); in WebRtcIsacfix_AutocorrC()
53 sum = (int32_t)(prod >> scaling); in WebRtcIsacfix_AutocorrC()
57 *scale = scaling; in WebRtcIsacfix_AutocorrC()
Dpitch_estimator_mips.c18 int16_t scaling,n,k; in WebRtcIsacfix_PCorr2Q32() local
25 scaling = WebRtcSpl_GetScalingSquare((int16_t*)in, in WebRtcIsacfix_PCorr2Q32()
83 : [scaling] "r" (scaling) in WebRtcIsacfix_PCorr2Q32()
176 [scaling] "r" (scaling) in WebRtcIsacfix_PCorr2Q32()
Dfilters_neon.c24 int16_t scaling = 0; in WebRtcIsacfix_AutocorrNeon() local
56 scaling = temp ? 32 - WebRtcSpl_NormU32(temp) : 0; in WebRtcIsacfix_AutocorrNeon()
57 r[0] = (int32_t)(prod >> scaling); in WebRtcIsacfix_AutocorrNeon()
107 r[i] = (int32_t)((prod + prod_tail) >> scaling); in WebRtcIsacfix_AutocorrNeon()
110 *scale = scaling; in WebRtcIsacfix_AutocorrNeon()
/external/aac/libSBRdec/src/
Dsbr_dec.cpp344 &hSbrDec->qmfDomainInCh->scaling, pTimeInQmf, 0, 1, in sbr_dec()
384 DFRACT_BITS - 1 - hSbrDec->qmfDomainInCh->scaling.lb_scale); in sbr_dec()
391 hSbrDec->qmfDomainInCh->scaling.lb_scale += reserve; in sbr_dec()
395 hSbrDec->scale_hbe = hSbrDec->qmfDomainInCh->scaling.lb_scale; in sbr_dec()
397 hSbrDec->qmfDomainInCh->scaling.lb_scale = hSbrDec->scale_lb; in sbr_dec()
402 saveLbScale = hSbrDec->qmfDomainInCh->scaling.lb_scale; in sbr_dec()
421 SCALE2EXP(hSbrDec->qmfDomainInCh->scaling.ov_lb_scale), in sbr_dec()
422 SCALE2EXP(hSbrDec->qmfDomainInCh->scaling.lb_scale)); in sbr_dec()
482 &hSbrDec->qmfDomainInCh->scaling.hb_scale, hHeaderData->timeStep, in sbr_dec()
500 &hSbrDec->LppTrans, hSbrDec->hHBE, &hSbrDec->qmfDomainInCh->scaling, in sbr_dec()
[all …]
/external/eigen/test/
Deigensolver_selfadjoint.cpp27 RealScalar scaling = m.cwiseAbs().maxCoeff(); in selfadjointeigensolver_essential_check() local
29 if(scaling<(std::numeric_limits<RealScalar>::min)()) in selfadjointeigensolver_essential_check()
35 VERIFY_IS_APPROX((m.template selfadjointView<Lower>() * eiSymm.eigenvectors())/scaling, in selfadjointeigensolver_essential_check()
36 (eiSymm.eigenvectors() * eiSymm.eigenvalues().asDiagonal())/scaling); in selfadjointeigensolver_essential_check()
53 if(scaling<(std::numeric_limits<RealScalar>::min)()) in selfadjointeigensolver_essential_check()
59 VERIFY_IS_APPROX(eiSymm.eigenvalues()/scaling, eiDirect.eigenvalues()/scaling); in selfadjointeigensolver_essential_check()
60 VERIFY_IS_APPROX((m.template selfadjointView<Lower>() * eiDirect.eigenvectors())/scaling, in selfadjointeigensolver_essential_check()
61 (eiDirect.eigenvectors() * eiDirect.eigenvalues().asDiagonal())/scaling); in selfadjointeigensolver_essential_check()
62 …_APPROX(m.template selfadjointView<Lower>().eigenvalues()/scaling, eiDirect.eigenvalues()/scaling); in selfadjointeigensolver_essential_check()
Dgeo_hyperplane.cpp58 DiagonalMatrix<Scalar,HyperplaneType::AmbientDimAtCompileTime> scaling(VectorType::Random()); in hyperplane() local
61 …while(scaling.diagonal().cwiseAbs().minCoeff()<RealScalar(1e-4)) scaling.diagonal() = VectorType::… in hyperplane()
68 …VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot*scaling).absDistance((rot*scaling) * p1), Scalar(1)… in hyperplane()
71 VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot*scaling*translation) in hyperplane()
72 .absDistance((rot*scaling*translation) * p1), Scalar(1) ); in hyperplane()
/external/speex/libspeexdsp/
Dfilterbank.c75 bank->scaling = (float*)speex_alloc(banks*sizeof(float)); in filterbank_new()
108 bank->scaling[i] = 0; in filterbank_new()
112 bank->scaling[id] += bank->filter_left[i]; in filterbank_new()
114 bank->scaling[id] += bank->filter_right[i]; in filterbank_new()
117 bank->scaling[i] = Q15_ONE/(bank->scaling[i]); in filterbank_new()
129 speex_free(bank->scaling); in filterbank_destroy()
187 mel[i] *= bank->scaling[i]; in filterbank_compute_bank()
/external/freetype/src/cff/
Dcffparse.c181 FT_Long* scaling ) in cff_parse_real() argument
192 if ( scaling ) in cff_parse_real()
193 *scaling = 0; in cff_parse_real()
327 if ( scaling ) in cff_parse_real()
338 *scaling = exponent - fraction_length + 1; in cff_parse_real()
368 *scaling = exponent; in cff_parse_real()
376 *scaling = exponent - 4; in cff_parse_real()
381 *scaling = exponent - 5; in cff_parse_real()
493 FT_Long scaling ) in do_fixed() argument
496 return cff_parse_real( *d, parser->limit, scaling, NULL ); in do_fixed()
[all …]
/external/webrtc/webrtc/voice_engine/test/auto_test/standard/
Dvolume_test.cc205 float scaling = -1.0f; in TEST_F() local
208 channel_, scaling)); in TEST_F()
209 EXPECT_FLOAT_EQ(1.0f, scaling); in TEST_F()
216 float scaling = 1.0f; in TEST_F() local
218 channel_, scaling)); in TEST_F()
220 EXPECT_FLOAT_EQ(0.1f, scaling); in TEST_F()
/external/webrtc/webrtc/voice_engine/
Dvoe_volume_control_impl.cc307 float scaling) { in SetChannelOutputVolumeScaling() argument
310 channel, scaling); in SetChannelOutputVolumeScaling()
315 if (scaling < kMinOutputVolumeScaling || scaling > kMaxOutputVolumeScaling) { in SetChannelOutputVolumeScaling()
328 return channelPtr->SetChannelOutputVolumeScaling(scaling); in SetChannelOutputVolumeScaling()
332 float& scaling) { in GetChannelOutputVolumeScaling() argument
345 return channelPtr->GetChannelOutputVolumeScaling(scaling); in GetChannelOutputVolumeScaling()
/external/deqp/external/vulkancts/modules/vulkan/wsi/
DvktWsiSharedPresentableImageTests.cpp550 Scaling scaling; member
623 Scaling scaling, in generateSwapchainConfigs() argument
637 const deUint32 imageWidth = scaling == SCALING_NONE in generateSwapchainConfigs()
641 : (scaling == SCALING_UP in generateSwapchainConfigs()
644 const deUint32 imageHeight = scaling == SCALING_NONE in generateSwapchainConfigs()
648 : (scaling == SCALING_UP in generateSwapchainConfigs()
764 …, m_swapchainConfigs (generateSwapchainConfigs(*m_surface, m_queueFamilyIndex, testConfig.scaling in SharedPresentableImageTestInstance()
998 … = generateSwapchainConfigs(*m_surface, m_queueFamilyIndex, m_testConfig.scaling, m_surfacePropert… in iterate()
1101 Scaling scaling; in createSharedPresentableImageTests() member
1103 } scaling [] = in createSharedPresentableImageTests() local
[all …]
DvktWsiIncrementalPresentTests.cpp637 Scaling scaling; member
715 Scaling scaling, in generateSwapchainConfigs() argument
735 const deUint32 imageWidth = scaling == SCALING_NONE in generateSwapchainConfigs()
737 : (scaling == SCALING_UP in generateSwapchainConfigs()
740 const deUint32 imageHeight = scaling == SCALING_NONE in generateSwapchainConfigs()
742 : (scaling == SCALING_UP in generateSwapchainConfigs()
858 …s (generateSwapchainConfigs(*m_surface, &m_queueFamilyIndex, testConfig.scaling, m_surfacePropert… in IncrementalPresentTestInstance()
1081 …= generateSwapchainConfigs(*m_surface, &m_queueFamilyIndex, m_testConfig.scaling, m_surfacePropert… in iterate()
1179 Scaling scaling; in createIncrementalPresentTests() member
1181 } scaling [] = in createIncrementalPresentTests() local
[all …]
/external/google-fruit/examples/scaling_doubles/
DCMakeLists.txt8 add_executable(scaling ${SCALING_SOURCES}) target
9 target_link_libraries(scaling fruit)
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/
Dfft.c163 double scaling, in WebRtcIsac_Fftns() argument
239 if (scaling && scaling != 1.0) in WebRtcIsac_Fftns()
242 if (scaling < 0.0) in WebRtcIsac_Fftns()
244 scaling = (double)nTotal; in WebRtcIsac_Fftns()
245 if (scaling < -1.0) in WebRtcIsac_Fftns()
246 scaling = sqrt (scaling); in WebRtcIsac_Fftns()
248 scaling = 1.0 / scaling; /* multiply is often faster */ in WebRtcIsac_Fftns()
251 Re [i] *= scaling; in WebRtcIsac_Fftns()
252 Im [i] *= scaling; in WebRtcIsac_Fftns()
/external/libjpeg-turbo/
DREADME.md149 - **libjpeg: IDCT scaling extensions in decompressor**<br>
150 libjpeg-turbo supports IDCT scaling with scaling factors of 1/8, 1/4, 3/8,
182 usefulness of DCT scaling as a means of data reduction and SmartScale as a
188 - **libjpeg: DCT scaling in compressor**<br>
190 There is no technical reason why DCT scaling could not be supported when
192 below), only scaling factors of 1/2, 8/15, 4/7, 8/13, 2/3, 8/11, 4/5, and
206 additional DCT scaling factors.
210 This requires the DCT scaling feature, which is not supported.
213 This requires both the DCT scaling and SmartScale features, which are not
308 - When decompressing using scaling factors of 1/2 and 1/4, because libjpeg v8
[all …]
/external/webrtc/webrtc/voice_engine/include/
Dvoe_volume_control.h95 virtual int SetChannelOutputVolumeScaling(int channel, float scaling) = 0;
98 virtual int GetChannelOutputVolumeScaling(int channel, float& scaling) = 0;

123456789