Home | History | Annotate | Download | only in support
      1 /*
      2  *  Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
      3  *
      4  *  Use of this source code is governed by a BSD-style license
      5  *  that can be found in the LICENSE file in the root of the source
      6  *  tree. An additional intellectual property rights grant can be found
      7  *  in the file PATENTS.  All contributing project authors may
      8  *  be found in the AUTHORS file in the root of the source tree.
      9  */
     10 
     11 #include "dl/sp/api/armSP.h"
     12 #include "dl/sp/api/omxSP.h"
     13 #include "dl/sp/src/test/test_util.h"
     14 #include "dl/sp/src/test/support/float_rfft_thresholds.h"
     15 
     16 static const char* message =
     17     "Test forward and inverse real floating-point FFT (Non-NEON)\n";
     18 
     19 const char* UsageMessage() {
     20   return message;
     21 }
     22 
     23 void FinishedMessage() {
     24   printf("Non-NEON tests finished.\n");
     25 }
     26 
     27 void SetThresholds(struct TestInfo* info) {
     28   info->forward_threshold_ = FLOAT_RFFT_FORWARD_THRESHOLD_ARMV7;
     29   info->inverse_threshold_ = FLOAT_RFFT_INVERSE_THRESHOLD_ARMV7;
     30 }
     31 
     32 OMXResult ForwardRFFT(OMX_F32* x,
     33                       OMX_F32* y,
     34                       OMXFFTSpec_R_F32 *fft_fwd_spec) {
     35   return omxSP_FFTFwd_RToCCS_F32_Sfs_vfp(x, y, fft_fwd_spec);
     36 }
     37 
     38 OMXResult InverseRFFT(OMX_F32* y,
     39                       OMX_F32* z,
     40                       OMXFFTSpec_R_F32 *fft_inv_spec) {
     41   return omxSP_FFTInv_CCSToR_F32_Sfs_vfp(y, z, fft_inv_spec);
     42 }
     43