| 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 28 matching lines...) Expand all Loading... |
| 39 #if OS(MACOSX) | 39 #if OS(MACOSX) |
| 40 #include <Accelerate/Accelerate.h> | 40 #include <Accelerate/Accelerate.h> |
| 41 #elif USE(WEBAUDIO_OPENMAX_DL_FFT) | 41 #elif USE(WEBAUDIO_OPENMAX_DL_FFT) |
| 42 #include <dl/sp/api/omxSP.h> | 42 #include <dl/sp/api/omxSP.h> |
| 43 #elif USE(WEBAUDIO_FFMPEG) | 43 #elif USE(WEBAUDIO_FFMPEG) |
| 44 struct RDFTContext; | 44 struct RDFTContext; |
| 45 #elif USE(WEBAUDIO_IPP) | 45 #elif USE(WEBAUDIO_IPP) |
| 46 #include <ipps.h> | 46 #include <ipps.h> |
| 47 #endif | 47 #endif |
| 48 | 48 |
| 49 #if ENABLE(WEB_AUDIO) | |
| 50 | |
| 51 namespace blink { | 49 namespace blink { |
| 52 | 50 |
| 53 // Defines the interface for an "FFT frame", an object which is able to perform
a forward | 51 // Defines the interface for an "FFT frame", an object which is able to perform
a forward |
| 54 // and reverse FFT, internally storing the resultant frequency-domain data. | 52 // and reverse FFT, internally storing the resultant frequency-domain data. |
| 55 | 53 |
| 56 class PLATFORM_EXPORT FFTFrame { | 54 class PLATFORM_EXPORT FFTFrame { |
| 57 USING_FAST_MALLOC(FFTFrame); | 55 USING_FAST_MALLOC(FFTFrame); |
| 58 public: | 56 public: |
| 59 // The constructors, destructor, and methods up to the CROSS-PLATFORM sectio
n have platform-dependent implementations. | 57 // The constructors, destructor, and methods up to the CROSS-PLATFORM sectio
n have platform-dependent implementations. |
| 60 | 58 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 #elif USE(WEBAUDIO_OPENMAX_DL_FFT) | 111 #elif USE(WEBAUDIO_OPENMAX_DL_FFT) |
| 114 static OMXFFTSpec_R_F32* contextForSize(unsigned log2FFTSize); | 112 static OMXFFTSpec_R_F32* contextForSize(unsigned log2FFTSize); |
| 115 OMXFFTSpec_R_F32* m_forwardContext; | 113 OMXFFTSpec_R_F32* m_forwardContext; |
| 116 OMXFFTSpec_R_F32* m_inverseContext; | 114 OMXFFTSpec_R_F32* m_inverseContext; |
| 117 AudioFloatArray m_complexData; | 115 AudioFloatArray m_complexData; |
| 118 #endif | 116 #endif |
| 119 }; | 117 }; |
| 120 | 118 |
| 121 } // namespace blink | 119 } // namespace blink |
| 122 | 120 |
| 123 #endif // ENABLE(WEB_AUDIO) | |
| 124 | |
| 125 #endif // FFTFrame_h | 121 #endif // FFTFrame_h |
| OLD | NEW |