You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

43 lines
2.4 KiB

/*
decodeGains.h
Copyright (C) 2011 Belledonne Communications, Grenoble, France
Author : Johan Pascal
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef DECODEGAINS_H
#define DECODEGAINS_H
/* init function */
void initDecodeGains(bcg729DecoderChannelContextStruct *decoderChannelContext);
/*****************************************************************************/
/* decodeGains : decode adaptive and fixed codebooks gains as in spec 4.1.5 */
/* parameters: */
/* -(i/o) decoderChannelContext : the channel context data */
/* -(i) GA : parameter GA: Gain Codebook Stage 1 (3 bits) */
/* -(i) GB : paremeter GB: Gain Codebook Stage 2 (4 bits) */
/* -(i) fixedCodebookVector: 40 values current fixed Codebook vector */
/* in Q1.13. */
/* -(i) frameErasureFlag : set in case of frame erasure */
/* -(i/o) adaptativeCodebookGain : input previous/output current */
/* subframe Pitch Gain in Q14 */
/* -(i/o) fixedCodebookGain : input previous/output current Fixed */
/* Codebook Gain in Q1 */
/* */
/*****************************************************************************/
void decodeGains (bcg729DecoderChannelContextStruct *decoderChannelContext, uint16_t GA, uint16_t GB, word16_t *fixedCodebookVector, uint8_t frameErasureFlag,
word16_t *adaptativeCodebookGain, word16_t *fixedCodebookGain);
#endif /* ifndef DECODEGAINS_H */