| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 // FFTFrame implementation using Intel IPP's DFT algorithm, | 27 // FFTFrame implementation using Intel IPP's DFT algorithm, |
| 28 // suitable for use on Linux. | 28 // suitable for use on Linux. |
| 29 | 29 |
| 30 #include "config.h" | 30 #include "config.h" |
| 31 | 31 |
| 32 #if ENABLE(WEB_AUDIO) | 32 #if ENABLE(WEB_AUDIO) |
| 33 | 33 |
| 34 #if USE(WEBAUDIO_IPP) | 34 #if USE(WEBAUDIO_IPP) |
| 35 | 35 |
| 36 #include "FFTFrame.h" | 36 #include "core/platform/audio/FFTFrame.h" |
| 37 | 37 |
| 38 #include "VectorMath.h" | 38 #include "core/platform/audio/VectorMath.h" |
| 39 | 39 |
| 40 #include <wtf/MathExtras.h> | 40 #include <wtf/MathExtras.h> |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace WebCore { |
| 43 | 43 |
| 44 const unsigned maximumFFTPower2Size = 24; | 44 const unsigned maximumFFTPower2Size = 24; |
| 45 | 45 |
| 46 // Normal constructor: allocates for a given fftSize. | 46 // Normal constructor: allocates for a given fftSize. |
| 47 FFTFrame::FFTFrame(unsigned fftSize) | 47 FFTFrame::FFTFrame(unsigned fftSize) |
| 48 : m_FFTSize(fftSize) | 48 : m_FFTSize(fftSize) |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 ippsRealToCplx_32f(realP, imagP, complexP, len); | 180 ippsRealToCplx_32f(realP, imagP, complexP, len); |
| 181 | 181 |
| 182 return const_cast<float*>(m_complexData.data()); | 182 return const_cast<float*>(m_complexData.data()); |
| 183 } | 183 } |
| 184 | 184 |
| 185 } // namespace WebCore | 185 } // namespace WebCore |
| 186 | 186 |
| 187 #endif // USE(WEBAUDIO_IPP) | 187 #endif // USE(WEBAUDIO_IPP) |
| 188 | 188 |
| 189 #endif // ENABLE(WEB_AUDIO) | 189 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |