bug 1188704 remove now unused PerformInverseFFT() variation r=rillian
authorKarl Tomlinson <karlt+@karlt.net>
Thu, 30 Jul 2015 12:51:48 +1200
changeset 287454 3e16627c896837a3f4f5c7a6927edcb861f148a4
parent 287453 91d2934096a14c1a245fedef63136179b8043433
child 287455 ab4b57e3c2beb6c3926f7d5916e53744176c5b49
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrillian
bugs1188704
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1188704 remove now unused PerformInverseFFT() variation r=rillian
dom/media/webaudio/FFTBlock.h
--- a/dom/media/webaudio/FFTBlock.h
+++ b/dom/media/webaudio/FFTBlock.h
@@ -128,57 +128,16 @@ public:
       AudioBufferInPlaceScale(aDataOut, mFFTSize, mFFTSize);
     } else
 #endif
     {
       kiss_fftri(mKissIFFT, &(mOutputBuffer.Elements()->c), aDataOut);
     }
 #endif
   }
-  // Inverse-transform the FFTSize()/2+1 points of data in each
-  // of aRealDataIn and aImagDataIn and store the resulting
-  // FFTSize() points in aRealDataOut.
-  void PerformInverseFFT(float* aRealDataIn,
-                         float *aImagDataIn,
-                         float *aRealDataOut)
-  {
-    EnsureIFFT();
-    const uint32_t inputSize = mFFTSize / 2 + 1;
-#if defined(MOZ_LIBAV_FFT)
-    AlignedTArray<FFTSample> inputBuffer(inputSize * 2);
-    for (uint32_t i = 0; i < inputSize; ++i) {
-      inputBuffer[2*i] = aRealDataIn[i];
-      inputBuffer[(2*i)+1] = aImagDataIn[i];
-    }
-    av_rdft_calc(mAvIRDFT, inputBuffer.Elements());
-    PodCopy(aRealDataOut, inputBuffer.Elements(), FFTSize());
-    // TODO: Once bug 877662 lands, change this to use SSE.
-    for (uint32_t i = 0; i < mFFTSize; ++i) {
-      aRealDataOut[i] /= mFFTSize;
-    }
-#else
-    AlignedTArray<ComplexU> inputBuffer(inputSize);
-    for (uint32_t i = 0; i < inputSize; ++i) {
-      inputBuffer[i].r = aRealDataIn[i];
-      inputBuffer[i].i = aImagDataIn[i];
-    }
-#if defined(BUILD_ARM_NEON)
-    if (mozilla::supports_neon()) {
-      omxSP_FFTInv_CCSToR_F32_Sfs(inputBuffer.Elements()->f,
-                                  aRealDataOut, mOmxIFFT);
-    } else
-#endif
-    {
-      kiss_fftri(mKissIFFT, &(inputBuffer.Elements()->c), aRealDataOut);
-      for (uint32_t i = 0; i < mFFTSize; ++i) {
-        aRealDataOut[i] /= mFFTSize;
-      }
-    }
-#endif
-  }
 
   void Multiply(const FFTBlock& aFrame)
   {
     BufferComplexMultiply(mOutputBuffer.Elements()->f,
                           aFrame.mOutputBuffer.Elements()->f,
                           mOutputBuffer.Elements()->f,
                           mFFTSize / 2 + 1);
   }