fusion/third_party/amrdecoder/interf_dec.h

87 lines
1.5 KiB
C
Raw Normal View History

2025-08-05 07:53:44 +00:00
/*
* ===================================================================
* TS 26.104
* REL-5 V5.4.0 2004-03
* REL-6 V6.1.0 2004-03
* 3GPP AMR Floating-point Speech Codec
* ===================================================================
*
*/
/*
* interf_dec.h
*
*
* Project:
* AMR Floating-Point Codec
*
* Contains:
* Defines interface to AMR decoder
*
*/
#ifndef _interf_dec_h_
#define _interf_dec_h_
/*
* Function prototypes
*/
/*
* Conversion from packed bitstream to endoded parameters
* Decoding parameters to speech
*/
/* Triple the code with different defines and names */
void GP3Decoder_Interface_Decode( void *st,
#if 1 /* ifndef ETSI */
unsigned char *bits,
#else
short *bits,
#endif
short *synth, int bfi );
void IF2Decoder_Interface_Decode( void *st,
#if 1 /* ifndef ETSI */
unsigned char *bits,
#else
short *bits,
#endif
short *synth, int bfi );
void ETSIDecoder_Interface_Decode( void *st,
#if 0 /* ifndef ETSI */
unsigned char *bits,
#else
short *bits,
#endif
short *synth, int bfi );
#ifdef ETSI
#define Decoder_Interface_Decode ETSIDecoder_Interface_Decode
#else
#ifdef IF2
#define Decoder_Interface_Decode IF2Decoder_Interface_Decode
#else
#define Decoder_Interface_Decode GP3Decoder_Interface_Decode
#endif
#endif
/*
* Reserve and init. memory
*/
void *Decoder_Interface_init( void );
/*
* Exit and free memory
*/
void Decoder_Interface_exit( void *state );
#endif