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

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/fix/source/decode_plc.c

Issue 1172163004: Reformat existing code. There should be no functional effects. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 6 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 { 168 {
169 *A = 0; 169 *A = 0;
170 *B = WEBRTC_SPL_WORD16_MAX; 170 *B = WEBRTC_SPL_WORD16_MAX;
171 } 171 }
172 } 172 }
173 } 173 }
174 174
175 175
176 176
177 177
178 static void LinearResampler( int16_t *in, int16_t *out, int16_t lenIn, int16_t l enOut ) 178 static void LinearResampler(int16_t* in,
179 int16_t* out,
180 int16_t lenIn,
181 int16_t lenOut)
179 { 182 {
180 int32_t n = (lenIn - 1) * RESAMP_RES; 183 int32_t n = (lenIn - 1) * RESAMP_RES;
181 int16_t resOut, i, j, relativePos, diff; /* */ 184 int16_t resOut, i, j, relativePos, diff; /* */
182 uint16_t udiff; 185 uint16_t udiff;
183 186
184 if( lenIn == lenOut ) 187 if( lenIn == lenOut )
185 { 188 {
186 WEBRTC_SPL_MEMCPY_W16( out, in, lenIn ); 189 WEBRTC_SPL_MEMCPY_W16( out, in, lenIn );
187 return; 190 return;
188 } 191 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 out[i] = in[j] + (int16_t)(diff * relativePos >> RESAMP_RES_BIT); 226 out[i] = in[j] + (int16_t)(diff * relativePos >> RESAMP_RES_BIT);
224 } 227 }
225 } 228 }
226 } 229 }
227 } 230 }
228 231
229 232
230 233
231 234
232 235
233 int16_t WebRtcIsacfix_DecodePlcImpl(int16_t *signal_out16, 236 void WebRtcIsacfix_DecodePlcImpl(int16_t *signal_out16,
234 IsacFixDecoderInstance *ISACdec_obj, 237 IsacFixDecoderInstance *ISACdec_obj,
235 int16_t *current_framesamples ) 238 int16_t *current_framesamples )
236 { 239 {
237 int subframecnt; 240 int subframecnt;
238 int16_t len = 0;
239 241
240 int16_t* Vector_Word16_1; 242 int16_t* Vector_Word16_1;
241 int16_t Vector_Word16_Extended_1[FRAMESAMPLES_HALF + NOISE_FILTER_LEN]; 243 int16_t Vector_Word16_Extended_1[FRAMESAMPLES_HALF + NOISE_FILTER_LEN];
242 int16_t* Vector_Word16_2; 244 int16_t* Vector_Word16_2;
243 int16_t Vector_Word16_Extended_2[FRAMESAMPLES_HALF + NOISE_FILTER_LEN]; 245 int16_t Vector_Word16_Extended_2[FRAMESAMPLES_HALF + NOISE_FILTER_LEN];
244 246
245 int32_t Vector_Word32_1[FRAMESAMPLES_HALF]; 247 int32_t Vector_Word32_1[FRAMESAMPLES_HALF];
246 int32_t Vector_Word32_2[FRAMESAMPLES_HALF]; 248 int32_t Vector_Word32_2[FRAMESAMPLES_HALF];
247 249
248 int16_t lofilt_coefQ15[ORDERLO*SUBFRAMES]; //refl. coeffs 250 int16_t lofilt_coefQ15[ORDERLO*SUBFRAMES]; //refl. coeffs
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 Vector_Word16_1[k] = tmp_1; 792 Vector_Word16_1[k] = tmp_1;
791 Vector_Word16_2[k] = tmp_2; 793 Vector_Word16_2[k] = tmp_2;
792 } 794 }
793 795
794 796
795 WebRtcIsacfix_FilterAndCombine1(Vector_Word16_1, 797 WebRtcIsacfix_FilterAndCombine1(Vector_Word16_1,
796 Vector_Word16_2, signal_out16, &ISACdec_obj->p ostfiltbankstr_obj); 798 Vector_Word16_2, signal_out16, &ISACdec_obj->p ostfiltbankstr_obj);
797 799
798 (ISACdec_obj->plcstr_obj).used = PLC_WAS_USED; 800 (ISACdec_obj->plcstr_obj).used = PLC_WAS_USED;
799 *current_framesamples = 480; 801 *current_framesamples = 480;
800
801 return len;
802 } 802 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698