sp_dec.h
上传用户:dangjiwu
上传日期:2013-07-19
资源大小:42019k
文件大小:2k
- /*
- * ===================================================================
- * TS 26.104
- * R99 V3.4.0 2002-02
- * REL-4 V4.3.0 2002-02
- * 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