diff libtwamr/cbsearch.h @ 328:4614f1a97e1a

libtwamr: integrate cbsearch.c
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 18 Apr 2024 20:35:02 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libtwamr/cbsearch.h	Thu Apr 18 20:35:02 2024 +0000
@@ -0,0 +1,58 @@
+/*
+*****************************************************************************
+*
+*      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