⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cellg723de.c

📁 G723.1在DM642上的实现代码
💻 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)" */
/*
 *  ======== cellG723de.c ========
 *
 */
#include <std.h>
#include <xdas.h>

#include <algrf.h>

#include "cellG723de.h"

// v-table for this cell
ICELL_Fxns G723DE_CELLFXNS = { 
    NULL,            // cellClose
    G723DE_cellControl, // cellControl
    G723DE_cellExecute, // cellExecute
    NULL             // cellOpen
};

/*
 *  ======== G723DE_cellExecute ========
 *
 */
Bool G723DE_cellExecute( ICELL_Handle handle, Arg arg )
{
    IG723DE_Fxns  *g723deFxns   = (IG723DE_Fxns *)handle->algFxns;
    IG723DE_Handle g723deHandle = (IG723DE_Handle)handle->algHandle;
    
    // activate instance object
    ALGRF_activate( handle->algHandle );
    
    g723deFxns->apply( g723deHandle,
                     (XDAS_Int16 *)handle->inputIcc[0]->buffer,
                     (XDAS_Int16 *)handle->outputIcc[0]->buffer );
        
    // deactivate instance object
    ALGRF_deactivate( handle->algHandle );
    
    return ( TRUE );
}

/*
 *  ======== G723DE_cellControl ========
 *
 */
Int  G723DE_cellControl(ICELL_Handle handle, IALG_Cmd cmd, IALG_Status *status)
{
    Int rc = 0;
    IG723DE_Fxns  *g723deFxns   = (IG723DE_Fxns *)handle->algFxns;
    
    if( g723deFxns->ialg.algControl != NULL ) {
        rc = g723deFxns->ialg.algControl( handle->algHandle, cmd, status );
    }
    
    return rc;
}
/*Int  G723DE_cellControl(ICELL_Handle handle, IALG_Cmd cmd, IALG_Status *status)
{
    IG723DE_Fxns  *g723deFxns   = (IG723DE_Fxns *)handle->algFxns;
    IG723DE_Handle g723deHandle = (IG723DE_Handle)handle->algHandle;
    
    return ( g723deFxns->control( g723deHandle, 
             (IG723DE_Cmd) cmd, (IG723DE_Status *)status ) );
}*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -