/frameworks/base/media/libstagefright/codecs/aacenc/src/ |
grp_data.c | 125 Word32 energy = sfbEnergy->sfbShort[wnd][sfb]; local 127 energy = L_add(energy, sfbEnergy->sfbShort[wnd+j][sfb]); 129 sfbEnergy->sfbLong[i] = energy; 140 Word32 energy = sfbEnergyMS->sfbShort[wnd][sfb]; local 142 energy = L_add(energy, sfbEnergyMS->sfbShort[wnd+j][sfb]); 144 sfbEnergyMS->sfbLong[i] = energy; 155 Word32 energy = sfbSpreadedEnergy->sfbShort[wnd][sfb]; local 157 energy = L_add(energy, sfbSpreadedEnergy->sfbShort[wnd+j][sfb]) [all...] |
sf_estim.c | 706 Word32 thresh, energy; local 719 energy = psyOutChan->sfbEnergy[i]; 732 /* scfs without energy or with thresh>energy are marked with MIN_16 */ 736 if ((maxSpec > 0) && (energy > thresh)) {
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
EnergyProbe.java | 23 * The EnergyProbe class provides audio signal energy measurements based on the FFT returned 25 * value has no unit and is just proportional to the amount of energy present around the 57 int energy = 0; local 70 energy += (int)mFft[0] * (int)mFft[0]; 83 energy += tmp/j; 97 return energy/count;
|
/external/webrtc/src/modules/audio_processing/aecm/main/matlab/matlab/ |
calcFilterGain.m | 1 function [gam, cntIn2, cntOut2] = calcFilterGain(energy, dE, aecmStruct, t, T, cntIn, cntOut) 12 gam = max(0,min((energy - aecmStruct.energyMin)/(aecmStruct.energyLevel - aecmStruct.energyMin), 1-(1-gamMid)*(aecmStruct.energyMax-energy)/(aecmStruct.energyMax-aecmStruct.energyLevel))); 22 if (energy < aecmStruct.energyLevel) 54 if (energy < aecmStruct.energyLevel) 58 gam2 = max(0, min(ener_B*(energy-aecmStruct.energyLevel)/(ener_C-aecmStruct.energyLevel), ener_B+(ener_A-ener_B)*(energy-ener_C)/(aecmStruct.energyMax-ener_C)));
|
calcStepSize.m | 1 function [mu, aecmStructNew] = calcStepSize(energy, dE, aecmStruct, t, logscale) 16 mu = (energy - aecmStruct.energyMin)/(aecmStruct.energyMax - aecmStruct.energyMin)*(currentMuMax-aecmStruct.MU_MIN) + aecmStruct.MU_MIN; 19 if (energy < aecmStruct.energyLevel) 29 mu = (energy - aecmStruct.energyMin)/(aecmStruct.energyMax - aecmStruct.energyMin)*(currentMuMax-muMin) + muMin;
|
AECMobile.m | 10 % Near end energy level 21 % Store the near end energy 24 % Store the far end energy 41 % Estimated echo energy 60 % Update energy levels, which control the VAD 74 % Calculate current energy error in near end (estimated echo vs. near end) 78 % Calculate step size used in LMS algorithm, based on current far end energy and near end energy error (dE) 151 % Calculate suppression gain, based on far end energy and near end energy error (dE [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
VisualizerTest.java | 201 int energy = computeEnergy(data, true); local 202 assertEquals("getWaveForm reports energy for silence", 203 0, energy); 205 energy = computeEnergy(data, false); 206 assertEquals("getFft reports energy for silence", 207 0, energy); 270 int energy = computeEnergy(mWaveform, true); local 271 assertEquals("getWaveForm reports energy for silence", 272 0, energy); 284 energy = computeEnergy(mFft, false) 307 int energy = 0; local [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
MediaVisualizerTest.java | 226 int energy = computeEnergy(data, true); local 227 assertEquals(msg +": getWaveForm reports energy for silence", 228 0, energy); 230 energy = computeEnergy(data, false); 231 assertEquals(msg +": getFft reports energy for silence", 232 0, energy); 238 energy = computeEnergy(data, true); 240 energy > 0); 242 energy = computeEnergy(data, false); 244 energy > 0) 322 int energy = computeEnergy(mWaveform, true); local 405 int energy = 0; local [all...] |
/external/speex/libspeex/ |
ltp_bfin.h | 164 VARDECL(spx_word32_t *energy); 169 ALLOC(energy, end-start+2, spx_word32_t); 178 energy[0]=inner_prod(sw-start, sw-start, len); 181 /* energy update -------------------------------------*/ 202 : : "d" (energy), "d" (&sw[-start-1]), "d" (&sw[-start+len-1]), 220 normalize16(energy, ener16, 180, end-start+1); 228 " I1 = %2;\n\t" /* I1: energy */ 231 " R3 = 0;\n\t" /* R3: best energy */ 259 /* Instead of dividing the tmp by the energy, we multiply on the other side */ 295 g = DIV32(corr[i-start], 10+SHR32(MULT16_16(spx_sqrt(e0),spx_sqrt(energy[i-start])),6)) [all...] |
ltp.c | 185 spx_word32_t *energy; local 191 energy = corr; 194 VARDECL(spx_word32_t *energy); 197 ALLOC(energy, end-start+2, spx_word32_t); 200 ener16 = energy; 230 energy[0]=inner_prod(sw-start, sw-start, len); 234 /* Update energy for next pitch*/ 235 energy[i-start+1] = SUB32(ADD32(energy[i-start],SHR32(MULT16_16(sw[-i-1],sw[-i-1]),6)), SHR32(MULT16_16(sw[-i+len-1],sw[-i+len-1]),6)); 236 if (energy[i-start+1] < 0 [all...] |
/cts/apps/CtsVerifier/jni/audioquality/ |
LinearityTest.cpp | 74 double energy = 0.0; local 78 energy += s * s; 80 if (energy > maxEnergy) { 81 maxEnergy = energy;
|
/external/opencv/cv/src/ |
cvsnakes.cpp | 58 // alpha - pointer to coefficient of continuity energy, 59 // beta - pointer to coefficient of curvature energy, 60 // gamma - pointer to coefficient of image energy, 64 // scheme - image energy scheme 65 // if _CV_SNAKE_IMAGE - image intensity is energy 66 // if _CV_SNAKE_GRAD - magnitude of gradient is energy 216 float energy; local 228 Econt[(j + centery) * win.width + k + centerx] = energy = 232 maxEcont = MAX( maxEcont, energy ); 233 minEcont = MIN( minEcont, energy ); 251 float energy; local 286 float energy; local [all...] |
/external/webrtc/src/common_audio/vad/main/source/ |
vad_filterbank.c | 151 // Energy in 3000 Hz - 4000 Hz 155 // Energy in 2000 Hz - 3000 Hz 167 // Energy in 1000 Hz - 2000 Hz 180 // Energy in 500 Hz - 1000 Hz 192 // Energy in 250 Hz - 500 Hz 213 WebRtc_Word32 energy; local 217 energy = WebRtcSpl_Energy(vector, vector_length, &shfts); 219 if (energy > 0) 222 shfts2 = 16 - WebRtcSpl_NormW32(energy); 225 enerSum = (WebRtc_Word16)WEBRTC_SPL_SHIFT_W32(energy, -shfts2) [all...] |
/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
VoiceDialerActivity.java | 628 private static final int NUM_PERIODS_BLOCK = 10; // number of sine periods in one energy averaging block 629 private static final int THRESHOLD = 8; // absolute pseudo energy threshold 632 private static final int TOP = 2; // beep constant energy detected 636 int blockSize = 2 * sampleCount; // energy averaging block 648 long prevE = 0; // previous pseudo energy 650 int threshold = THRESHOLD*sampleCount; // absolute energy threshold 663 // compute pseudo energy 673 long energy = (sumxx*sampleCount - sumx*sumx)/(sampleCount*sampleCount); local 674 Log.d(TAG, "sumx " + sumx + " sumxx " + sumxx + " ee " + energy); 678 if (energy > threshold && energy > (prevE * 2) && prevE != 0) [all...] |
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9/ |
access-nbody.js | 128 NBodySystem.prototype.energy = function(){ 163 ret = bodies.energy(); 167 ret = bodies.energy();
|
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/ |
access-nbody.js | 128 NBodySystem.prototype.energy = function(){ 163 ret = bodies.energy(); 167 ret = bodies.energy();
|
/external/webrtc/src/common_audio/signal_processing_library/main/source/ |
Android.mk | 31 energy.c \
|
/system/media/mca/filterpacks/imageproc/java/ |
AutoFixFilter.java | 125 " float energy = dot(color.rgb, weights);\n" + 126 " float mask_value = energy - 0.5;\n" + 133 " float index = energy * hist_scale + hist_offset;\n" + 139 " float dst_energy = energy * alpha + value * (1.0 - alpha);\n" + 140 " float max_energy = energy / max(color.r, max(color.g, color.b));\n" + 144 " if (energy == 0.0) {\n" + 147 " gl_FragColor = vec4(color.rgb * dst_energy / energy, color.a);\n" + 285 int energy = (data[index] & 0xFF) + ((data[index] >> 8) & 0xFF) + local 287 histArray[energy] ++;
|
/external/webrtc/src/modules/interface/ |
module_common_types.h | 33 WebRtc_UWord8 arrOfEnergy[kRtpCsrcSize]; // one energy byte (0-9) per channel 705 const WebRtc_Word32 energy = -1); 764 const WebRtc_Word32 energy) 773 _energy = energy;
|
/external/opencv/cvaux/src/ |
cvvecfacetracking.cpp | 92 int Energy(const CvTrackingRect& prev) 226 void Energy(); 239 Energy(); 245 Energy(); 252 Energy(); 259 Energy(); 393 void CvFaceElement::Energy() 420 // energy 421 pRect->Energy(m_trPrev); 424 }//void CvFaceElement::Energy() 792 int energy = 0; local 837 int energy = ppNew[element[0]]->iEnergy + ppNew[element[1]]->iEnergy + local [all...] |