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 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1717 res = WebRtcIsac_Encode(ISACSWB_inst[k], &indata[noOfCalls * 320], | 1717 res = WebRtcIsac_Encode(ISACSWB_inst[k], &indata[noOfCalls * 320], |
1718 encoded); | 1718 encoded); |
1719 noOfCalls++; | 1719 noOfCalls++; |
1720 } | 1720 } |
1721 cdlen = static_cast<size_t>(res); | 1721 cdlen = static_cast<size_t>(res); |
1722 } | 1722 } |
1723 #endif | 1723 #endif |
1724 #ifdef CODEC_OPUS | 1724 #ifdef CODEC_OPUS |
1725 cdlen = WebRtcOpus_Encode(opus_inst[k], indata, frameLen, kRtpDataSize - 12, | 1725 cdlen = WebRtcOpus_Encode(opus_inst[k], indata, frameLen, kRtpDataSize - 12, |
1726 encoded); | 1726 encoded); |
1727 RTC_CHECK_GT(cdlen, 0u); | 1727 RTC_CHECK_GT(cdlen, 0); |
1728 #endif | 1728 #endif |
1729 indata += frameLen; | 1729 indata += frameLen; |
1730 encoded += cdlen; | 1730 encoded += cdlen; |
1731 totalLen += cdlen; | 1731 totalLen += cdlen; |
1732 | 1732 |
1733 } // end for | 1733 } // end for |
1734 | 1734 |
1735 first_cng = true; | 1735 first_cng = true; |
1736 return (totalLen); | 1736 return (totalLen); |
1737 } | 1737 } |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1876 memmove(ptrL + stride, ptrL, ptrR - ptrL); | 1876 memmove(ptrL + stride, ptrL, ptrR - ptrL); |
1877 | 1877 |
1878 // copy from temp to left pointer | 1878 // copy from temp to left pointer |
1879 memcpy(ptrL, temp, stride); | 1879 memcpy(ptrL, temp, stride); |
1880 | 1880 |
1881 // advance pointers | 1881 // advance pointers |
1882 ptrL += stride * 2; | 1882 ptrL += stride * 2; |
1883 ptrR += stride; | 1883 ptrR += stride; |
1884 } | 1884 } |
1885 } | 1885 } |
OLD | NEW |