📄 threncode.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)" */
/*
* ======== thrEncode.h ========
*
* Declaration of resources for thread Encode
*
* Thread Encode processes the audio data.
* This file exposes thread Encode'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 "g726enc.h" /* interface for the G726 ENC algorithm */
#ifdef __cplusplus
extern "C" {
#endif
/*
* Here we define a structure that contains all the "private" encoder
* 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 ThrEncode {
/* algorithm(s) */
G726ENC_Handle algG726ENC; /* an instance of the G726 encoder 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 */
} ThrEncode;
/*
* 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:
* _G726ENC_IG726ENC = _G726ENC_TI_IG726ENC
*/
extern far IG726ENC_Fxns G726ENC_IG726ENC; /* G726ENC algorithm */
/*
* Declaration of "public" encoder functions
*/
/* init function, called from thrInit() */
extern Void thrEncodeInit( Void );
/* run function, called by the swiEncode SWI object */
extern Void thrEncodeRun( Void );
#ifdef __cplusplus
}
#endif /* extern "C" */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -