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

📄 omxicjp_dctquantinv_s16_i.c

📁 The OpenMAX DL (Development Layer) APIs contain a comprehensive set of audio, video, signal processi
💻 C
字号:
/** *  * File Name:  omxICJP_DCTQuantInv_S16_I.c * OpenMAX DL: v1.0.2 * Revision:   10586 * Date:       Wednesday, March 5, 2008 *  * (c) Copyright 2007-2008 ARM Limited. All Rights Reserved. *  *  * * Description: * This file contains module for inplace IDCT with de-quantization * */#include "omxtypes.h"#include "armOMX.h"#include "omxIC.h"#include "armCOMM.h"/** * Function:  omxICJP_DCTQuantInv_S16_I   (5.1.3.3.3) * * Description: * Computes an inverse DCT and inverse quantization for 8-bit image data;  * processes one block (8x8) in-place.  * * Input Arguments: *    *   pSrcDst - pointer to the input coefficient block/output pixel block  *            buffer (8x8) for in-place processing; must be arranged in raster  *            scan order and 8-byte aligned.  Buffer values should lie in the  *            range [-2040, 2040].  *   pQuantInvTable - pointer to the quantization table initialized using the  *            function DCTQuantInvTableInit. The table contains 64 entries and  *            the start address must be 8-byte aligned.  * * Output Arguments: *    *   pSrcDst - pointer to the in-place output pixel block(8x8) buffer; must  *            be 8-byte aligned.  * * Return Value: *     *    OMX_Sts_NoErr - no error  *    OMX_Sts_BadArgErr - Bad arguments. Returned for any of the following  *              conditions:  *    -    a pointer was NULL  *    -    one of the following pointers was not 8-byte aligned: pSrcDst,  *              pQuantInvTable.  * */OMXResult omxICJP_DCTQuantInv_S16_I(     OMX_S16* pSrcDst,     const OMX_U32 *pQuantInvTable ){    OMXResult errorCode;    OMX_S16   tempBuffer[67]; /*3 elements for alignment consideration*/    OMX_S16   *pBuffer;    OMX_INT   i;        pBuffer = armAlignTo8Bytes(tempBuffer);        errorCode = omxICJP_DCTQuantInv_S16((const OMX_S16 *)pSrcDst,pBuffer,                                                pQuantInvTable);     armRetArgErrIf(errorCode != OMX_Sts_NoErr, errorCode);        for ( i = 0 ; i < 64 ; i++)    {        pSrcDst[i] = pBuffer[i];    }    return OMX_Sts_NoErr;}/*End of File*/

⌨️ 快捷键说明

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