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

Side by Side Diff: Source/platform/audio/ffmpeg/FFTFrameFFMPEG.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 26 matching lines...) Expand all
37 #include "platform/audio/VectorMath.h" 37 #include "platform/audio/VectorMath.h"
38 38
39 extern "C" { 39 extern "C" {
40 #include <libavcodec/avfft.h> 40 #include <libavcodec/avfft.h>
41 } 41 }
42 42
43 #include "wtf/MathExtras.h" 43 #include "wtf/MathExtras.h"
44 44
45 namespace WebCore { 45 namespace WebCore {
46 46
47 #if !ASSERT_DISABLED 47 #if ASSERT_ENABLED
48 const int kMaxFFTPow2Size = 24; 48 const int kMaxFFTPow2Size = 24;
49 #endif 49 #endif
50 50
51 // Normal constructor: allocates for a given fftSize. 51 // Normal constructor: allocates for a given fftSize.
52 FFTFrame::FFTFrame(unsigned fftSize) 52 FFTFrame::FFTFrame(unsigned fftSize)
53 : m_FFTSize(fftSize) 53 : m_FFTSize(fftSize)
54 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize))) 54 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize)))
55 , m_forwardContext(0) 55 , m_forwardContext(0)
56 , m_inverseContext(0) 56 , m_inverseContext(0)
57 , m_complexData(fftSize) 57 , m_complexData(fftSize)
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 RDFTContext* context = av_rdft_init(pow2size, (RDFTransformType)trans); 183 RDFTContext* context = av_rdft_init(pow2size, (RDFTransformType)trans);
184 return context; 184 return context;
185 } 185 }
186 186
187 } // namespace WebCore 187 } // namespace WebCore
188 188
189 #endif // USE(WEBAUDIO_FFMPEG) 189 #endif // USE(WEBAUDIO_FFMPEG)
190 190
191 #endif // ENABLE(WEB_AUDIO) 191 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/platform/audio/android/FFTFrameOpenMAXDLAndroid.cpp ('k') | Source/platform/fonts/FontCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698