📄 cellg723en.c
字号:
/*
* Copyright 2003 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.
*
*/
/* "@(#) ReferenceFrameworks 2.10.00.11 04-30-03 (swat-d15)" */
/*
* ======== cellG723en.c ========
*
*/
#include <std.h>
#include <algrf.h>
#include "cellG723en.h"
// v-table for this cell
ICELL_Fxns G723EN_CELLFXNS = {
NULL, // cellClose
G723EN_cellControl, // cellControl
G723EN_cellExecute, // cellExecute
NULL // cellOpen
};
/*
* ======== G723EN_cellExecute ========
*
*/
Bool G723EN_cellExecute( ICELL_Handle handle, Arg arg )
{
IG723EN_Fxns *g723enFxns = (IG723EN_Fxns *)handle->algFxns;
IG723EN_Handle g723enHandle = (IG723EN_Handle)handle->algHandle;
// activate instance object
ALGRF_activate( handle->algHandle );
g723enFxns->apply( g723enHandle,
(Short *)handle->inputIcc[0]->buffer,
(Short *)handle->outputIcc[0]->buffer );
// deactivate instance object
ALGRF_deactivate( handle->algHandle );
return ( TRUE );
}
/*
* ======== G723EN_cellControl ========
*
*/
Int G723EN_cellControl(ICELL_Handle handle, IALG_Cmd cmd, IALG_Status *status)
{
Int rc = 0;
IG723EN_Fxns *g723enFxns = (IG723EN_Fxns *)handle->algFxns;
if( g723enFxns->ialg.algControl != NULL ) {
rc = g723enFxns->ialg.algControl( handle->algHandle, cmd, status );
}
return rc;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -