/external/chromium_org/third_party/WebKit/Source/core/platform/audio/ |
H A D | FFTConvolver.h | 39 // 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:WebCore::FFTConvolver 58 // Buffer input until we get fftSize / 2 samples then do an FFT
|
H A D | HRTFKernel.h | 54 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:WebCore::HRTFKernel 80 HRTFKernel(AudioChannel*, size_t fftSize, float sampleRate);
|
H A D | FFTConvolver.cpp | 41 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 D | ReverbConvolver.cpp | 91 size_t fftSize = m_minFFTSize; local 93 size_t stageSize = fftSize / 2; 105 OwnPtr<ReverbConvolverStage> stage = adoptPtr(new ReverbConvolverStage(response, totalResponseLength, reverbTotalLatency, stageOffset, stageSize, fftSize, renderPhase, renderSliceSize, &m_accumulationBuffer, useDirectConvolver)); 120 fftSize *= 2; 123 if (hasRealtimeConstraint && !isBackgroundStage && fftSize > m_maxRealtimeFFTSize) 124 fftSize = m_maxRealtimeFFTSize; 125 if (fftSize > m_maxFFTSize) 126 fftSize = m_maxFFTSize;
|
H A D | ReverbConvolverStage.cpp | 47 size_t fftSize, size_t renderPhase, size_t renderSliceSize, ReverbAccumulationBuffer* accumulationBuffer, bool directMode) 57 m_fftKernel = adoptPtr(new FFTFrame(fftSize)); 59 m_fftConvolver = adoptPtr(new FFTConvolver(fftSize)); 62 ASSERT(stageLength <= fftSize / 2); 64 m_directKernel = adoptPtr(new AudioFloatArray(fftSize / 2)); 73 // But, the FFT convolution itself incurs fftSize / 2 latency, so subtract this out... 74 size_t halfSize = fftSize / 2; 92 size_t delayBufferSize = m_preDelayLength < fftSize ? fftSize : m_preDelayLength; 147 // An expensive FFT will happen every fftSize / 46 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 D | FFTFrame.h | 72 FFTFrame(unsigned fftSize); 94 void doPaddedFFT(const float* data, size_t dataSize); // zero-padding with dataSize <= fftSize 98 unsigned fftSize() const { return m_FFTSize; } function in class:WebCore::FFTFrame 111 static FFTSetup fftSetupForSize(unsigned fftSize); 123 static RDFTContext* contextForSize(unsigned fftSize, int trans);
|
H A D | FFTFrame.cpp | 49 AudioFloatArray paddedResponse(fftSize()); // zero-initialized 58 OwnPtr<FFTFrame> newFrame = adoptPtr(new FFTFrame(frame1.fftSize())); 63 int fftSize = newFrame->fftSize(); local 64 AudioFloatArray buffer(fftSize); 66 buffer.zeroRange(fftSize / 2, fftSize); 86 m_FFTSize = frame1.fftSize(); 185 int halfSize = fftSize() / 2; 187 const double kSamplePhaseDelay = (2.0 * piDouble) / double(fftSize()); [all...] |
H A D | HRTFKernel.cpp | 71 HRTFKernel::HRTFKernel(AudioChannel* channel, size_t fftSize, float sampleRate) argument 78 m_frameDelay = extractAverageGroupDelay(channel, fftSize / 2); 84 size_t truncatedResponseLength = min(responseLength, fftSize / 2); // truncate if necessary to max impulse response length allowed by FFT 96 m_fftFrame = adoptPtr(new FFTFrame(fftSize)); 102 OwnPtr<AudioChannel> channel = adoptPtr(new AudioChannel(fftSize()));
|
H A D | HRTFPanner.h | 44 size_t fftSize() const { return fftSizeForSampleRate(m_sampleRate); } function in class:WebCore::HRTFPanner
|
H A D | ReverbConvolverStage.h | 49 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 D | HRTFElevation.cpp | 197 // Note that depending on the fftSize returned by the panner, we may be truncating the impulse response we just loaded in. 198 const size_t fftSize = HRTFPanner::fftSizeForSampleRate(sampleRate); local 199 kernelL = HRTFKernel::create(leftEarImpulseResponse, fftSize, sampleRate); 200 kernelR = HRTFKernel::create(rightEarImpulseResponse, fftSize, sampleRate);
|
H A D | HRTFPanner.cpp | 301 // and fftSize() / 2, respectively. 302 return MaxDelayTimeSeconds + (fftSize() / 2) / static_cast<double>(sampleRate()); 307 // The latency of a FFTConvolver is also fftSize() / 2, and is in addition to its tailTime of the 309 return (fftSize() / 2) / static_cast<double>(sampleRate());
|
/external/chromium_org/third_party/WebKit/Source/core/platform/audio/ffmpeg/ |
H A D | FFTFrameFFMPEG.cpp | 87 // Normal constructor: allocates for a given fftSize. 88 FFTFrame::FFTFrame(unsigned fftSize) argument 89 : m_FFTSize(fftSize) 90 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize))) 93 , m_complexData(fftSize) 94 , m_realData(fftSize / 2) 95 , m_imagData(fftSize / 2) 100 m_forwardContext = contextForSize(fftSize, DFT_R2C); 101 m_inverseContext = contextForSize(fftSize, IDFT_C2R); 156 unsigned halfSize = fftSize() / 236 contextForSize(unsigned fftSize, int trans) argument [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/ |
H A D | AnalyserNode.idl | 28 [SetterRaisesException] attribute unsigned long fftSize;
|
H A D | RealtimeAnalyser.cpp | 94 // m_magnitudeBuffer has size = fftSize / 2 because it contains floats reduced from complex values in m_analysisFrame. 164 size_t fftSize = this->fftSize(); local 166 AudioFloatArray temporaryBuffer(fftSize); 170 // Take the previous fftSize values from the input buffer and copy into the temporary buffer. 172 if (writeIndex < fftSize) { 173 memcpy(tempP, inputBuffer + writeIndex - fftSize + InputBufferSize, sizeof(*tempP) * (fftSize - writeIndex)); 174 memcpy(tempP + fftSize - writeIndex, inputBuffer, sizeof(*tempP) * writeIndex); 176 memcpy(tempP, inputBuffer + writeIndex - fftSize, sizeo 278 unsigned fftSize = this->fftSize(); local [all...] |
H A D | AnalyserNode.h | 50 unsigned fftSize() const { return m_analyser.fftSize(); } function in class:WebCore::AnalyserNode
|
H A D | RealtimeAnalyser.h | 46 size_t fftSize() const { return m_fftSize; } function in class:WebCore::RealtimeAnalyser
|
H A D | PeriodicWave.cpp | 156 unsigned fftSize = m_periodicWaveSize; local 157 unsigned halfSize = fftSize / 2; 166 FFTFrame frame(fftSize); 171 float scale = fftSize; 225 unsigned fftSize = periodicWaveSize(); local 226 unsigned halfSize = fftSize / 2;
|
/external/chromium_org/third_party/WebKit/Source/core/platform/audio/mac/ |
H A D | FFTFrameMac.cpp | 47 // 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); 146 FFTSetup FFTFrame::fftSetupForSize(unsigned fftSize) argument 153 int pow2size = static_cast<int>(log2(fftSize));
|
/external/chromium_org/third_party/WebKit/Source/core/platform/audio/chromium/ |
H A D | FFTFrameOpenMAXDLAndroid.cpp | 44 // 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))) 50 , m_complexData(fftSize) 51 , m_realData(fftSize / 2) 52 , m_imagData(fftSize / 2) 115 unsigned halfSize = fftSize() / 2;
|
/external/chromium_org/third_party/WebKit/Source/core/platform/audio/ipp/ |
H A D | FFTFrameIPP.cpp | 46 // Normal constructor: allocates for a given fftSize. 47 FFTFrame::FFTFrame(unsigned fftSize) argument 48 : m_FFTSize(fftSize) 49 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize))) 50 , m_complexData(fftSize) 51 , m_realData(fftSize / 2) 52 , m_imagData(fftSize / 2) 114 unsigned halfSize = fftSize() / 2;
|