2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
11 /******************************************************************
13 iLBC Speech Coder ANSI-C Source Code
15 WebRtcIlbcfix_Smooth_odata.c
17 ******************************************************************/
20 #include "constants.h"
22 int32_t WebRtcIlbcfix_Smooth_odata(
34 odata[i]= (int16_t)((C * surround[i] + 1024) >> 11);
39 err = (psseq[i] - odata[i]) >> 3;
40 errs+=WEBRTC_SPL_MUL_16_16(err, err); /* errs in Q-6 */