Home
last modified time | relevance | path

Searched refs:fftSize (Results 1 – 19 of 19) sorted by relevance

/external/webkit/Source/WebCore/platform/audio/fftw/
DFFTFrameFFTW.cpp49 unsigned unpackedFFTWDataSize(unsigned fftSize) in unpackedFFTWDataSize() argument
51 return fftSize / 2 + 1; in unpackedFFTWDataSize()
58 FFTFrame::FFTFrame(unsigned fftSize) in FFTFrame() argument
59 : m_FFTSize(fftSize) in FFTFrame()
60 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize))) in FFTFrame()
63 …, m_data(2 * (3 + unpackedFFTWDataSize(fftSize))) // enough space for real and imaginary data plus… in FFTFrame()
81 m_forwardPlan = fftwPlanForSize(fftSize, Forward, in FFTFrame()
83 m_backwardPlan = fftwPlanForSize(fftSize, Backward, in FFTFrame()
102 …, m_data(2 * (3 + unpackedFFTWDataSize(fftSize()))) // enough space for real and imaginary data pl… in FFTFrame()
112 size_t nbytes = sizeof(float) * unpackedFFTWDataSize(fftSize()); in FFTFrame()
[all …]
/external/webkit/Source/WebCore/platform/audio/mkl/
DFFTFrameMKL.cpp42 DFTI_DESCRIPTOR_HANDLE createDescriptorHandle(int fftSize) in createDescriptorHandle() argument
47 MKL_LONG status = DftiCreateDescriptor(&handle, DFTI_SINGLE, DFTI_REAL, 1, fftSize); in createDescriptorHandle()
67 double scale = 1.0 / (2.0 * fftSize); in createDescriptorHandle()
89 FFTFrame::FFTFrame(unsigned fftSize) in FFTFrame() argument
90 : m_FFTSize(fftSize) in FFTFrame()
91 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize))) in FFTFrame()
93 , m_complexData(fftSize) in FFTFrame()
94 , m_realData(fftSize / 2) in FFTFrame()
95 , m_imagData(fftSize / 2) in FFTFrame()
100 m_handle = descriptorHandleForSize(fftSize); in FFTFrame()
[all …]
/external/webkit/Source/WebCore/platform/audio/
DFFTFrame.cpp48 AudioFloatArray paddedResponse(fftSize()); // zero-initialized in doPaddedFFT()
57 OwnPtr<FFTFrame> newFrame = adoptPtr(new FFTFrame(frame1.fftSize())); in createInterpolatedFrame()
62 int fftSize = newFrame->fftSize(); in createInterpolatedFrame() local
63 AudioFloatArray buffer(fftSize); in createInterpolatedFrame()
65 buffer.zeroRange(fftSize / 2, fftSize); in createInterpolatedFrame()
85 m_FFTSize = frame1.fftSize(); in interpolateFrequencyComponents()
184 int halfSize = fftSize() / 2; in extractAverageGroupDelay()
186 const double kSamplePhaseDelay = (2.0 * piDouble) / double(fftSize()); in extractAverageGroupDelay()
226 int halfSize = fftSize() / 2; in addConstantGroupDelay()
231 const double kSamplePhaseDelay = (2.0 * piDouble) / double(fftSize()); in addConstantGroupDelay()
DFFTConvolver.cpp41 FFTConvolver::FFTConvolver(size_t fftSize) in FFTConvolver() argument
42 : m_frame(fftSize) in FFTConvolver()
44 , m_inputBuffer(fftSize) // 2nd half of buffer is always zeroed in FFTConvolver()
45 , m_outputBuffer(fftSize) in FFTConvolver()
46 , m_lastOverlapBuffer(fftSize / 2) in FFTConvolver()
79 size_t halfSize = fftSize() / 2; in process()
DReverbConvolver.cpp93 size_t fftSize = m_minFFTSize; in ReverbConvolver() local
95 size_t stageSize = fftSize / 2; in ReverbConvolver()
105 …sponse, totalResponseLength, reverbTotalLatency, stageOffset, stageSize, fftSize, renderPhase, ren… in ReverbConvolver()
119 fftSize *= 2; in ReverbConvolver()
120 if (hasRealtimeConstraint && !isBackgroundStage && fftSize > m_maxRealtimeFFTSize) in ReverbConvolver()
121 fftSize = m_maxRealtimeFFTSize; in ReverbConvolver()
122 if (fftSize > m_maxFFTSize) in ReverbConvolver()
123 fftSize = m_maxFFTSize; in ReverbConvolver()
DHRTFKernel.h54 …static PassRefPtr<HRTFKernel> create(AudioChannel* channel, size_t fftSize, double sampleRate, boo… in create() argument
56 return adoptRef(new HRTFKernel(channel, fftSize, sampleRate, bassBoost)); in create()
69 size_t fftSize() const { return m_fftFrame->fftSize(); } in fftSize() function
80 HRTFKernel(AudioChannel* channel, size_t fftSize, double sampleRate, bool bassBoost);
DReverbConvolverStage.cpp47 …size_t fftSize, size_t renderPhase, size_t renderSliceSize, ReverbAccumulationBuffer* accumulation… in ReverbConvolverStage() argument
48 : m_fftKernel(fftSize) in ReverbConvolverStage()
58 m_convolver = adoptPtr(new FFTConvolver(fftSize)); in ReverbConvolverStage()
65 size_t halfSize = fftSize / 2; in ReverbConvolverStage()
81 m_preDelayBuffer.resize(m_preDelayLength < fftSize ? fftSize : m_preDelayLength); in ReverbConvolverStage()
DFFTFrame.h60 FFTFrame(unsigned fftSize);
86 unsigned fftSize() const { return m_FFTSize; } in fftSize() function
99 static FFTSetup fftSetupForSize(unsigned fftSize);
117 static DFTI_DESCRIPTOR_HANDLE descriptorHandleForSize(unsigned fftSize);
146 static fftwf_plan fftwPlanForSize(unsigned fftSize, Direction,
DHRTFKernel.cpp68 HRTFKernel::HRTFKernel(AudioChannel* channel, size_t fftSize, double sampleRate, bool bassBoost) in HRTFKernel() argument
75 m_frameDelay = extractAverageGroupDelay(channel, fftSize / 2); in HRTFKernel()
90 …size_t truncatedResponseLength = min(responseLength, fftSize / 2); // truncate if necessary to max… in HRTFKernel()
102 m_fftFrame = adoptPtr(new FFTFrame(fftSize)); in HRTFKernel()
108 OwnPtr<AudioChannel> channel = adoptPtr(new AudioChannel(fftSize())); in createImpulseResponse()
DFFTConvolver.h40 FFTConvolver(size_t fftSize);
53 size_t fftSize() const { return m_frame.fftSize(); } in fftSize() function
DHRTFElevation.cpp122 const size_t fftSize = HRTFPanner::fftSizeForSampleRate(sampleRate); in calculateKernelsForAzimuthElevation() local
123 kernelL = HRTFKernel::create(leftEarImpulseResponse, fftSize, sampleRate, true); in calculateKernelsForAzimuthElevation()
124 kernelR = HRTFKernel::create(rightEarImpulseResponse, fftSize, sampleRate, true); in calculateKernelsForAzimuthElevation()
DHRTFPanner.h43 size_t fftSize() { return fftSizeForSampleRate(m_sampleRate); } in fftSize() function
DReverbConvolverStage.h49 …size_t fftSize, size_t renderPhase, size_t renderSliceSize, ReverbAccumulationBuffer* accumulation…
/external/webkit/Source/WebCore/webaudio/
DRealtimeAnalyser.cpp153 size_t fftSize = this->fftSize(); in doFFTAnalysis() local
155 AudioFloatArray temporaryBuffer(fftSize); in doFFTAnalysis()
162 for (unsigned i = 0; i < fftSize; ++i) in doFFTAnalysis()
163 tempP[i] = inputBuffer[(i + writeIndex - fftSize + InputBufferSize) % InputBufferSize]; in doFFTAnalysis()
166 applyWindow(tempP, fftSize); in doFFTAnalysis()
266 unsigned fftSize = this->fftSize(); in getByteTimeDomainData() local
267 size_t len = min(fftSize, destinationArray->length()); in getByteTimeDomainData()
269 …bool isInputBufferGood = m_inputBuffer.size() == InputBufferSize && m_inputBuffer.size() > fftSize; in getByteTimeDomainData()
281 … float value = inputBuffer[(i + writeIndex - fftSize + InputBufferSize) % InputBufferSize]; in getByteTimeDomainData()
DRealtimeAnalyserNode.h48 unsigned int fftSize() const { return m_analyser.fftSize(); } in fftSize() function
DRealtimeAnalyser.h50 size_t fftSize() const { return m_fftSize; } in fftSize() function
DRealtimeAnalyserNode.idl30 attribute unsigned long fftSize;
/external/webkit/Source/WebCore/platform/audio/mac/
DFFTFrameMac.cpp44 FFTFrame::FFTFrame(unsigned fftSize) in FFTFrame() argument
45 : m_realData(fftSize) in FFTFrame()
46 , m_imagData(fftSize) in FFTFrame()
48 m_FFTSize = fftSize; in FFTFrame()
49 m_log2FFTSize = static_cast<unsigned>(log2(fftSize)); in FFTFrame()
55 m_FFTSetup = fftSetupForSize(fftSize); in FFTFrame()
150 FFTSetup FFTFrame::fftSetupForSize(unsigned fftSize) in fftSetupForSize() argument
157 int pow2size = static_cast<int>(log2(fftSize)); in fftSetupForSize()
/external/webkit/Source/WebCore/
DChangeLog-2010-12-0620015 (WebCore::RealtimeAnalyser::fftSize):
20277 (WebCore::RealtimeAnalyserNode::fftSize):
36067 (WebCore::HRTFPanner::fftSize):
49872 (WebCore::HRTFKernel::fftSize):
60449 (WebCore::FFTFrame::fftSize):
65014 (WebCore::FFTConvolver::fftSize):