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

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

Issue 1172163004: Reformat existing code. There should be no functional effects. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 WebRtcSpl_MemSetW16(iLBCdec_inst->hpimemy, 0, 4); 331 WebRtcSpl_MemSetW16(iLBCdec_inst->hpimemy, 0, 4);
332 WebRtcSpl_MemSetW16(iLBCdec_inst->hpimemx, 0, 2); 332 WebRtcSpl_MemSetW16(iLBCdec_inst->hpimemx, 0, 2);
333 333
334 /* Initialize filter memory by filtering through 2 lags */ 334 /* Initialize filter memory by filtering through 2 lags */
335 WEBRTC_SPL_MEMCPY_W16(&synt[-LPC_FILTERORDER], iLBCdec_inst->syntMem, 335 WEBRTC_SPL_MEMCPY_W16(&synt[-LPC_FILTERORDER], iLBCdec_inst->syntMem,
336 LPC_FILTERORDER); 336 LPC_FILTERORDER);
337 WebRtcSpl_FilterARFastQ12( 337 WebRtcSpl_FilterARFastQ12(
338 enh_bufPtr1, 338 enh_bufPtr1,
339 synt, 339 synt,
340 &iLBCdec_inst->old_syntdenum[ 340 &iLBCdec_inst->old_syntdenum[
341 (iLBCdec_inst->nsub-1)*(LPC_FILTERORDER+1 )], 341 (iLBCdec_inst->nsub-1)*(LPC_FILTERORDER+1)],
342 LPC_FILTERORDER+1, (int16_t)lag); 342 LPC_FILTERORDER+1, (int16_t)lag);
343 343
344 WEBRTC_SPL_MEMCPY_W16(&synt[-LPC_FILTERORDER], &synt[lag-LPC_FILTERORDER], 344 WEBRTC_SPL_MEMCPY_W16(&synt[-LPC_FILTERORDER], &synt[lag-LPC_FILTERORDER],
345 LPC_FILTERORDER); 345 LPC_FILTERORDER);
346 WebRtcIlbcfix_HpOutput(synt, (int16_t*)WebRtcIlbcfix_kHpOutCoefs, 346 WebRtcIlbcfix_HpOutput(synt, (int16_t*)WebRtcIlbcfix_kHpOutCoefs,
347 iLBCdec_inst->hpimemy, iLBCdec_inst->hpimemx, 347 iLBCdec_inst->hpimemy, iLBCdec_inst->hpimemx,
348 (int16_t)lag); 348 (int16_t)lag);
349 WebRtcSpl_FilterARFastQ12( 349 WebRtcSpl_FilterARFastQ12(
350 enh_bufPtr1, synt, 350 enh_bufPtr1, synt,
351 &iLBCdec_inst->old_syntdenum[ 351 &iLBCdec_inst->old_syntdenum[
352 (iLBCdec_inst->nsub-1)*(LPC_FILTERORDER+1 )], 352 (iLBCdec_inst->nsub-1)*(LPC_FILTERORDER+1)],
353 LPC_FILTERORDER+1, (int16_t)lag); 353 LPC_FILTERORDER+1, (int16_t)lag);
354 354
355 WEBRTC_SPL_MEMCPY_W16(iLBCdec_inst->syntMem, &synt[lag-LPC_FILTERORDER], 355 WEBRTC_SPL_MEMCPY_W16(iLBCdec_inst->syntMem, &synt[lag-LPC_FILTERORDER],
356 LPC_FILTERORDER); 356 LPC_FILTERORDER);
357 WebRtcIlbcfix_HpOutput(synt, (int16_t*)WebRtcIlbcfix_kHpOutCoefs, 357 WebRtcIlbcfix_HpOutput(synt, (int16_t*)WebRtcIlbcfix_kHpOutCoefs,
358 iLBCdec_inst->hpimemy, iLBCdec_inst->hpimemx, 358 iLBCdec_inst->hpimemy, iLBCdec_inst->hpimemx,
359 (int16_t)lag); 359 (int16_t)lag);
360 } 360 }
361 } 361 }
362 362
363 363
364 /* Perform enhancement block by block */ 364 /* Perform enhancement block by block */
365 365
366 for (iblock = 0; iblock<new_blocks; iblock++) { 366 for (iblock = 0; iblock<new_blocks; iblock++) {
367 WebRtcIlbcfix_Enhancer(out + iblock * ENH_BLOCKL, 367 WebRtcIlbcfix_Enhancer(out + iblock * ENH_BLOCKL,
368 enh_buf, 368 enh_buf,
369 ENH_BUFL, 369 ENH_BUFL,
370 (int16_t)(iblock * ENH_BLOCKL + startPos), 370 (int16_t)(iblock * ENH_BLOCKL + startPos),
371 enh_period, 371 enh_period,
372 (int16_t*)WebRtcIlbcfix_kEnhPlocs, ENH_NBLOCKS_TOT); 372 (int16_t*)WebRtcIlbcfix_kEnhPlocs, ENH_NBLOCKS_TOT);
373 } 373 }
374 374
375 return (lag); 375 return (lag);
376 } 376 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698