• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifndef WEBRTC_ARM_FFT_TEST_GENSIG_H_
12 #define WEBRTC_ARM_FFT_TEST_GENSIG_H_
13 
14 struct ComplexFloat {
15     float Re;
16     float Im;
17 };
18 
19 /*
20  * Returns the max allowed signal type, depending on whether the test
21  * signal is real or not
22  */
23 int MaxSignalType(int real_only);
24 
25 /*
26  * Generate a test signal and corresponding FFT.
27  */
28 void GenerateTestSignalAndFFT(struct ComplexFloat* x,
29                               struct ComplexFloat* fft,
30                               int size,
31                               int signal_type,
32                               float signal_value,
33                               int real_only);
34 
35 #endif
36