HomeSort by relevance Sort by last modified time
    Searched refs:fftSize (Results 1 - 23 of 23) sorted by null

  /external/chromium_org/third_party/WebKit/Source/platform/audio/
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(); }
58 // Buffer input until we get fftSize / 2 samples then do an FFT
HRTFKernel.h 54 static PassRefPtr<HRTFKernel> create(AudioChannel* channel, size_t fftSize, float sampleRate)
56 return adoptRef(new HRTFKernel(channel, fftSize, sampleRate));
69 size_t fftSize() const { return m_fftFrame->fftSize(); }
80 HRTFKernel(AudioChannel*, size_t fftSize, float sampleRate);
FFTConvolver.cpp 41 FFTConvolver::FFTConvolver(size_t fftSize)
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;
FFTFrame.cpp 50 AudioFloatArray paddedResponse(fftSize()); // zero-initialized
59 OwnPtr<FFTFrame> newFrame = adoptPtr(new FFTFrame(frame1.fftSize()));
64 int fftSize = newFrame->fftSize();
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...]
ReverbConvolver.cpp 84 size_t fftSize = m_minFFTSize;
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;
ReverbConvolverStage.cpp 46 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 / 2 frames
    [all...]
FFTFrame.h 57 FFTFrame(unsigned fftSize);
70 unsigned fftSize() const { return m_FFTSize; }
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);
HRTFKernel.cpp 68 HRTFKernel::HRTFKernel(AudioChannel* channel, size_t fftSize, float sampleRate)
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()));
HRTFPanner.h 44 size_t fftSize() const { return fftSizeForSampleRate(m_sampleRate); }
ReverbConvolverStage.h 51 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);
HRTFElevation.cpp 188 // 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);
HRTFPanner.cpp 309 // 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/
FFTFrameFFMPEG.cpp 51 // Normal constructor: allocates for a given fftSize.
52 FFTFrame::FFTFrame(unsigned fftSize)
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, int trans
    [all...]
  /external/chromium_org/third_party/WebKit/Source/modules/webaudio/
RealtimeAnalyser.cpp 80 // m_magnitudeBuffer has size = fftSize / 2 because it contains floats reduced from complex values in m_analysisFrame.
95 // FIXME : allow to work with non-FFTSize divisible chunking
150 size_t fftSize = this->fftSize();
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)
    [all...]
AnalyserNode.idl 28 [RaisesException=Setter] attribute unsigned long fftSize;
AnalyserNode.h 51 unsigned fftSize() const { return m_analyser.fftSize(); }
RealtimeAnalyser.h 43 size_t fftSize() const { return m_fftSize; }
PeriodicWave.cpp 154 unsigned fftSize = m_periodicWaveSize;
155 unsigned halfSize = fftSize / 2;
164 FFTFrame frame(fftSize);
169 float scale = fftSize;
223 unsigned fftSize = periodicWaveSize();
224 unsigned halfSize = fftSize / 2;
  /external/chromium_org/third_party/WebKit/Source/platform/audio/mac/
FFTFrameMac.cpp 47 // Normal constructor: allocates for a given fftSize
48 FFTFrame::FFTFrame(unsigned fftSize)
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)
130 int pow2size = static_cast<int>(log2(fftSize));
  /external/chromium_org/third_party/WebKit/Source/platform/audio/android/
FFTFrameOpenMAXDLAndroid.cpp 44 // Normal constructor: allocates for a given fftSize.
45 FFTFrame::FFTFrame(unsigned fftSize)
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/WebKit/Source/platform/audio/ipp/
FFTFrameIPP.cpp 44 // Normal constructor: allocates for a given fftSize.
45 FFTFrame::FFTFrame(unsigned fftSize)
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/openmax_dl/dl/sp/src/arm/neon/
omxSP_FFTInv_CToC_FC32_Sfs_s.S 94 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
omxSP_FFTInv_CCSToR_F32_Sfs_s.S 262 VCVT fN, sN @ fn = fftSize, as a float
264 VDIV one, one, fN @ one = dScale[0] = 1 / fftSize

Completed in 258 milliseconds