OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 |
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 * resample_fractional.c | 837 * resample_fractional.c |
838 * Functions for internal use in the other resample functions | 838 * Functions for internal use in the other resample functions |
839 * | 839 * |
840 * Includes the following resampling combinations | 840 * Includes the following resampling combinations |
841 * 48 kHz -> 32 kHz | 841 * 48 kHz -> 32 kHz |
842 * 32 kHz -> 24 kHz | 842 * 32 kHz -> 24 kHz |
843 * 44 kHz -> 32 kHz | 843 * 44 kHz -> 32 kHz |
844 * | 844 * |
845 ******************************************************************/ | 845 ******************************************************************/ |
846 | 846 |
847 void WebRtcSpl_Resample48khzTo32khz(const int32_t* In, int32_t* Out, | 847 void WebRtcSpl_Resample48khzTo32khz(const int32_t* In, int32_t* Out, int32_t K); |
848 int32_t K); | |
849 | 848 |
850 void WebRtcSpl_Resample32khzTo24khz(const int32_t* In, int32_t* Out, | 849 void WebRtcSpl_Resample32khzTo24khz(const int32_t* In, int32_t* Out, int32_t K); |
851 int32_t K); | |
852 | 850 |
853 void WebRtcSpl_Resample44khzTo32khz(const int32_t* In, int32_t* Out, | 851 void WebRtcSpl_Resample44khzTo32khz(const int32_t* In, int32_t* Out, int32_t K); |
854 int32_t K); | |
855 | 852 |
856 /******************************************************************* | 853 /******************************************************************* |
857 * resample_48khz.c | 854 * resample_48khz.c |
858 * | 855 * |
859 * Includes the following resampling combinations | 856 * Includes the following resampling combinations |
860 * 48 kHz -> 16 kHz | 857 * 48 kHz -> 16 kHz |
861 * 16 kHz -> 48 kHz | 858 * 16 kHz -> 48 kHz |
862 * 48 kHz -> 8 kHz | 859 * 48 kHz -> 8 kHz |
863 * 8 kHz -> 48 kHz | 860 * 8 kHz -> 48 kHz |
864 * | 861 * |
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1658 // This function multiply a 16-bit word by a 16-bit word, and accumulate this | 1655 // This function multiply a 16-bit word by a 16-bit word, and accumulate this |
1659 // value to a 32-bit integer. | 1656 // value to a 32-bit integer. |
1660 // | 1657 // |
1661 // Input: | 1658 // Input: |
1662 // - a : The value of the first 16-bit word. | 1659 // - a : The value of the first 16-bit word. |
1663 // - b : The value of the second 16-bit word. | 1660 // - b : The value of the second 16-bit word. |
1664 // - c : The value of an 32-bit integer. | 1661 // - c : The value of an 32-bit integer. |
1665 // | 1662 // |
1666 // Return Value: The value of a * b + c. | 1663 // Return Value: The value of a * b + c. |
1667 // | 1664 // |
OLD | NEW |