FreeCalypso > hg > gsm-codec-lib
view libtwamr/cbsearch.h @ 471:b5f8ea41362b
gsmrec-dump: report DHF matches
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 14 May 2024 07:25:06 +0000 |
parents | 4614f1a97e1a |
children |
line wrap: on
line source
/* ***************************************************************************** * * GSM AMR-NB speech codec R98 Version 7.6.0 December 12, 2001 * R99 Version 3.3.0 * REL-4 Version 4.1.0 * ***************************************************************************** * * File : cbsearch.h * Purpose : Inovative codebook search (find index and gain) * ***************************************************************************** */ #ifndef cbsearch_h #define cbsearch_h "$Id $" /* ***************************************************************************** * INCLUDE FILES ***************************************************************************** */ #include "tw_amr.h" #include "typedef.h" /* ***************************************************************************** * LOCAL VARIABLES AND TABLES ***************************************************************************** */ /* ***************************************************************************** * DEFINITION OF DATA TYPES ***************************************************************************** */ /* ***************************************************************************** * PUBLIC PROGRAM CODE ***************************************************************************** */ int cbsearch(Word16 x[], /* i : target vector, Q0 */ Word16 h[], /* i : impulse response of weighted synthesis */ /* filter h[-L_subfr..-1] must be set to */ /* zero. Q12 */ Word16 T0, /* i : Pitch lag */ Word16 pitch_sharp, /* i : Last quantized pitch gain, Q14 */ Word16 gain_pit,/* i : Pitch gain, Q14 */ Word16 res2[], /* i : Long term prediction residual, Q0 */ Word16 code[], /* o : Innovative codebook, Q13 */ Word16 y[], /* o : filtered fixed codebook excitation, Q12 */ Word16 **anap, /* o : Signs of the pulses */ enum Mode mode, /* i : coder mode */ Word16 subNr) /* i : subframe number */ ; #endif