interf_enc.h
资源名称:111.rar [点击查看]
上传用户:mony888
上传日期:2022-07-26
资源大小:1247k
文件大小:3k
源码类别:
Windows CE
开发平台:
Visual C++
- /*************************************************************************/
- /* */
- /* Copyright (c) 2000-2004 Linuos Design */
- /* 领驰设计中心 版权所有 2000-2004 */
- /* */
- /* PROPRIETARY RIGHTS of Linuos Design are involved in the subject */
- /* matter of this material. All manufacturing, reproduction, use, and */
- /* sales rights pertaining to this subject matter are governed by the */
- /* license agreement. The recipient of this software implicitly accepts */
- /* the terms of the license. */
- /* 本软件文档资料是领驰设计中心的资产,任何人士阅读和使用本资料必须获得 */
- /* 相应的书面授权,承担保密责任和接受相应的法律约束. */
- /* */
- /*************************************************************************/
- /*
- * ===================================================================
- * TS 26.104
- * REL-5 V5.4.0 2004-03
- * REL-6 V6.1.0 2004-03
- * 3GPP AMR Floating-point Speech Codec
- * ===================================================================
- *
- */
- /*
- * interf_enc.h
- *
- *
- * Project:
- * AMR Floating-Point Codec
- *
- * Contains:
- * Defines interface to AMR encoder
- *
- */
- #ifndef _interf_enc_h_
- #define _interf_enc_h_
- /*
- * include files
- */
- #include <windows.h>
- #define AMR_MAGIC_NUMBER "#!AMRn"
- /*
- * Declare structure types
- */
- /* Declaration transmitted frame types */
- enum TXFrameType { TX_SPEECH_GOOD = 0,
- TX_SID_FIRST,
- TX_SID_UPDATE,
- TX_NO_DATA,
- TX_SPEECH_DEGRADED,
- TX_SPEECH_BAD,
- TX_SID_BAD,
- TX_ONSET,
- TX_N_FRAMETYPES /* number of frame types */
- };
- /* Declaration of interface structure */
- typedef struct
- {
- INT16 sid_update_counter; /* Number of frames since last SID */
- INT16 sid_handover_debt; /* Number of extra SID_UPD frames to schedule */
- INT16 dtx;
- enum TXFrameType prev_ft; /* Type of the previous frame */
- void *encoderState; /* Points encoder state structure */
- } AMR_Encode_State;
- /*
- * Function prototypes
- */
- /*
- * Encodes one frame of speech
- * Returns packed octets
- */
- INT32 Encoder_Interface_Encode( void *st, enum Mode mode, INT16 *speech,UINT8 *serial, INT32 forceSpeech );
- /*
- #ifndef ETSI
- UINT8 *serial, / * max size 31 bytes * /
- #else
- INT16 *serial, / * size 500 bytes * /
- #endif
- INT16 forceSpeech ); / * use speech mode * /
- */
- /*
- * Reserve and init. memory
- */
- void *Encoder_Interface_init( INT32 dtx );
- /*
- * Exit and mcFree memory
- */
- void Encoder_Interface_exit( void *state );
- #endif