Home | History | Annotate | Download | only in utility

Lines Matching refs:spectrum

25   // Pointers to mean values of spectrum.
34 // Binary spectrum based delay estimator
67 // Computes the binary spectrum by comparing the input |spectrum| with a
71 // - spectrum : Spectrum of which the binary spectrum should be
73 // - threshold_spectrum : Threshold spectrum with which the input
74 // spectrum is compared.
76 // - out : Binary spectrum.
78 static uint32_t BinarySpectrumFix(uint16_t* spectrum,
88 // Set the |threshold_spectrum| to half the input |spectrum| as starting
91 if (spectrum[i] > 0) {
92 // Convert input spectrum from Q(|q_domain|) to Q15.
93 int32_t spectrum_q15 = ((int32_t) spectrum[i]) << (15 - q_domain);
100 // Convert input spectrum from Q(|q_domain|) to Q15.
101 int32_t spectrum_q15 = ((int32_t) spectrum[i]) << (15 - q_domain);
104 // Convert |spectrum| at current frequency bin to a binary value.
113 static uint32_t BinarySpectrumFloat(float* spectrum,
121 // Set the |threshold_spectrum| to half the input |spectrum| as starting
124 if (spectrum[i] > 0.0f) {
125 threshold_spectrum[i].float_ = (spectrum[i] / 2);
133 MeanEstimatorFloat(spectrum[i], kScale, &(threshold_spectrum[i].float_));
134 // Convert |spectrum| at current frequency bin to a binary value.
135 if (spectrum[i] > threshold_spectrum[i].float_) {
200 // Allocate memory for spectrum buffers.
256 // Empty far end spectrum.
260 // Empty near end spectrum.
303 // Empty far end spectrum.
307 // Empty near end spectrum.