Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1781)

Unified Diff: Source/platform/audio/ipp/FFTFrameIPP.cpp

Issue 536843002: Change members's order and combine duplicated method for FFTFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Separated using VectorMatch::vsmul from FFTFrameMac.cpp Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/audio/ffmpeg/FFTFrameFFMPEG.cpp ('k') | Source/platform/audio/mac/FFTFrameMac.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/audio/ipp/FFTFrameIPP.cpp
diff --git a/Source/platform/audio/ipp/FFTFrameIPP.cpp b/Source/platform/audio/ipp/FFTFrameIPP.cpp
index 55f4861a22ec4b5de7e7353c65153f77e34f839a..15046d72a726505933cbc4fda07add8fc5ae3c16 100644
--- a/Source/platform/audio/ipp/FFTFrameIPP.cpp
+++ b/Source/platform/audio/ipp/FFTFrameIPP.cpp
@@ -45,9 +45,9 @@ const unsigned maximumFFTPower2Size = 24;
FFTFrame::FFTFrame(unsigned fftSize)
: m_FFTSize(fftSize)
, m_log2FFTSize(static_cast<unsigned>(log2(fftSize)))
- , m_complexData(fftSize)
, m_realData(fftSize / 2)
, m_imagData(fftSize / 2)
+ , m_complexData(fftSize)
{
// We only allow power of two.
ASSERT(1UL << m_log2FFTSize == m_FFTSize);
@@ -70,9 +70,9 @@ FFTFrame::FFTFrame()
FFTFrame::FFTFrame(const FFTFrame& frame)
: m_FFTSize(frame.m_FFTSize)
, m_log2FFTSize(frame.m_log2FFTSize)
- , m_complexData(frame.m_FFTSize)
, m_realData(frame.m_FFTSize / 2)
, m_imagData(frame.m_FFTSize / 2)
+ , m_complexData(frame.m_FFTSize)
{
ippsDFTInitAlloc_R_32f(&m_DFTSpec, m_FFTSize, IPP_FFT_NODIV_BY_ANY, ippAlgHintFast);
int bufferSize = 0;
@@ -124,16 +124,6 @@ void FFTFrame::doInverseFFT(float* data)
ippsMulC_32f_I(scale, reinterpret_cast<Ipp32f*>(data), m_FFTSize);
}
-float* FFTFrame::realData() const
-{
- return const_cast<float*>(m_realData.data());
-}
-
-float* FFTFrame::imagData() const
-{
- return const_cast<float*>(m_imagData.data());
-}
-
float* FFTFrame::getUpToDateComplexData()
{
int len = m_FFTSize >> 1;
« no previous file with comments | « Source/platform/audio/ffmpeg/FFTFrameFFMPEG.cpp ('k') | Source/platform/audio/mac/FFTFrameMac.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698