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

Side by Side Diff: webrtc/modules/audio_coding/codecs/ilbc/simple_interpolate_lsf.c

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 4 months 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) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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 24 matching lines...) Expand all
35 int16_t *lsf, /* (i) the unquantized lsf coefficients Q13 */ 35 int16_t *lsf, /* (i) the unquantized lsf coefficients Q13 */
36 int16_t *lsfdeq, /* (i) the dequantized lsf coefficients Q13 */ 36 int16_t *lsfdeq, /* (i) the dequantized lsf coefficients Q13 */
37 int16_t *lsfold, /* (i) the unquantized lsf coefficients of 37 int16_t *lsfold, /* (i) the unquantized lsf coefficients of
38 the previous signal frame Q13 */ 38 the previous signal frame Q13 */
39 int16_t *lsfdeqold, /* (i) the dequantized lsf coefficients of the 39 int16_t *lsfdeqold, /* (i) the dequantized lsf coefficients of the
40 previous signal frame Q13 */ 40 previous signal frame Q13 */
41 int16_t length, /* (i) should equate FILTERORDER */ 41 int16_t length, /* (i) should equate FILTERORDER */
42 IlbcEncoder *iLBCenc_inst 42 IlbcEncoder *iLBCenc_inst
43 /* (i/o) the encoder state structure */ 43 /* (i/o) the encoder state structure */
44 ) { 44 ) {
45 int i, pos, lp_length; 45 size_t i;
46 int pos, lp_length;
46 47
47 int16_t *lsf2, *lsfdeq2; 48 int16_t *lsf2, *lsfdeq2;
48 /* Stack based */ 49 /* Stack based */
49 int16_t lp[LPC_FILTERORDER + 1]; 50 int16_t lp[LPC_FILTERORDER + 1];
50 51
51 lsf2 = lsf + length; 52 lsf2 = lsf + length;
52 lsfdeq2 = lsfdeq + length; 53 lsfdeq2 = lsfdeq + length;
53 lp_length = length + 1; 54 lp_length = length + 1;
54 55
55 if (iLBCenc_inst->mode==30) { 56 if (iLBCenc_inst->mode==30) {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 122
122 /* update memory */ 123 /* update memory */
123 124
124 WEBRTC_SPL_MEMCPY_W16(lsfold, lsf, length); 125 WEBRTC_SPL_MEMCPY_W16(lsfold, lsf, length);
125 WEBRTC_SPL_MEMCPY_W16(lsfdeqold, lsfdeq, length); 126 WEBRTC_SPL_MEMCPY_W16(lsfdeqold, lsfdeq, length);
126 127
127 } 128 }
128 129
129 return; 130 return;
130 } 131 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/codecs/ilbc/refiner.c ('k') | webrtc/modules/audio_coding/codecs/ilbc/simple_lpc_analysis.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698