| 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 |
| 11 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" | 11 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" |
| 12 | 12 |
| 13 #include "webrtc/base/checks.h" | 13 #include "webrtc/rtc_base/checks.h" |
| 14 #include "webrtc/base/sanitizer.h" | 14 #include "webrtc/rtc_base/sanitizer.h" |
| 15 | 15 |
| 16 // TODO(Bjornv): Change the function parameter order to WebRTC code style. | 16 // TODO(Bjornv): Change the function parameter order to WebRTC code style. |
| 17 // C version of WebRtcSpl_DownsampleFast() for generic platforms. | 17 // C version of WebRtcSpl_DownsampleFast() for generic platforms. |
| 18 int WebRtcSpl_DownsampleFastC(const int16_t* data_in, | 18 int WebRtcSpl_DownsampleFastC(const int16_t* data_in, |
| 19 size_t data_in_length, | 19 size_t data_in_length, |
| 20 int16_t* data_out, | 20 int16_t* data_out, |
| 21 size_t data_out_length, | 21 size_t data_out_length, |
| 22 const int16_t* __restrict coefficients, | 22 const int16_t* __restrict coefficients, |
| 23 size_t coefficients_length, | 23 size_t coefficients_length, |
| 24 int factor, | 24 int factor, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 51 // Saturate and store the output. | 51 // Saturate and store the output. |
| 52 *data_out++ = WebRtcSpl_SatW32ToW16(out_s32); | 52 *data_out++ = WebRtcSpl_SatW32ToW16(out_s32); |
| 53 } | 53 } |
| 54 | 54 |
| 55 RTC_DCHECK_EQ(original_data_out + data_out_length, data_out); | 55 RTC_DCHECK_EQ(original_data_out + data_out_length, data_out); |
| 56 rtc_MsanCheckInitialized(original_data_out, sizeof(original_data_out[0]), | 56 rtc_MsanCheckInitialized(original_data_out, sizeof(original_data_out[0]), |
| 57 data_out_length); | 57 data_out_length); |
| 58 | 58 |
| 59 return 0; | 59 return 0; |
| 60 } | 60 } |
| OLD | NEW |