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

  /external/chromium_org/third_party/WebKit/Source/core/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;
ReverbConvolver.cpp 91 size_t fftSize = m_minFFTSize;
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;
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 / 2 frames
    [all...]
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; }
111 static FFTSetup fftSetupForSize(unsigned fftSize);
123 static RDFTContext* contextForSize(unsigned fftSize, int trans);
FFTFrame.cpp 49 AudioFloatArray paddedResponse(fftSize()); // zero-initialized
58 OwnPtr<FFTFrame> newFrame = adoptPtr(new FFTFrame(frame1.fftSize()));
63 int fftSize = newFrame->fftSize();
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...]
HRTFKernel.cpp 71 HRTFKernel::HRTFKernel(AudioChannel* channel, size_t fftSize, float sampleRate)
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()));
HRTFPanner.h 44 size_t fftSize() const { return fftSizeForSampleRate(m_sampleRate); }
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);
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);
199 kernelL = HRTFKernel::create(leftEarImpulseResponse, fftSize, sampleRate);
200 kernelR = HRTFKernel::create(rightEarImpulseResponse, fftSize, sampleRate);
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/
FFTFrameFFMPEG.cpp 87 // Normal constructor: allocates for a given fftSize.
88 FFTFrame::FFTFrame(unsigned fftSize)
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() / 2
    [all...]
  /external/chromium_org/third_party/WebKit/Source/modules/webaudio/
AnalyserNode.idl 28 [SetterRaisesException] attribute unsigned long fftSize;
RealtimeAnalyser.cpp 94 // m_magnitudeBuffer has size = fftSize / 2 because it contains floats reduced from complex values in m_analysisFrame.
109 // FIXME : allow to work with non-FFTSize divisible chunking
164 size_t fftSize = this->fftSize();
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)
    [all...]
AnalyserNode.h 50 unsigned fftSize() const { return m_analyser.fftSize(); }
RealtimeAnalyser.h 46 size_t fftSize() const { return m_fftSize; }
PeriodicWave.cpp 156 unsigned fftSize = m_periodicWaveSize;
157 unsigned halfSize = fftSize / 2;
166 FFTFrame frame(fftSize);
171 float scale = fftSize;
225 unsigned fftSize = periodicWaveSize();
226 unsigned halfSize = fftSize / 2;
  /external/chromium_org/third_party/WebKit/Source/core/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);
146 FFTSetup FFTFrame::fftSetupForSize(unsigned fftSize)
153 int pow2size = static_cast<int>(log2(fftSize));
  /external/chromium_org/third_party/WebKit/Source/core/platform/audio/chromium/
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)))
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/
FFTFrameIPP.cpp 46 // Normal constructor: allocates for a given fftSize.
47 FFTFrame::FFTFrame(unsigned fftSize)
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;
  /frameworks/av/include/media/
Visualizer.h 87 // fftSize) is 0.
91 uint32_t fftSize,
  /frameworks/av/media/libmedia/
Visualizer.cpp 354 uint32_t fftSize = 0;
361 fftSize = mCaptureSize;
363 mCaptureCallBack(mCaptureCbkUser, waveSize, wavePtr, fftSize, fftPtr, mSampleRate);
  /frameworks/base/media/jni/audioeffect/
android_media_Visualizer.cpp 161 uint32_t fftSize,
205 if (fftSize != 0 && fft != NULL) {
208 ensureArraySize(env, &callbackInfo->fft_data, fftSize);
213 memcpy(nArray, fft, fftSize);

Completed in 664 milliseconds