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

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

Issue 1230693002: Update audio code to use size_t more correctly, (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Review comments 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 16 matching lines...) Expand all
27 27
28 void WebRtcIlbcfix_DecoderInterpolateLsp( 28 void WebRtcIlbcfix_DecoderInterpolateLsp(
29 int16_t *syntdenum, /* (o) synthesis filter coefficients */ 29 int16_t *syntdenum, /* (o) synthesis filter coefficients */
30 int16_t *weightdenum, /* (o) weighting denumerator 30 int16_t *weightdenum, /* (o) weighting denumerator
31 coefficients */ 31 coefficients */
32 int16_t *lsfdeq, /* (i) dequantized lsf coefficients */ 32 int16_t *lsfdeq, /* (i) dequantized lsf coefficients */
33 int16_t length, /* (i) length of lsf coefficient vector */ 33 int16_t length, /* (i) length of lsf coefficient vector */
34 IlbcDecoder *iLBCdec_inst 34 IlbcDecoder *iLBCdec_inst
35 /* (i) the decoder state structure */ 35 /* (i) the decoder state structure */
36 ){ 36 ){
37 int i, pos, lp_length; 37 size_t i;
38 int pos, lp_length;
38 int16_t lp[LPC_FILTERORDER + 1], *lsfdeq2; 39 int16_t lp[LPC_FILTERORDER + 1], *lsfdeq2;
39 40
40 lsfdeq2 = lsfdeq + length; 41 lsfdeq2 = lsfdeq + length;
41 lp_length = length + 1; 42 lp_length = length + 1;
42 43
43 if (iLBCdec_inst->mode==30) { 44 if (iLBCdec_inst->mode==30) {
44 /* subframe 1: Interpolation between old and first LSF */ 45 /* subframe 1: Interpolation between old and first LSF */
45 46
46 WebRtcIlbcfix_LspInterpolate2PolyDec(lp, (*iLBCdec_inst).lsfdeqold, lsfdeq, 47 WebRtcIlbcfix_LspInterpolate2PolyDec(lp, (*iLBCdec_inst).lsfdeqold, lsfdeq,
47 WebRtcIlbcfix_kLsfWeight30ms[0], length ); 48 WebRtcIlbcfix_kLsfWeight30ms[0], length );
(...skipping 25 matching lines...) Expand all
73 } 74 }
74 75
75 /* update memory */ 76 /* update memory */
76 77
77 if (iLBCdec_inst->mode==30) { 78 if (iLBCdec_inst->mode==30) {
78 WEBRTC_SPL_MEMCPY_W16(iLBCdec_inst->lsfdeqold, lsfdeq2, length); 79 WEBRTC_SPL_MEMCPY_W16(iLBCdec_inst->lsfdeqold, lsfdeq2, length);
79 } else { 80 } else {
80 WEBRTC_SPL_MEMCPY_W16(iLBCdec_inst->lsfdeqold, lsfdeq, length); 81 WEBRTC_SPL_MEMCPY_W16(iLBCdec_inst->lsfdeqold, lsfdeq, length);
81 } 82 }
82 } 83 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/codecs/ilbc/decode_residual.c ('k') | webrtc/modules/audio_coding/codecs/ilbc/defines.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698