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 * This header file contains some internal resampling functions. 13 * 14 */ 15 16 #ifndef COMMON_AUDIO_SIGNAL_PROCESSING_RESAMPLE_BY_2_INTERNAL_H_ 17 #define COMMON_AUDIO_SIGNAL_PROCESSING_RESAMPLE_BY_2_INTERNAL_H_ 18 19 #include <stdint.h> 20 21 /******************************************************************* 22 * resample_by_2_fast.c 23 * Functions for internal use in the other resample functions 24 ******************************************************************/ 25 void WebRtcSpl_DownBy2IntToShort(int32_t* in, 26 int32_t len, 27 int16_t* out, 28 int32_t* state); 29 30 void WebRtcSpl_DownBy2ShortToInt(const int16_t* in, 31 int32_t len, 32 int32_t* out, 33 int32_t* state); 34 35 void WebRtcSpl_UpBy2ShortToInt(const int16_t* in, 36 int32_t len, 37 int32_t* out, 38 int32_t* state); 39 40 void WebRtcSpl_UpBy2IntToInt(const int32_t* in, 41 int32_t len, 42 int32_t* out, 43 int32_t* state); 44 45 void WebRtcSpl_UpBy2IntToShort(const int32_t* in, 46 int32_t len, 47 int16_t* out, 48 int32_t* state); 49 50 void WebRtcSpl_LPBy2ShortToInt(const int16_t* in, 51 int32_t len, 52 int32_t* out, 53 int32_t* state); 54 55 void WebRtcSpl_LPBy2IntToInt(const int32_t* in, 56 int32_t len, 57 int32_t* out, 58 int32_t* state); 59 60 #endif // COMMON_AUDIO_SIGNAL_PROCESSING_RESAMPLE_BY_2_INTERNAL_H_ 61