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

📄 omxicjp_dctfwd_s16_i.c

📁 The OpenMAX DL (Development Layer) APIs contain a comprehensive set of audio, video, signal processi
💻 C
字号:
/** *  * File Name:  omxICJP_DCTFwd_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  * */#include "omxtypes.h"#include "armOMX.h"#include "armCOMM.h"#include "omxIC.h"/** * Function:  omxICJP_DCTFwd_S16_I   (5.1.3.2.5) * * Description: * This function implements forward DCT for the 8-bit image data (packed into  * signed 16-bit). It processes one block (8x8) in-place. The output matrix is  * the transpose of the explicit result.  As a result, the Huffman coding  * functions in this library handle transpose as well.  * * Input Arguments: *    *   pSrcDst - pointer to the input data block (8x8) buffer for in-place  *            processing.  The data must be arranged in raster scan order, and  *            the buffer base address must be 8-byte aligned.  The input  *            components are bounded on the interval [-128, 127] within a  *            16-bit container.  The output 8x8 matrix is the transpose of the  *            explicit result.  This transpose can be handled in later  *            processing stages (e.g. Huffman encoding).  * * Output Arguments: * * Return Value: *     *    OMX_Sts_NoErr - no error  *    OMX_Sts_BadArgErr - Bad arguments.  Returned for any of the following  *              conditions: a pointer was NULL pSrcDst was not 8-byte aligned.  * */OMXResult omxICJP_DCTFwd_S16_I(     OMX_S16* pSrc ){    OMXResult errorCode;    OMX_S16   tempBuffer[67]; /*3 dummy elements for alignment consideration*/    OMX_S16   *pBuffer;    OMX_INT   i;        pBuffer = armAlignTo8Bytes(tempBuffer);        errorCode = omxICJP_DCTFwd_S16((const OMX_S16 *)pSrc,pBuffer);                                                    armRetArgErrIf(errorCode != OMX_Sts_NoErr, errorCode);        for ( i = 0 ; i < 64 ; i++)    {        pSrc[i] = pBuffer[i];    }    return OMX_Sts_NoErr;}/*End of File*/

⌨️ 快捷键说明

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