OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 | 11 |
12 /* | 12 /* |
13 * This header file contains some internal resampling functions. | 13 * This header file contains some internal resampling functions. |
14 * | 14 * |
15 */ | 15 */ |
16 | 16 |
17 #ifndef WEBRTC_SPL_RESAMPLE_BY_2_INTERNAL_H_ | 17 #ifndef WEBRTC_COMMON_AUDIO_SIGNAL_PROCESSING_RESAMPLE_BY_2_INTERNAL_H_ |
18 #define WEBRTC_SPL_RESAMPLE_BY_2_INTERNAL_H_ | 18 #define WEBRTC_COMMON_AUDIO_SIGNAL_PROCESSING_RESAMPLE_BY_2_INTERNAL_H_ |
19 | 19 |
20 #include "webrtc/typedefs.h" | 20 #include "webrtc/typedefs.h" |
21 | 21 |
22 /******************************************************************* | 22 /******************************************************************* |
23 * resample_by_2_fast.c | 23 * resample_by_2_fast.c |
24 * Functions for internal use in the other resample functions | 24 * Functions for internal use in the other resample functions |
25 ******************************************************************/ | 25 ******************************************************************/ |
26 void WebRtcSpl_DownBy2IntToShort(int32_t *in, int32_t len, int16_t *out, | 26 void WebRtcSpl_DownBy2IntToShort(int32_t *in, int32_t len, int16_t *out, |
27 int32_t *state); | 27 int32_t *state); |
28 | 28 |
29 void WebRtcSpl_DownBy2ShortToInt(const int16_t *in, int32_t len, | 29 void WebRtcSpl_DownBy2ShortToInt(const int16_t *in, int32_t len, |
30 int32_t *out, int32_t *state); | 30 int32_t *out, int32_t *state); |
31 | 31 |
32 void WebRtcSpl_UpBy2ShortToInt(const int16_t *in, int32_t len, | 32 void WebRtcSpl_UpBy2ShortToInt(const int16_t *in, int32_t len, |
33 int32_t *out, int32_t *state); | 33 int32_t *out, int32_t *state); |
34 | 34 |
35 void WebRtcSpl_UpBy2IntToInt(const int32_t *in, int32_t len, int32_t *out, | 35 void WebRtcSpl_UpBy2IntToInt(const int32_t *in, int32_t len, int32_t *out, |
36 int32_t *state); | 36 int32_t *state); |
37 | 37 |
38 void WebRtcSpl_UpBy2IntToShort(const int32_t *in, int32_t len, | 38 void WebRtcSpl_UpBy2IntToShort(const int32_t *in, int32_t len, |
39 int16_t *out, int32_t *state); | 39 int16_t *out, int32_t *state); |
40 | 40 |
41 void WebRtcSpl_LPBy2ShortToInt(const int16_t* in, int32_t len, | 41 void WebRtcSpl_LPBy2ShortToInt(const int16_t* in, int32_t len, |
42 int32_t* out, int32_t* state); | 42 int32_t* out, int32_t* state); |
43 | 43 |
44 void WebRtcSpl_LPBy2IntToInt(const int32_t* in, int32_t len, int32_t* out, | 44 void WebRtcSpl_LPBy2IntToInt(const int32_t* in, int32_t len, int32_t* out, |
45 int32_t* state); | 45 int32_t* state); |
46 | 46 |
47 #endif // WEBRTC_SPL_RESAMPLE_BY_2_INTERNAL_H_ | 47 #endif // WEBRTC_COMMON_AUDIO_SIGNAL_PROCESSING_RESAMPLE_BY_2_INTERNAL_H_ |
OLD | NEW |