Home | History | Annotate | Download | only in source
      1 /*
      2  *  Copyright (c) 2011 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 #include "splitting_filter.h"
     12 #include "signal_processing_library.h"
     13 
     14 namespace webrtc {
     15 
     16 void SplittingFilterAnalysis(const WebRtc_Word16* in_data,
     17                              WebRtc_Word16* low_band,
     18                              WebRtc_Word16* high_band,
     19                              WebRtc_Word32* filter_state1,
     20                              WebRtc_Word32* filter_state2)
     21 {
     22     WebRtcSpl_AnalysisQMF(in_data, low_band, high_band, filter_state1, filter_state2);
     23 }
     24 
     25 void SplittingFilterSynthesis(const WebRtc_Word16* low_band,
     26                               const WebRtc_Word16* high_band,
     27                               WebRtc_Word16* out_data,
     28                               WebRtc_Word32* filt_state1,
     29                               WebRtc_Word32* filt_state2)
     30 {
     31     WebRtcSpl_SynthesisQMF(low_band, high_band, out_data, filt_state1, filt_state2);
     32 }
     33 }  // namespace webrtc
     34