thrdecode.h

来自「g.726编解码源程序」· C头文件 代码 · 共 77 行

H
77
字号
/*
 *  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 + =
减小字号Ctrl + -
显示快捷键?