| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 #if USE_ACCELERATE_FFT | 40 #if USE_ACCELERATE_FFT |
| 41 #include <Accelerate/Accelerate.h> | 41 #include <Accelerate/Accelerate.h> |
| 42 #endif | 42 #endif |
| 43 | 43 |
| 44 #if !USE_ACCELERATE_FFT | 44 #if !USE_ACCELERATE_FFT |
| 45 | 45 |
| 46 #if USE(WEBAUDIO_MKL) | 46 #if USE(WEBAUDIO_MKL) |
| 47 #include "mkl_dfti.h" | 47 #include "mkl_dfti.h" |
| 48 #endif // USE(WEBAUDIO_MKL) | 48 #endif // USE(WEBAUDIO_MKL) |
| 49 | 49 |
| 50 #if USE(WEBAUDIO_GSTREAMER) | |
| 51 #include <glib.h> | |
| 52 G_BEGIN_DECLS | |
| 53 #include <gst/fft/gstfftf32.h> | |
| 54 G_END_DECLS | |
| 55 #endif // USE(WEBAUDIO_GSTREAMER) | |
| 56 | |
| 57 #if USE(WEBAUDIO_OPENMAX_DL_FFT) | 50 #if USE(WEBAUDIO_OPENMAX_DL_FFT) |
| 58 #include "dl/sp/api/armSP.h" | 51 #include "dl/sp/api/armSP.h" |
| 59 #include "dl/sp/api/omxSP.h" | 52 #include "dl/sp/api/omxSP.h" |
| 60 #elif USE(WEBAUDIO_FFMPEG) | 53 #elif USE(WEBAUDIO_FFMPEG) |
| 61 struct RDFTContext; | 54 struct RDFTContext; |
| 62 #endif | 55 #endif |
| 63 | 56 |
| 64 #endif // !USE_ACCELERATE_FFT | 57 #endif // !USE_ACCELERATE_FFT |
| 65 | 58 |
| 66 #if USE(WEBAUDIO_IPP) | 59 #if USE(WEBAUDIO_IPP) |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 148 |
| 156 RDFTContext* m_forwardContext; | 149 RDFTContext* m_forwardContext; |
| 157 RDFTContext* m_inverseContext; | 150 RDFTContext* m_inverseContext; |
| 158 | 151 |
| 159 float* getUpToDateComplexData(); | 152 float* getUpToDateComplexData(); |
| 160 AudioFloatArray m_complexData; | 153 AudioFloatArray m_complexData; |
| 161 AudioFloatArray m_realData; | 154 AudioFloatArray m_realData; |
| 162 AudioFloatArray m_imagData; | 155 AudioFloatArray m_imagData; |
| 163 #endif // USE(WEBAUDIO_FFMPEG) | 156 #endif // USE(WEBAUDIO_FFMPEG) |
| 164 | 157 |
| 165 #if USE(WEBAUDIO_GSTREAMER) | |
| 166 GstFFTF32* m_fft; | |
| 167 GstFFTF32* m_inverseFft; | |
| 168 GstFFTF32Complex* m_complexData; | |
| 169 AudioFloatArray m_realData; | |
| 170 AudioFloatArray m_imagData; | |
| 171 #endif // USE(WEBAUDIO_GSTREAMER) | |
| 172 | |
| 173 #if USE(WEBAUDIO_IPP) | 158 #if USE(WEBAUDIO_IPP) |
| 174 Ipp8u* m_buffer; | 159 Ipp8u* m_buffer; |
| 175 IppsDFTSpec_R_32f* m_DFTSpec; | 160 IppsDFTSpec_R_32f* m_DFTSpec; |
| 176 | 161 |
| 177 float* getUpToDateComplexData(); | 162 float* getUpToDateComplexData(); |
| 178 AudioFloatArray m_complexData; | 163 AudioFloatArray m_complexData; |
| 179 AudioFloatArray m_realData; | 164 AudioFloatArray m_realData; |
| 180 AudioFloatArray m_imagData; | 165 AudioFloatArray m_imagData; |
| 181 #endif // USE(WEBAUDIO_IPP) | 166 #endif // USE(WEBAUDIO_IPP) |
| 182 | 167 |
| 183 #if USE(WEBAUDIO_OPENMAX_DL_FFT) | 168 #if USE(WEBAUDIO_OPENMAX_DL_FFT) |
| 184 static OMXFFTSpec_R_F32* contextForSize(unsigned log2FFTSize); | 169 static OMXFFTSpec_R_F32* contextForSize(unsigned log2FFTSize); |
| 185 | 170 |
| 186 OMXFFTSpec_R_F32* m_forwardContext; | 171 OMXFFTSpec_R_F32* m_forwardContext; |
| 187 OMXFFTSpec_R_F32* m_inverseContext; | 172 OMXFFTSpec_R_F32* m_inverseContext; |
| 188 | 173 |
| 189 AudioFloatArray m_complexData; | 174 AudioFloatArray m_complexData; |
| 190 AudioFloatArray m_realData; | 175 AudioFloatArray m_realData; |
| 191 AudioFloatArray m_imagData; | 176 AudioFloatArray m_imagData; |
| 192 #endif | 177 #endif |
| 193 | 178 |
| 194 #endif // !USE_ACCELERATE_FFT | 179 #endif // !USE_ACCELERATE_FFT |
| 195 }; | 180 }; |
| 196 | 181 |
| 197 } // namespace WebCore | 182 } // namespace WebCore |
| 198 | 183 |
| 199 #endif // FFTFrame_h | 184 #endif // FFTFrame_h |
| OLD | NEW |