Home | History | Annotate | Download | only in signal_processing
      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 
     12 /*
     13  * This header file contains some internal resampling functions.
     14  *
     15  */
     16 
     17 #ifndef WEBRTC_SPL_RESAMPLE_BY_2_INTERNAL_H_
     18 #define WEBRTC_SPL_RESAMPLE_BY_2_INTERNAL_H_
     19 
     20 #include "typedefs.h"
     21 
     22 /*******************************************************************
     23  * resample_by_2_fast.c
     24  * Functions for internal use in the other resample functions
     25  ******************************************************************/
     26 void WebRtcSpl_DownBy2IntToShort(WebRtc_Word32 *in, WebRtc_Word32 len, WebRtc_Word16 *out,
     27                                  WebRtc_Word32 *state);
     28 
     29 void WebRtcSpl_DownBy2ShortToInt(const WebRtc_Word16 *in, WebRtc_Word32 len,
     30                                  WebRtc_Word32 *out, WebRtc_Word32 *state);
     31 
     32 void WebRtcSpl_UpBy2ShortToInt(const WebRtc_Word16 *in, WebRtc_Word32 len,
     33                                WebRtc_Word32 *out, WebRtc_Word32 *state);
     34 
     35 void WebRtcSpl_UpBy2IntToInt(const WebRtc_Word32 *in, WebRtc_Word32 len, WebRtc_Word32 *out,
     36                              WebRtc_Word32 *state);
     37 
     38 void WebRtcSpl_UpBy2IntToShort(const WebRtc_Word32 *in, WebRtc_Word32 len,
     39                                WebRtc_Word16 *out, WebRtc_Word32 *state);
     40 
     41 void WebRtcSpl_LPBy2ShortToInt(const WebRtc_Word16* in, WebRtc_Word32 len,
     42                                WebRtc_Word32* out, WebRtc_Word32* state);
     43 
     44 void WebRtcSpl_LPBy2IntToInt(const WebRtc_Word32* in, WebRtc_Word32 len, WebRtc_Word32* out,
     45                              WebRtc_Word32* state);
     46 
     47 #endif // WEBRTC_SPL_RESAMPLE_BY_2_INTERNAL_H_
     48