Searched refs:fftSize (Results 1 - 23 of 23) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/platform/audio/
H A DFFTConvolver.h39 // fftSize must be a power of two
40 FFTConvolver(size_t fftSize);
42 // For now, with multiple calls to Process(), framesToProcess MUST add up EXACTLY to fftSize / 2
46 // The input to output latency is equal to fftSize / 2
53 size_t fftSize() const { return m_frame.fftSize(); } function in class:blink::FFTConvolver
58 // Buffer input until we get fftSize / 2 samples then do an FFT
H A DHRTFKernel.h54 static PassRefPtr<HRTFKernel> create(AudioChannel* channel, size_t fftSize, float sampleRate) argument
56 return adoptRef(new HRTFKernel(channel, fftSize, sampleRate));
69 size_t fftSize() const { return m_fftFrame->fftSize(); } function in class:blink::HRTFKernel
80 HRTFKernel(AudioChannel*, size_t fftSize, float sampleRate);
H A DFFTConvolver.cpp41 FFTConvolver::FFTConvolver(size_t fftSize) argument
42 : m_frame(fftSize)
44 , m_inputBuffer(fftSize) // 2nd half of buffer is always zeroed
45 , m_outputBuffer(fftSize)
46 , m_lastOverlapBuffer(fftSize / 2)
52 size_t halfSize = fftSize() / 2;
H A DFFTFrame.cpp50 AudioFloatArray paddedResponse(fftSize()); // zero-initialized
59 OwnPtr<FFTFrame> newFrame = adoptPtr(new FFTFrame(frame1.fftSize()));
64 int fftSize = newFrame->fftSize(); local
65 AudioFloatArray buffer(fftSize);
67 buffer.zeroRange(fftSize / 2, fftSize);
87 m_FFTSize = frame1.fftSize();
186 int halfSize = fftSize() / 2;
188 const double kSamplePhaseDelay = (twoPiDouble) / double(fftSize());
[all...]
H A DReverbConvolver.cpp84 size_t fftSize = m_minFFTSize; local
86 size_t stageSize = fftSize / 2;
98 OwnPtr<ReverbConvolverStage> stage = adoptPtr(new ReverbConvolverStage(response, totalResponseLength, reverbTotalLatency, stageOffset, stageSize, fftSize, renderPhase, renderSliceSize, &m_accumulationBuffer, useDirectConvolver));
113 fftSize *= 2;
116 if (hasRealtimeConstraint && !isBackgroundStage && fftSize > m_maxRealtimeFFTSize)
117 fftSize = m_maxRealtimeFFTSize;
118 if (fftSize > m_maxFFTSize)
119 fftSize = m_maxFFTSize;
H A DReverbConvolverStage.cpp46 size_t fftSize, size_t renderPhase, size_t renderSliceSize, ReverbAccumulationBuffer* accumulationBuffer, bool directMode)
56 m_fftKernel = adoptPtr(new FFTFrame(fftSize));
58 m_fftConvolver = adoptPtr(new FFTConvolver(fftSize));
61 ASSERT(stageLength <= fftSize / 2);
63 m_directKernel = adoptPtr(new AudioFloatArray(fftSize / 2));
72 // But, the FFT convolution itself incurs fftSize / 2 latency, so subtract this out...
73 size_t halfSize = fftSize / 2;
91 size_t delayBufferSize = m_preDelayLength < fftSize ? fftSize : m_preDelayLength;
146 // An expensive FFT will happen every fftSize /
45 ReverbConvolverStage(const float* impulseResponse, size_t, size_t reverbTotalLatency, size_t stageOffset, size_t stageLength, size_t fftSize, size_t renderPhase, size_t renderSliceSize, ReverbAccumulationBuffer* accumulationBuffer, bool directMode) argument
[all...]
H A DFFTFrame.h57 FFTFrame(unsigned fftSize);
70 unsigned fftSize() const { return m_FFTSize; } function in class:blink::FFTFrame
78 void doPaddedFFT(const float* data, size_t dataSize); // zero-padding with dataSize <= fftSize
98 static FFTSetup fftSetupForSize(unsigned fftSize);
103 static RDFTContext* contextForSize(unsigned fftSize, int trans);
H A DHRTFKernel.cpp68 HRTFKernel::HRTFKernel(AudioChannel* channel, size_t fftSize, float sampleRate) argument
75 m_frameDelay = extractAverageGroupDelay(channel, fftSize / 2);
81 size_t truncatedResponseLength = std::min(responseLength, fftSize / 2); // truncate if necessary to max impulse response length allowed by FFT
93 m_fftFrame = adoptPtr(new FFTFrame(fftSize));
99 OwnPtr<AudioChannel> channel = adoptPtr(new AudioChannel(fftSize()));
H A DReverbConvolverStage.h51 ReverbConvolverStage(const float* impulseResponse, size_t responseLength, size_t reverbTotalLatency, size_t stageOffset, size_t stageLength, size_t fftSize, size_t renderPhase, size_t renderSliceSize, ReverbAccumulationBuffer*, bool directMode = false);
H A DHRTFPanner.h44 size_t fftSize() const { return fftSizeForSampleRate(m_sampleRate); } function in class:blink::FINAL
H A DHRTFElevation.cpp188 // Note that depending on the fftSize returned by the panner, we may be truncating the impulse response we just loaded in.
189 const size_t fftSize = HRTFPanner::fftSizeForSampleRate(sampleRate);
190 kernelL = HRTFKernel::create(leftEarImpulseResponse, fftSize, sampleRate);
191 kernelR = HRTFKernel::create(rightEarImpulseResponse, fftSize, sampleRate);
H A DHRTFPanner.cpp309 // and fftSize() / 2, respectively.
310 return MaxDelayTimeSeconds + (fftSize() / 2) / static_cast<double>(sampleRate());
315 // The latency of a FFTConvolver is also fftSize() / 2, and is in addition to its tailTime of the
317 return (fftSize() / 2) / static_cast<double>(sampleRate());
/external/chromium_org/third_party/WebKit/Source/platform/audio/ffmpeg/
H A DFFTFrameFFMPEG.cpp51 // Normal constructor: allocates for a given fftSize.
52 FFTFrame::FFTFrame(unsigned fftSize) argument
53 : m_FFTSize(fftSize)
54 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize)))
55 , m_realData(fftSize / 2)
56 , m_imagData(fftSize / 2)
59 , m_complexData(fftSize)
64 m_forwardContext = contextForSize(fftSize, DFT_R2C);
65 m_inverseContext = contextForSize(fftSize, IDFT_C2R);
164 RDFTContext* FFTFrame::contextForSize(unsigned fftSize, in argument
[all...]
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/
H A DRealtimeAnalyser.cpp80 // m_magnitudeBuffer has size = fftSize / 2 because it contains floats reduced from complex values in m_analysisFrame.
150 size_t fftSize = this->fftSize(); local
152 AudioFloatArray temporaryBuffer(fftSize);
156 // Take the previous fftSize values from the input buffer and copy into the temporary buffer.
158 if (writeIndex < fftSize) {
159 memcpy(tempP, inputBuffer + writeIndex - fftSize + InputBufferSize, sizeof(*tempP) * (fftSize - writeIndex));
160 memcpy(tempP + fftSize - writeIndex, inputBuffer, sizeof(*tempP) * writeIndex);
162 memcpy(tempP, inputBuffer + writeIndex - fftSize, sizeo
264 unsigned fftSize = this->fftSize(); local
293 unsigned fftSize = this->fftSize(); local
[all...]
H A DAnalyserNode.idl28 [RaisesException=Setter] attribute unsigned long fftSize;
H A DAnalyserNode.h51 unsigned fftSize() const { return m_analyser.fftSize(); } function in class:blink::FINAL
H A DRealtimeAnalyser.h43 size_t fftSize() const { return m_fftSize; } function in class:blink::FINAL
H A DPeriodicWave.cpp154 unsigned fftSize = m_periodicWaveSize; local
155 unsigned halfSize = fftSize / 2;
164 FFTFrame frame(fftSize);
169 float scale = fftSize;
223 unsigned fftSize = periodicWaveSize(); local
224 unsigned halfSize = fftSize / 2;
/external/chromium_org/third_party/WebKit/Source/platform/audio/ipp/
H A DFFTFrameIPP.cpp44 // Normal constructor: allocates for a given fftSize.
45 FFTFrame::FFTFrame(unsigned fftSize) argument
46 : m_FFTSize(fftSize)
47 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize)))
48 , m_realData(fftSize / 2)
49 , m_imagData(fftSize / 2)
50 , m_complexData(fftSize)
/external/chromium_org/third_party/WebKit/Source/platform/audio/mac/
H A DFFTFrameMac.cpp47 // Normal constructor: allocates for a given fftSize
48 FFTFrame::FFTFrame(unsigned fftSize) argument
49 : m_realData(fftSize)
50 , m_imagData(fftSize)
52 m_FFTSize = fftSize;
53 m_log2FFTSize = static_cast<unsigned>(log2(fftSize));
59 m_FFTSetup = fftSetupForSize(fftSize);
123 FFTSetup FFTFrame::fftSetupForSize(unsigned fftSize) argument
130 int pow2size = static_cast<int>(log2(fftSize));
/external/chromium_org/third_party/WebKit/Source/platform/audio/android/
H A DFFTFrameOpenMAXDLAndroid.cpp44 // Normal constructor: allocates for a given fftSize.
45 FFTFrame::FFTFrame(unsigned fftSize) argument
46 : m_FFTSize(fftSize)
47 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize)))
48 , m_realData(fftSize / 2)
49 , m_imagData(fftSize / 2)
52 , m_complexData(fftSize)
/external/chromium_org/third_party/openmax_dl/dl/sp/src/arm/neon/
H A DomxSP_FFTInv_CToC_FC32_Sfs_s.S94 M_ALLOC4 fftSize, 4
109 M_STR N, fftSize
189 M_LDR N, fftSize
192 VCVT fN, sN @ fn = fftSize, as a float
194 VDIV one, one, fN @ one = dScale[0] = 1 / fftSize
H A DomxSP_FFTInv_CCSToR_F32_Sfs_s.S262 VCVT fN, sN @ fn = fftSize, as a float
264 VDIV one, one, fN @ one = dScale[0] = 1 / fftSize

Completed in 225 milliseconds