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

📄 cellh263dec.c

📁 itdm642开发板视频编解码源程序.已经编译好
💻 C
字号:
/*
 *  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.
 *  
 */
 /*  ======== cellh263dec.c ========
 *
 */
#include <std.h>

#include <algrf.h>

#include "cellh263dec.h"

// v-table for this cell
ICELL_Fxns H263DEC_CELLFXNS = { 
    NULL,            // cellClose
    H263DEC_cellControl, // cellControl
    H263DEC_cellExecute, // cellExecute
    NULL             // cellOpen
};

/*
 *  ======== H263DEC_cellExecute ========
 *
 */
Bool H263DEC_cellExecute( ICELL_Handle handle, Arg arg )
{
    IH263DEC_Fxns  *h263decFxns   = (IH263DEC_Fxns *)handle->algFxns;
    IH263DEC_Handle h263decHandle = (IH263DEC_Handle)handle->algHandle;

    // activate instance object
    ALGRF_activate( handle->algHandle );
    
    h263decFxns->decode( h263decHandle,
                     (unsigned int *)handle->inputIcc[0]->buffer,
                     (unsigned char **)handle->outputIcc[0]->buffer );
        

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

    return ( TRUE );
}

/*
 *  ======== H263DEC_cellControl ========
 *
 */
Int  H263DEC_cellControl(ICELL_Handle handle, IALG_Cmd cmd, IALG_Status *status)
{
    Int rc = 0;
    IH263DEC_Fxns  *h263decFxns   = (IH263DEC_Fxns *)handle->algFxns;
    
    if( h263decFxns->ialg.algControl != NULL ) {
        rc = h263decFxns->ialg.algControl( handle->algHandle, cmd, status );
    }
    
    return rc;
}

⌨️ 快捷键说明

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