Home
last modified time | relevance | path

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

/external/chromium_org/third_party/WebKit/Source/modules/webaudio/
DRealtimeAnalyser.cpp150 size_t fftSize = this->fftSize(); in doFFTAnalysis() local
152 AudioFloatArray temporaryBuffer(fftSize); in doFFTAnalysis()
158 if (writeIndex < fftSize) { in doFFTAnalysis()
159 …memcpy(tempP, inputBuffer + writeIndex - fftSize + InputBufferSize, sizeof(*tempP) * (fftSize - wr… in doFFTAnalysis()
160 memcpy(tempP + fftSize - writeIndex, inputBuffer, sizeof(*tempP) * writeIndex); in doFFTAnalysis()
162 memcpy(tempP, inputBuffer + writeIndex - fftSize, sizeof(*tempP) * fftSize); in doFFTAnalysis()
166 applyWindow(tempP, fftSize); in doFFTAnalysis()
178 const double magnitudeScale = 1.0 / fftSize; in doFFTAnalysis()
264 unsigned fftSize = this->fftSize(); in getFloatTimeDomainData() local
265 size_t len = std::min(fftSize, destinationArray->length()); in getFloatTimeDomainData()
[all …]
DPeriodicWave.cpp154 unsigned fftSize = m_periodicWaveSize; in createBandLimitedTables() local
155 unsigned halfSize = fftSize / 2; in createBandLimitedTables()
164 FFTFrame frame(fftSize); in createBandLimitedTables()
169 float scale = fftSize; in createBandLimitedTables()
223 unsigned fftSize = periodicWaveSize(); in generateBasicWaveform() local
224 unsigned halfSize = fftSize / 2; in generateBasicWaveform()
DAnalyserNode.h51 unsigned fftSize() const { return m_analyser.fftSize(); } in fftSize() function
DRealtimeAnalyser.h43 size_t fftSize() const { return m_fftSize; } in fftSize() function
DAnalyserNode.idl28 [RaisesException=Setter] attribute unsigned long fftSize;
/external/chromium_org/third_party/WebKit/Source/platform/audio/ffmpeg/
DFFTFrameFFMPEG.cpp52 FFTFrame::FFTFrame(unsigned fftSize) in FFTFrame() argument
53 : m_FFTSize(fftSize) in FFTFrame()
54 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize))) in FFTFrame()
55 , m_realData(fftSize / 2) in FFTFrame()
56 , m_imagData(fftSize / 2) in FFTFrame()
59 , m_complexData(fftSize) in FFTFrame()
64 m_forwardContext = contextForSize(fftSize, DFT_R2C); in FFTFrame()
65 m_inverseContext = contextForSize(fftSize, IDFT_C2R); in FFTFrame()
164 RDFTContext* FFTFrame::contextForSize(unsigned fftSize, int trans) in contextForSize() argument
169 ASSERT(fftSize); in contextForSize()
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/audio/mac/
DFFTFrameMac.cpp48 FFTFrame::FFTFrame(unsigned fftSize) in FFTFrame() argument
49 : m_realData(fftSize) in FFTFrame()
50 , m_imagData(fftSize) in FFTFrame()
52 m_FFTSize = fftSize; in FFTFrame()
53 m_log2FFTSize = static_cast<unsigned>(log2(fftSize)); in FFTFrame()
59 m_FFTSetup = fftSetupForSize(fftSize); in FFTFrame()
123 FFTSetup FFTFrame::fftSetupForSize(unsigned fftSize) in fftSetupForSize() argument
130 int pow2size = static_cast<int>(log2(fftSize)); in fftSetupForSize()
/external/chromium_org/third_party/WebKit/Source/platform/audio/
DFFTFrame.cpp50 AudioFloatArray paddedResponse(fftSize()); // zero-initialized in doPaddedFFT()
59 OwnPtr<FFTFrame> newFrame = adoptPtr(new FFTFrame(frame1.fftSize())); in createInterpolatedFrame()
64 int fftSize = newFrame->fftSize(); in createInterpolatedFrame() local
65 AudioFloatArray buffer(fftSize); in createInterpolatedFrame()
67 buffer.zeroRange(fftSize / 2, fftSize); in createInterpolatedFrame()
87 m_FFTSize = frame1.fftSize(); in interpolateFrequencyComponents()
186 int halfSize = fftSize() / 2; in extractAverageGroupDelay()
188 const double kSamplePhaseDelay = (twoPiDouble) / double(fftSize()); in extractAverageGroupDelay()
228 int halfSize = fftSize() / 2; in addConstantGroupDelay()
233 const double kSamplePhaseDelay = (twoPiDouble) / double(fftSize()); in addConstantGroupDelay()
[all …]
DReverbConvolverStage.cpp46 …size_t fftSize, size_t renderPhase, size_t renderSliceSize, ReverbAccumulationBuffer* accumulation… in ReverbConvolverStage() argument
56 m_fftKernel = adoptPtr(new FFTFrame(fftSize)); in ReverbConvolverStage()
58 m_fftConvolver = adoptPtr(new FFTConvolver(fftSize)); in ReverbConvolverStage()
61 ASSERT(stageLength <= fftSize / 2); in ReverbConvolverStage()
63 m_directKernel = adoptPtr(new AudioFloatArray(fftSize / 2)); in ReverbConvolverStage()
73 size_t halfSize = fftSize / 2; in ReverbConvolverStage()
91 size_t delayBufferSize = m_preDelayLength < fftSize ? fftSize : m_preDelayLength; in ReverbConvolverStage()
DReverbConvolver.cpp84 size_t fftSize = m_minFFTSize; in ReverbConvolver() local
86 size_t stageSize = fftSize / 2; in ReverbConvolver()
98 …sponse, totalResponseLength, reverbTotalLatency, stageOffset, stageSize, fftSize, renderPhase, ren… in ReverbConvolver()
113 fftSize *= 2; in ReverbConvolver()
116 if (hasRealtimeConstraint && !isBackgroundStage && fftSize > m_maxRealtimeFFTSize) in ReverbConvolver()
117 fftSize = m_maxRealtimeFFTSize; in ReverbConvolver()
118 if (fftSize > m_maxFFTSize) in ReverbConvolver()
119 fftSize = m_maxFFTSize; in ReverbConvolver()
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()
52 size_t halfSize = fftSize() / 2; in process()
DHRTFKernel.h54 static PassRefPtr<HRTFKernel> create(AudioChannel* channel, size_t fftSize, float sampleRate) in create() argument
56 return adoptRef(new HRTFKernel(channel, fftSize, sampleRate)); in create()
69 size_t fftSize() const { return m_fftFrame->fftSize(); } in fftSize() function
80 HRTFKernel(AudioChannel*, size_t fftSize, float sampleRate);
DHRTFKernel.cpp68 HRTFKernel::HRTFKernel(AudioChannel* channel, size_t fftSize, float sampleRate) in HRTFKernel() argument
75 m_frameDelay = extractAverageGroupDelay(channel, fftSize / 2); in HRTFKernel()
81 …size_t truncatedResponseLength = std::min(responseLength, fftSize / 2); // truncate if necessary t… in HRTFKernel()
93 m_fftFrame = adoptPtr(new FFTFrame(fftSize)); in HRTFKernel()
99 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
DFFTFrame.h57 FFTFrame(unsigned fftSize);
70 unsigned fftSize() const { return m_FFTSize; } in fftSize() function
98 static FFTSetup fftSetupForSize(unsigned fftSize);
103 static RDFTContext* contextForSize(unsigned fftSize, int trans);
DHRTFElevation.cpp189 const size_t fftSize = HRTFPanner::fftSizeForSampleRate(sampleRate); in calculateKernelsForAzimuthElevation() local
190 kernelL = HRTFKernel::create(leftEarImpulseResponse, fftSize, sampleRate); in calculateKernelsForAzimuthElevation()
191 kernelR = HRTFKernel::create(rightEarImpulseResponse, fftSize, sampleRate); in calculateKernelsForAzimuthElevation()
DReverbConvolverStage.h51 …ize_t reverbTotalLatency, size_t stageOffset, size_t stageLength, size_t fftSize, size_t renderPha…
DHRTFPanner.h44 size_t fftSize() const { return fftSizeForSampleRate(m_sampleRate); } in fftSize() function
DHRTFPanner.cpp310 return MaxDelayTimeSeconds + (fftSize() / 2) / static_cast<double>(sampleRate()); in tailTime()
317 return (fftSize() / 2) / static_cast<double>(sampleRate()); in latencyTime()
/external/chromium_org/third_party/WebKit/Source/platform/audio/ipp/
DFFTFrameIPP.cpp45 FFTFrame::FFTFrame(unsigned fftSize) in FFTFrame() argument
46 : m_FFTSize(fftSize) in FFTFrame()
47 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize))) in FFTFrame()
48 , m_realData(fftSize / 2) in FFTFrame()
49 , m_imagData(fftSize / 2) in FFTFrame()
50 , m_complexData(fftSize) in FFTFrame()
/external/chromium_org/third_party/WebKit/Source/platform/audio/android/
DFFTFrameOpenMAXDLAndroid.cpp45 FFTFrame::FFTFrame(unsigned fftSize) in FFTFrame() argument
46 : m_FFTSize(fftSize) in FFTFrame()
47 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize))) in FFTFrame()
48 , m_realData(fftSize / 2) in FFTFrame()
49 , m_imagData(fftSize / 2) in FFTFrame()
52 , m_complexData(fftSize) in FFTFrame()
/external/chromium_org/third_party/openmax_dl/dl/sp/src/arm/neon/
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
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