• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "webrtc/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(int32_t *in, int32_t len, int16_t *out,
27                                  int32_t *state);
28 
29 void WebRtcSpl_DownBy2ShortToInt(const int16_t *in, int32_t len,
30                                  int32_t *out, int32_t *state);
31 
32 void WebRtcSpl_UpBy2ShortToInt(const int16_t *in, int32_t len,
33                                int32_t *out, int32_t *state);
34 
35 void WebRtcSpl_UpBy2IntToInt(const int32_t *in, int32_t len, int32_t *out,
36                              int32_t *state);
37 
38 void WebRtcSpl_UpBy2IntToShort(const int32_t *in, int32_t len,
39                                int16_t *out, int32_t *state);
40 
41 void WebRtcSpl_LPBy2ShortToInt(const int16_t* in, int32_t len,
42                                int32_t* out, int32_t* state);
43 
44 void WebRtcSpl_LPBy2IntToInt(const int32_t* in, int32_t len, int32_t* out,
45                              int32_t* state);
46 
47 #endif // WEBRTC_SPL_RESAMPLE_BY_2_INTERNAL_H_
48