Home | History | Annotate | Download | only in utility

Lines Matching refs:spectrum

50 // Computes the binary spectrum by comparing the input |spectrum| with a
54 // - spectrum : Spectrum of which the binary spectrum should be
56 // - threshold_spectrum : Threshold spectrum with which the input
57 // spectrum is compared.
59 // - out : Binary spectrum.
61 static uint32_t BinarySpectrumFix(const uint16_t* spectrum,
71 // Set the |threshold_spectrum| to half the input |spectrum| as starting
74 if (spectrum[i] > 0) {
75 // Convert input spectrum from Q(|q_domain|) to Q15.
76 int32_t spectrum_q15 = ((int32_t) spectrum[i]) << (15 - q_domain);
83 // Convert input spectrum from Q(|q_domain|) to Q15.
84 int32_t spectrum_q15 = ((int32_t) spectrum[i]) << (15 - q_domain);
87 // Convert |spectrum| at current frequency bin to a binary value.
96 static uint32_t BinarySpectrumFloat(const float* spectrum,
104 // Set the |threshold_spectrum| to half the input |spectrum| as starting
107 if (spectrum[i] > 0.0f) {
108 threshold_spectrum[i].float_ = (spectrum[i] / 2);
116 MeanEstimatorFloat(spectrum[i], kScale, &(threshold_spectrum[i].float_));
117 // Convert |spectrum| at current frequency bin to a binary value.
118 if (spectrum[i] > threshold_spectrum[i].float_) {
156 // Allocate memory for the binary far-end spectrum handling.
160 // Allocate memory for spectrum buffers.
211 // Empty far end spectrum.
223 // Get binary spectrum.
241 // Empty far end spectrum.
249 // Get binary spectrum.
284 // Allocate memory for the farend spectrum handling.
289 // Allocate memory for spectrum buffers.
425 // Empty near end spectrum.
456 // Empty near end spectrum.
464 // Get binary spectrum.