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

Unified Diff: Source/platform/audio/android/FFTFrameOpenMAXDLAndroid.cpp

Issue 176843021: Remove redundancies of multiply() in FFTFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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/FFTFrameStub.cpp ('k') | Source/platform/audio/ffmpeg/FFTFrameFFMPEG.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/audio/android/FFTFrameOpenMAXDLAndroid.cpp
diff --git a/Source/platform/audio/android/FFTFrameOpenMAXDLAndroid.cpp b/Source/platform/audio/android/FFTFrameOpenMAXDLAndroid.cpp
index fa48892e39978d315bf879e2688b19706bd1f521..6939a2b937bff5c3209190fd0da099aa32061611 100644
--- a/Source/platform/audio/android/FFTFrameOpenMAXDLAndroid.cpp
+++ b/Source/platform/audio/android/FFTFrameOpenMAXDLAndroid.cpp
@@ -31,7 +31,6 @@
#include "platform/audio/FFTFrame.h"
#include "platform/audio/AudioArray.h"
-#include "platform/audio/VectorMath.h"
#include "wtf/MathExtras.h"
#include <dl/sp/api/armSP.h>
#include <dl/sp/api/omxSP.h>
@@ -103,27 +102,6 @@ FFTFrame::~FFTFrame()
free(m_inverseContext);
}
-void FFTFrame::multiply(const FFTFrame& frame)
-{
- FFTFrame& frame1 = *this;
- FFTFrame& frame2 = const_cast<FFTFrame&>(frame);
-
- float* realP1 = frame1.realData();
- float* imagP1 = frame1.imagData();
- const float* realP2 = frame2.realData();
- const float* imagP2 = frame2.imagData();
-
- unsigned halfSize = fftSize() / 2;
- float real0 = realP1[0];
- float imag0 = imagP1[0];
-
- VectorMath::zvmul(realP1, imagP1, realP2, imagP2, realP1, imagP1, halfSize);
-
- // Multiply the packed DC/nyquist component
- realP1[0] = real0 * realP2[0];
- imagP1[0] = imag0 * imagP2[0];
-}
-
void FFTFrame::doFFT(const float* data)
{
ASSERT(m_forwardContext);
« no previous file with comments | « Source/platform/audio/FFTFrameStub.cpp ('k') | Source/platform/audio/ffmpeg/FFTFrameFFMPEG.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698