📄 cellmpeg2dec.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.
*
*/
/* ======== cellMpeg2enc.c ========
*
*/
#include <std.h>
#include <algrf.h>
#include "cellmpeg2dec.h"
#include "csl_cache.h"
#include "csl_irq.h"
#include "tsk.h"
#include "stdio.h"
// v-table for this cell
ICELL_Fxns MPEG2DEC_CELLFXNS = {
NULL, // cellClose
NULL, // cellControl
MPEG2DEC_cellExecute, // cellExecute
NULL // cellOpen
};
/*
* ======== MPEG2ENC_cellExecute ========
*
*/
Bool MPEG2DEC_cellExecute( ICELL_Handle handle, Arg arg )
{
IMPEG2VDEC_Fxns *mpeg2decFxns = (IMPEG2VDEC_Fxns *)handle->algFxns;
IMPEG2VDEC_Handle mpeg2decHandle = (IMPEG2VDEC_Handle)handle->algHandle;
unsigned int *in[4];
int h_share_mpeg2_rdbuf_size = 0x8000000;
in[2] = (int *) handle->inputIcc[0]->buffer ;
in[3] = &h_share_mpeg2_rdbuf_size;
mpeg2decFxns->ialg.algActivate((IALG_Handle)mpeg2decHandle);
CACHE_clean(CACHE_L2ALL, 0, 0);
mpeg2decFxns->decode( mpeg2decHandle,
( int **)in,
( int **)handle->outputIcc[0]->buffer);
CACHE_clean(CACHE_L2ALL, 0, 0);
mpeg2decFxns->ialg.algDeactivate((IALG_Handle)mpeg2decHandle);
return ( TRUE );
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -