omxicjp_dctfwd_s16.c

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

C
77
字号
/** *  * File Name:  omxICJP_DCTFwd_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 FDCT * */#include "omxtypes.h"#include "armOMX.h"#include "armCOMM.h"#include "omxIC.h"#include "armIC.h"/** * Function:  omxICJP_DCTFwd_S16   (5.1.3.2.4) * * Description: * Performs an 8x8 block forward discrete cosine transform (DCT).  This  * function implements forward DCT for the 8-bit image data (packed into  * signed 16-bit).  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: *    *   pSrc - pointer to the input data block (8x8) buffer.  The data must be  *            arranged in raster scan order, and the buffer start address must  *            be 8-byte aligned.  The input components are bounded on the  *            interval [-128, 127].  * * Output Arguments: *    *   pDst - pointer to the output DCT coefficient block(8x8) buffer. This  *            start address must be 8-byte aligned. To achieve better  *            performance, the output 8x8 matrix is the transpose of the  *            explicit result. This transpose can be handled in later  *            processing stages (e.g. 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 the start address of a pointer  *              was not 8-byte aligned.  * */OMXResult omxICJP_DCTFwd_S16(     const OMX_S16* pSrc,     OMX_S16 *pDst ){    /* Argument Checks */    armRetArgErrIf( pSrc == NULL, OMX_Sts_BadArgErr)    armRetArgErrIf( pDst == NULL, OMX_Sts_BadArgErr)        armRetArgErrIf( armNot8ByteAligned(pSrc), OMX_Sts_BadArgErr)    armRetArgErrIf( armNot8ByteAligned(pDst), OMX_Sts_BadArgErr)        /* Processing */    armICJP_DCTQuantFwd_S16(pSrc, pDst, NULL);    return OMX_Sts_NoErr;}/*End of File*/

⌨️ 快捷键说明

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