1 /* 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 // This header file defines the coefficients of the FIR based approximation of 12 // the Meyer Wavelet 13 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_TRANSIENT_DAUBECHIES_8_WAVELET_COEFFS_H_ 14 #define WEBRTC_MODULES_AUDIO_PROCESSING_TRANSIENT_DAUBECHIES_8_WAVELET_COEFFS_H_ 15 16 // Decomposition coefficients Daubechies 8. 17 18 namespace webrtc { 19 20 const int kDaubechies8CoefficientsLength = 16; 21 22 const float kDaubechies8HighPassCoefficients[kDaubechies8CoefficientsLength] 23 = { 24 -5.44158422430816093862e-02f, 25 3.12871590914465924627e-01f, 26 -6.75630736298012846142e-01f, 27 5.85354683654869090148e-01f, 28 1.58291052560238926228e-02f, 29 -2.84015542962428091389e-01f, 30 -4.72484573997972536787e-04f, 31 1.28747426620186011803e-01f, 32 1.73693010020221083600e-02f, 33 -4.40882539310647192377e-02f, 34 -1.39810279170155156436e-02f, 35 8.74609404701565465445e-03f, 36 4.87035299301066034600e-03f, 37 -3.91740372995977108837e-04f, 38 -6.75449405998556772109e-04f, 39 -1.17476784002281916305e-04f 40 }; 41 42 const float kDaubechies8LowPassCoefficients[kDaubechies8CoefficientsLength] = { 43 -1.17476784002281916305e-04f, 44 6.75449405998556772109e-04f, 45 -3.91740372995977108837e-04f, 46 -4.87035299301066034600e-03f, 47 8.74609404701565465445e-03f, 48 1.39810279170155156436e-02f, 49 -4.40882539310647192377e-02f, 50 -1.73693010020221083600e-02f, 51 1.28747426620186011803e-01f, 52 4.72484573997972536787e-04f, 53 -2.84015542962428091389e-01f, 54 -1.58291052560238926228e-02f, 55 5.85354683654869090148e-01f, 56 6.75630736298012846142e-01f, 57 3.12871590914465924627e-01f, 58 5.44158422430816093862e-02f 59 }; 60 61 } // namespace webrtc 62 63 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_TRANSIENT_DAUBECHIES_8_WAVELET_COEFFS_H_ 64