| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 #endif // USE(WEBAUDIO_MKL) | 271 #endif // USE(WEBAUDIO_MKL) |
| 272 | 272 |
| 273 #if USE(WEBAUDIO_FFMPEG) | 273 #if USE(WEBAUDIO_FFMPEG) |
| 274 info.addMember(m_forwardContext, "forwardContext"); | 274 info.addMember(m_forwardContext, "forwardContext"); |
| 275 info.addMember(m_inverseContext, "inverseContext"); | 275 info.addMember(m_inverseContext, "inverseContext"); |
| 276 info.addMember(m_complexData, "complexData"); | 276 info.addMember(m_complexData, "complexData"); |
| 277 info.addMember(m_realData, "realData"); | 277 info.addMember(m_realData, "realData"); |
| 278 info.addMember(m_imagData, "imagData"); | 278 info.addMember(m_imagData, "imagData"); |
| 279 #endif // USE(WEBAUDIO_FFMPEG) | 279 #endif // USE(WEBAUDIO_FFMPEG) |
| 280 | 280 |
| 281 #if USE(WEBAUDIO_GSTREAMER) | |
| 282 #ifndef GST_API_VERSION_1 | |
| 283 // The GstFFTF32 structure is exposed publicly in GStreamer 0.10 only. | |
| 284 info.addMember(m_fft, "fft"); | |
| 285 info.addMember(m_inverseFft, "inverseFft"); | |
| 286 #endif | |
| 287 info.addMember(m_complexData, "complexData"); | |
| 288 info.addMember(m_realData, "realData"); | |
| 289 info.addMember(m_imagData, "imagData"); | |
| 290 #endif // USE(WEBAUDIO_GSTREAMER) | |
| 291 | |
| 292 #if USE(WEBAUDIO_IPP) | 281 #if USE(WEBAUDIO_IPP) |
| 293 int size = 0; | 282 int size = 0; |
| 294 ippsDFTGetBufSize_R_32f(m_DFTSpec, &size); | 283 ippsDFTGetBufSize_R_32f(m_DFTSpec, &size); |
| 295 info.addRawBuffer(m_buffer, size * sizeof(Ipp8u), "buffer"); | 284 info.addRawBuffer(m_buffer, size * sizeof(Ipp8u), "buffer"); |
| 296 ippsDFTGetSize_R_32f(m_FFTSize, IPP_FFT_NODIV_BY_ANY, ippAlgHintFast, &size,
0, 0); | 285 ippsDFTGetSize_R_32f(m_FFTSize, IPP_FFT_NODIV_BY_ANY, ippAlgHintFast, &size,
0, 0); |
| 297 info.addRawBuffer(m_DFTSpec, size, "DFTSpec"); | 286 info.addRawBuffer(m_DFTSpec, size, "DFTSpec"); |
| 298 info.addMember(m_complexData, "complexData"); | 287 info.addMember(m_complexData, "complexData"); |
| 299 info.addMember(m_realData, "realData"); | 288 info.addMember(m_realData, "realData"); |
| 300 info.addMember(m_imagData, "imagData"); | 289 info.addMember(m_imagData, "imagData"); |
| 301 #endif // USE(WEBAUDIO_IPP) | 290 #endif // USE(WEBAUDIO_IPP) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 320 | 309 |
| 321 LOG(WebAudio, "[%d] (%f %f)\n", i, mag, phase); | 310 LOG(WebAudio, "[%d] (%f %f)\n", i, mag, phase); |
| 322 } | 311 } |
| 323 LOG(WebAudio, "****\n"); | 312 LOG(WebAudio, "****\n"); |
| 324 } | 313 } |
| 325 #endif // NDEBUG | 314 #endif // NDEBUG |
| 326 | 315 |
| 327 } // namespace WebCore | 316 } // namespace WebCore |
| 328 | 317 |
| 329 #endif // ENABLE(WEB_AUDIO) | 318 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |