📄 cellyuv2rgb.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.
*
*/
/* "@(#) RF5_IEK 2.00.02 12-11-02 (swat-c19)" */
/*
* ======== cellyuv2rgb.c ========
*/
#include <std.h>
#include <algrf.h>
#include <icell.h>
#include <utl.h>
#include "cellYuv2rgb.h"
// v-table for this cell
ICELL_Fxns YUV2RGB_CELLFXNS = {
NULL, // cellClose
NULL, // cellControl
YUV2RGB_cellExecute, // cellExecute
NULL // cellOpen
};
/*
* ======== YUV2RGB_cellExecute ========
*/
Bool YUV2RGB_cellExecute( ICELL_Handle handle, Arg arg )
{
IYUV2RGB_Fxns *yuv2rbgFxns = (IYUV2RGB_Fxns *)handle->algFxns;
IYUV2RGB_Handle yuv2rbgHandle = (IYUV2RGB_Handle)handle->algHandle;
// activate instance object
ALGRF_activate( handle->algHandle );
yuv2rbgFxns->convert(yuv2rbgHandle,
(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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -