initial commit

This commit is contained in:
2025-08-05 15:53:44 +08:00
commit 09dc02ae52
553 changed files with 137665 additions and 0 deletions

1348
third_party/amrdecoder/interf_dec.c vendored Executable file

File diff suppressed because it is too large Load Diff

86
third_party/amrdecoder/interf_dec.h vendored Executable file
View File

@@ -0,0 +1,86 @@
/*
* ===================================================================
* 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

1804
third_party/amrdecoder/interf_rom.h vendored Executable file

File diff suppressed because it is too large Load Diff

13310
third_party/amrdecoder/rom_dec.h vendored Executable file

File diff suppressed because it is too large Load Diff

6127
third_party/amrdecoder/sp_dec.c vendored Executable file

File diff suppressed because it is too large Load Diff

81
third_party/amrdecoder/sp_dec.h vendored Executable file
View File

@@ -0,0 +1,81 @@
/*
* ===================================================================
* TS 26.104
* REL-5 V5.4.0 2004-03
* REL-6 V6.1.0 2004-03
* 3GPP AMR Floating-point Speech Codec
* ===================================================================
*
*/
/*
* sp_enc.h
*
*
* Project:
* AMR Floating-Point Codec
*
* Contains:
* Defines interface to AMR encoder
*
*/
#ifndef _SP_DEC_H_
#define _SP_DEC_H_
/*
* definition of enumerated types
*/
/*
* definition of modes for decoder
*/
enum Mode { MR475 = 0,
MR515,
MR59,
MR67,
MR74,
MR795,
MR102,
MR122,
MRDTX,
N_MODES /* number of (SPC) modes */
};
/* Declaration recieved frame types */
enum RXFrameType { RX_SPEECH_GOOD = 0,
RX_SPEECH_DEGRADED,
RX_ONSET,
RX_SPEECH_BAD,
RX_SID_FIRST,
RX_SID_UPDATE,
RX_SID_BAD,
RX_NO_DATA,
RX_N_FRAMETYPES /* number of frame types */
};
/*
* Function prototypes
*/
/*
* initialize one instance of the speech decoder
*/
void* Speech_Decode_Frame_init ();
/*
* free status struct
*/
void Speech_Decode_Frame_exit (void **st);
/*
* Decodes one frame from encoded parameters
*/
void Speech_Decode_Frame (void *st, enum Mode mode, short *serial,
enum RXFrameType frame_type, short *synth);
/*
* reset speech decoder
*/
int Speech_Decode_Frame_reset (void **st);
#endif

13
third_party/amrdecoder/typedef.h vendored Executable file
View File

@@ -0,0 +1,13 @@
#ifndef _TYPEDEF_H
#define _TYPEDEF_H
#include <stdint.h>
typedef int8_t Word8;
typedef uint8_t UWord8;
typedef int16_t Word16;
typedef uint16_t UWord16;
typedef int32_t Word32;
typedef double Float64;
typedef float Float32;
#endif