Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: webrtc/modules/audio_coding/codecs/cng/webrtc_cng.cc

Issue 2534683002: RTC_[D]CHECK_op: Remove superfluous casts (Closed)
Patch Set: test Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 int acorrScale; 253 int acorrScale;
254 size_t index; 254 size_t index;
255 size_t ind, factor; 255 size_t ind, factor;
256 int32_t* bptr; 256 int32_t* bptr;
257 int32_t blo, bhi; 257 int32_t blo, bhi;
258 int16_t negate; 258 int16_t negate;
259 const int16_t* aptr; 259 const int16_t* aptr;
260 int16_t speechBuf[kCngMaxOutsizeOrder]; 260 int16_t speechBuf[kCngMaxOutsizeOrder];
261 261
262 const size_t num_samples = speech.size(); 262 const size_t num_samples = speech.size();
263 RTC_CHECK_LE(num_samples, static_cast<size_t>(kCngMaxOutsizeOrder)); 263 RTC_CHECK_LE(num_samples, kCngMaxOutsizeOrder);
264 264
265 for (i = 0; i < num_samples; i++) { 265 for (i = 0; i < num_samples; i++) {
266 speechBuf[i] = speech[i]; 266 speechBuf[i] = speech[i];
267 } 267 }
268 268
269 factor = num_samples; 269 factor = num_samples;
270 270
271 /* Calculate energy and a coefficients. */ 271 /* Calculate energy and a coefficients. */
272 outEnergy = WebRtcSpl_Energy(speechBuf, num_samples, &outShifts); 272 outEnergy = WebRtcSpl_Energy(speechBuf, num_samples, &outShifts);
273 while (outShifts > 0) { 273 while (outShifts > 0) {
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698