📄 thrdecode.h
字号:
/*
* Copyright 2002 by Texas Instruments Incorporated.
* All rights reserved. Property of Texas Instruments Incorporated.
* Restricted rights to use, duplicate or disclose this code are
* granted through contract.
*
*/
/* "@(#) RF3_UART_G726 1.00.00 07-18-02 (swat-c03)" */
/*
* ======== thrDecode.h ========
*
* Declaration of resources for thread Decode
*
* Thread Decode processes the audio data.
* This file exposes thread Decode's structure to all the modules that
* need it, as well as its functions.
*/
#include <pip.h>
#include <algrf.h> /* algorithm instance creation procedures */
#include "appResources.h" /* application-wide common info */
#include "appThreads.h" /* thread-wide common info */
#include "g726dec.h" /* interface for the G726 DEC algorithm */
#ifdef __cplusplus
extern "C" {
#endif
/*
* Here we define a structure that contains all the "private"
* thread information: algorithm handles, input pipe(s), output
* pipe(s), intermediate buffer(s), if any, and all the other
* information that encapsulates thread state.
*/
typedef struct ThrDecode {
/* algorithm(s) */
G726DEC_Handle algG726DEC; /* an instance of the G726 decoder algo */
/* input pipe(s) */
PIP_Handle pipIn;
/* output pipe(s) */
PIP_Handle pipOut;
/* intermediate buffer(s) */
Sample *bufInterm;
/* everything else that is private for a thread comes here */
} ThrDecode;
/*
* declaration of generic function tables for XDAIS algorithms;
* the link-edit file link.cmd will resolve this by binding
* the name to the actual implementation;
* for example, linker command file has a line:
* _G726DEC_IG726DEC = _G726DEC_TI_IG726DEC
*/
extern far IG726DEC_Fxns G726DEC_IG726DEC; /* G726DEC algorithm */
/*
* Declaration of "public" decoder functions
*/
/* init function, called from thrInit() */
extern Void thrDecodeInit( Void );
/* run function, called by the swiDecode SWI object */
extern Void thrDecodeRun( Void );
#ifdef __cplusplus
}
#endif /* extern "C" */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -