2011-07-07 08:21:25 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/******************************************************************
|
|
|
|
|
|
|
|
|
|
iLBC Speech Coder ANSI-C Source Code
|
|
|
|
|
|
|
|
|
|
WebRtcIlbcfix_AbsQuant.h
|
|
|
|
|
|
|
|
|
|
******************************************************************/
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#ifndef MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_ABS_QUANT_H_
|
|
|
|
|
#define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_ABS_QUANT_H_
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2020-12-18 22:25:57 -08:00
|
|
|
#include <stddef.h>
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
2018-02-01 15:11:41 +01:00
|
|
|
#include "modules/audio_coding/codecs/ilbc/defines.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------*
|
|
|
|
|
* predictive noise shaping encoding of scaled start state
|
|
|
|
|
* (subrutine for WebRtcIlbcfix_StateSearch)
|
|
|
|
|
*---------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
void WebRtcIlbcfix_AbsQuant(
|
2014-12-17 15:23:29 +00:00
|
|
|
IlbcEncoder* iLBCenc_inst,
|
2011-07-07 08:21:25 +00:00
|
|
|
/* (i) Encoder instance */
|
|
|
|
|
iLBC_bits* iLBC_encbits, /* (i/o) Encoded bits (outputs idxForMax
|
|
|
|
|
and idxVec, uses state_first as
|
|
|
|
|
input) */
|
2013-04-09 00:28:06 +00:00
|
|
|
int16_t* in, /* (i) vector to encode */
|
|
|
|
|
int16_t* weightDenum /* (i) denominator of synthesis filter */
|
2011-07-07 08:21:25 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
#endif
|