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

📄 omxicjp_dctquantfwd_s16_i.c

📁 The OpenMAX DL (Development Layer) APIs contain a comprehensive set of audio, video, signal processi
💻 C
字号:
/** *  * File Name:  omxICJP_DCTQuantFwd_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 FDCT with quantization * */#include "omxtypes.h"#include "armOMX.h"#include "omxIC.h"#include "armCOMM.h"/** * Function:  omxICJP_DCTQuantFwd_S16_I   (5.1.3.2.3) * * Description: * Computes the forward DCT and quantizes the output coefficients for the  * 8-bit image data in-place; processes a single 8x8 block.  * * Input Arguments: *    *   pSrcDst - pointer to input data block (8x8) buffer for in-place  *            processing; must be arranged in raster scan order and 8-byte  *            aligned.  The input components should be bounded on the interval  *            [-128, 127].  *   pQuantFwdTable - pointer to the 64 entry quantization table generated  *            using DCTQuantFwdTableInit; must be aligned on an 8-byte  *            boundary.  * * Output Arguments: *    *   pSrcDst - pointer to the in-place output coefficient block (8x8) buffer;  *            must be 8-byte aligned.  The output 8x8 matrix is the transpose  *            of the explicit result; this transpose will be handled in  *            Huffman encoding.  * * 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 not 8-byte aligned: pSrcDst,  *              pQuantFwdTable.  * */ OMXResult omxICJP_DCTQuantFwd_S16_I(     OMX_S16* pSrcDst,     const OMX_U16 *pQuantFwdTable ){    OMXResult errorCode;    OMX_S16   tempBuffer[67]; /*3 elements for alignment consideration*/    OMX_S16   *pBuffer;    OMX_INT   i;        pBuffer = armAlignTo8Bytes(tempBuffer);        errorCode = omxICJP_DCTQuantFwd_S16((const OMX_S16 *)pSrcDst,pBuffer,                                                pQuantFwdTable);     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 + -