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

Side by Side Diff: Source/platform/audio/android/FFTFrameOpenMAXDLAndroid.cpp

Issue 327323002: Start removing the double-negative !ASSERT_DISABLED (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/Supplementable.h ('k') | Source/platform/audio/ffmpeg/FFTFrameFFMPEG.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (C) 2013 Google Inc. All rights reserved. 1 /* Copyright (C) 2013 Google Inc. All rights reserved.
2 * 2 *
3 * Redistribution and use in source and binary forms, with or without 3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions 4 * modification, are permitted provided that the following conditions
5 * are met: 5 * are met:
6 * 6 *
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 19 matching lines...) Expand all
30 30
31 #include "platform/audio/FFTFrame.h" 31 #include "platform/audio/FFTFrame.h"
32 32
33 #include "platform/audio/AudioArray.h" 33 #include "platform/audio/AudioArray.h"
34 #include "wtf/MathExtras.h" 34 #include "wtf/MathExtras.h"
35 #include <dl/sp/api/armSP.h> 35 #include <dl/sp/api/armSP.h>
36 #include <dl/sp/api/omxSP.h> 36 #include <dl/sp/api/omxSP.h>
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 #if !ASSERT_DISABLED 40 #if ASSERT_ENABLED
41 const unsigned kMaxFFTPow2Size = 15; 41 const unsigned kMaxFFTPow2Size = 15;
42 #endif 42 #endif
43 43
44 // Normal constructor: allocates for a given fftSize. 44 // Normal constructor: allocates for a given fftSize.
45 FFTFrame::FFTFrame(unsigned fftSize) 45 FFTFrame::FFTFrame(unsigned fftSize)
46 : m_FFTSize(fftSize) 46 : m_FFTSize(fftSize)
47 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize))) 47 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize)))
48 , m_forwardContext(0) 48 , m_forwardContext(0)
49 , m_inverseContext(0) 49 , m_inverseContext(0)
50 , m_complexData(fftSize) 50 , m_complexData(fftSize)
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 } 178 }
179 179
180 return 0; 180 return 0;
181 } 181 }
182 182
183 } // namespace WebCore 183 } // namespace WebCore
184 184
185 #endif // #if OS(ANDROID) && !USE(WEBAUDIO_OPENMAX_DL_FFT) 185 #endif // #if OS(ANDROID) && !USE(WEBAUDIO_OPENMAX_DL_FFT)
186 186
187 #endif // ENABLE(WEB_AUDIO) 187 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/platform/Supplementable.h ('k') | Source/platform/audio/ffmpeg/FFTFrameFFMPEG.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698