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 19 matching lines...) Expand all Loading... |
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 "core/platform/audio/FFTFrame.h" | 36 #include "core/platform/audio/FFTFrame.h" |
37 | 37 |
38 #include "core/platform/audio/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) |
49 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize))) | 49 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize))) |
50 , m_complexData(fftSize) | 50 , m_complexData(fftSize) |
(...skipping 129 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 |