cellprescale.c

来自「TI公司的算法标准 Framework5的源代码」· C语言 代码 · 共 52 行

C
52
字号
/*
 *  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.
 *  
 */
/* "@(#) RF5_IEK 2.00.02 12-11-02 (swat-c19)" */
/*
 *  ======== cellPrescale.c ========
 */                                          
#include <std.h>

#include <algrf.h>
#include <icell.h>
#include <utl.h>

#include "cellPrescale.h"

// v-table for this cell
ICELL_Fxns Prescale_CELLFXNS = { 
    NULL,                  // cellClose
    NULL,                  // cellControl
    Prescale_cellExecute,  // cellExecute
    NULL                   // cellOpen
};

/*
 *  ======== Prescale_cellExecute ========
 */
Bool Prescale_cellExecute( ICELL_Handle handle, Arg arg )
{       
    IPrescale_Fxns  *prescaleFxns   = (IPrescale_Fxns *)handle->algFxns;
    IPrescale_Handle prescaleHandle = (IPrescale_Handle)handle->algHandle;
    
    // activate instance object
    ALGRF_activate( handle->algHandle );

    prescaleFxns->apply(prescaleHandle,
                        (XDAS_Int8 **)handle->inputIcc[0]->buffer,  
                        (XDAS_Int8 **)handle->outputIcc[0]->buffer);


    // deactivate instance object
    ALGRF_deactivate( handle->algHandle );

    return ( TRUE );
}



⌨️ 快捷键说明

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