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/modules/audio_coding/codecs/cng/webrtc_cng.h" | 11 #include "webrtc/modules/audio_coding/codecs/cng/webrtc_cng.h" |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 | 14 |
| 15 #include "webrtc/base/safe_conversions.h" |
15 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" | 16 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" |
16 #include "webrtc/rtc_base/safe_conversions.h" | |
17 | 17 |
18 namespace webrtc { | 18 namespace webrtc { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 const size_t kCngMaxOutsizeOrder = 640; | 22 const size_t kCngMaxOutsizeOrder = 640; |
23 | 23 |
24 // TODO(ossu): Rename the left-over WebRtcCng according to style guide. | 24 // TODO(ossu): Rename the left-over WebRtcCng according to style guide. |
25 void WebRtcCng_K2a16(int16_t* k, int useOrder, int16_t* a); | 25 void WebRtcCng_K2a16(int16_t* k, int useOrder, int16_t* a); |
26 | 26 |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 anyptr = any; | 433 anyptr = any; |
434 for (i = 0; i < (m + 2); i++) { | 434 for (i = 0; i < (m + 2); i++) { |
435 *aptr++ = *anyptr++; | 435 *aptr++ = *anyptr++; |
436 } | 436 } |
437 } | 437 } |
438 } | 438 } |
439 | 439 |
440 } // namespace | 440 } // namespace |
441 | 441 |
442 } // namespace webrtc | 442 } // namespace webrtc |
OLD | NEW |