Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: Source/platform/audio/ipp/FFTFrameIPP.cpp

Issue 604753003: Removing #ifdefs for WEB_AUDIO compile time flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 11 matching lines...) Expand all
22 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
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)
33
34 #if USE(WEBAUDIO_IPP) 32 #if USE(WEBAUDIO_IPP)
35 33
36 #include "platform/audio/FFTFrame.h" 34 #include "platform/audio/FFTFrame.h"
37 35
38 #include "wtf/MathExtras.h" 36 #include "wtf/MathExtras.h"
39 37
40 namespace blink { 38 namespace blink {
41 39
42 const unsigned maximumFFTPower2Size = 24; 40 const unsigned maximumFFTPower2Size = 24;
43 41
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 Ipp32f* imagP = m_imagData.data(); 130 Ipp32f* imagP = m_imagData.data();
133 Ipp32fc* complexP = reinterpret_cast<Ipp32fc*>(m_complexData.data()); 131 Ipp32fc* complexP = reinterpret_cast<Ipp32fc*>(m_complexData.data());
134 ippsRealToCplx_32f(realP, imagP, complexP, len); 132 ippsRealToCplx_32f(realP, imagP, complexP, len);
135 133
136 return const_cast<float*>(m_complexData.data()); 134 return const_cast<float*>(m_complexData.data());
137 } 135 }
138 136
139 } // namespace blink 137 } // namespace blink
140 138
141 #endif // USE(WEBAUDIO_IPP) 139 #endif // USE(WEBAUDIO_IPP)
142
143 #endif // ENABLE(WEB_AUDIO)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698