mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-06 02:55:27 +00:00
749114b704
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12095 d0543943-73ff-0310-b7d9-9358b9ac24b2
35 lines
1.2 KiB
C
35 lines
1.2 KiB
C
/*
|
|
* iLBC - a library for the iLBC codec
|
|
*
|
|
* gainquant.h - The iLBC low bit rate speech codec.
|
|
*
|
|
* Adapted by Steve Underwood <steveu@coppice.org> from the reference
|
|
* iLBC code supplied in RFC3951.
|
|
*
|
|
* Original code Copyright (C) The Internet Society (2004).
|
|
* All changes to produce this version Copyright (C) 2008 by Steve Underwood
|
|
* All Rights Reserved.
|
|
*
|
|
* 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.
|
|
*
|
|
* $Id: gainquant.h,v 1.2 2008/03/06 12:27:38 steveu Exp $
|
|
*/
|
|
|
|
#ifndef __iLBC_GAINQUANT_H
|
|
#define __iLBC_GAINQUANT_H
|
|
|
|
float gainquant( /* (o) quantized gain value */
|
|
float in, /* (i) gain value */
|
|
float maxIn, /* (i) maximum of gain value */
|
|
int cblen, /* (i) number of quantization indices */
|
|
int *index); /* (o) quantization index */
|
|
|
|
float gaindequant( /* (o) quantized gain value */
|
|
int index, /* (i) quantization index */
|
|
float maxIn, /* (i) maximum of unquantized gain */
|
|
int cblen); /* (i) number of quantization indices */
|
|
|
|
#endif
|