| OLD | NEW |
| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 // FFTFrame implementation using FFmpeg's RDFT algorithm, | 26 // FFTFrame implementation using FFmpeg's RDFT algorithm, |
| 27 // suitable for use on Windows and Linux. | 27 // suitable for use on Windows and Linux. |
| 28 | 28 |
| 29 #include "config.h" | 29 #include "config.h" |
| 30 | 30 |
| 31 #if ENABLE(WEB_AUDIO) | 31 #if ENABLE(WEB_AUDIO) |
| 32 | 32 |
| 33 #if USE(WEBAUDIO_FFMPEG) | 33 #if USE(WEBAUDIO_FFMPEG) |
| 34 | 34 |
| 35 #include "FFTFrame.h" | 35 #include "core/platform/audio/FFTFrame.h" |
| 36 | 36 |
| 37 #include "PlatformMemoryInstrumentation.h" | 37 #include "PlatformMemoryInstrumentation.h" |
| 38 #include "VectorMath.h" | 38 #include "core/platform/audio/VectorMath.h" |
| 39 | 39 |
| 40 extern "C" { | 40 extern "C" { |
| 41 #include <libavcodec/avfft.h> | 41 #include <libavcodec/avfft.h> |
| 42 } | 42 } |
| 43 | 43 |
| 44 #include <wtf/MathExtras.h> | 44 #include <wtf/MathExtras.h> |
| 45 | 45 |
| 46 namespace { | 46 namespace { |
| 47 | 47 |
| 48 struct FFTComplexProxy { | 48 struct FFTComplexProxy { |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 | 257 |
| 258 RDFTContext* context = av_rdft_init(pow2size, (RDFTransformType)trans); | 258 RDFTContext* context = av_rdft_init(pow2size, (RDFTransformType)trans); |
| 259 return context; | 259 return context; |
| 260 } | 260 } |
| 261 | 261 |
| 262 } // namespace WebCore | 262 } // namespace WebCore |
| 263 | 263 |
| 264 #endif // !OS(DARWIN) && USE(WEBAUDIO_FFMPEG) | 264 #endif // !OS(DARWIN) && USE(WEBAUDIO_FFMPEG) |
| 265 | 265 |
| 266 #endif // ENABLE(WEB_AUDIO) | 266 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |