omxicjp_dctquantinv_s16.c

来自「The OpenMAX DL (Development Layer) APIs 」· C语言 代码 · 共 79 行

C
79
字号
/** *  * File Name:  omxICJP_DCTQuantInv_S16.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 IDCT with de-quantization * */#include "omxtypes.h"#include "armOMX.h"#include "omxIC.h"#include "armIC.h"#include "armCOMM.h"/** * Function:  omxICJP_DCTQuantInv_S16   (5.1.3.3.2) * * Description: * Computes an inverse DCT and inverse quantization for 8-bit image data;  * processes one block (8x8).  * * Input Arguments: *    *   pSrc - pointer to the input coefficient block (8x8) buffer; 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: *    *   pDst - pointer to the 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: pSrc, pDst,  *              pQuantInvTable.  * */OMXResult omxICJP_DCTQuantInv_S16(     const OMX_S16 *pSrc,     OMX_S16 *pDst,     const OMX_U32 *pQuantInvTable ){    /* Argument Checks */    armRetArgErrIf( pSrc == NULL, OMX_Sts_BadArgErr)    armRetArgErrIf( pDst == NULL, OMX_Sts_BadArgErr)        armRetArgErrIf( pQuantInvTable == NULL            , OMX_Sts_BadArgErr)    armRetArgErrIf( armNot8ByteAligned(pSrc)          , OMX_Sts_BadArgErr)    armRetArgErrIf( armNot8ByteAligned(pDst)          , OMX_Sts_BadArgErr)    armRetArgErrIf( armNot8ByteAligned(pQuantInvTable), OMX_Sts_BadArgErr)    /* Processing */    armICJP_DCTQuantInv_S16(pSrc, pDst, pQuantInvTable);     return OMX_Sts_NoErr;}/*End of File*/

⌨️ 快捷键说明

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