📄 omxicjp_dctquantfwd_s16.c
字号:
/** * * File Name: omxICJP_DCTQuantFwd_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 with quantization * */#include "omxtypes.h"#include "armOMX.h"#include "omxIC.h"#include "armIC.h"#include "armCOMM.h"/** * Function: omxICJP_DCTQuantFwd_S16 (5.1.3.2.2) * * Description: * Computes the forward DCT and quantizes the output coefficients for 8-bit * image data; processes a single 8x8 block. * * Input Arguments: * * pSrc - pointer to the input data block (8x8) buffer; 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: * * pDst - pointer to the output transform 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: pSrc, pDst, or * pQuantFwdTable. * */OMXResult omxICJP_DCTQuantFwd_S16( const OMX_S16* pSrc, OMX_S16 *pDst, const OMX_U16 *pQuantFwdTable ){ /* Argument Checks */ armRetArgErrIf( pSrc == NULL, OMX_Sts_BadArgErr) armRetArgErrIf( pDst == NULL, OMX_Sts_BadArgErr) armRetArgErrIf( pQuantFwdTable == NULL , OMX_Sts_BadArgErr) armRetArgErrIf( armNot8ByteAligned(pSrc) , OMX_Sts_BadArgErr) armRetArgErrIf( armNot8ByteAligned(pDst) , OMX_Sts_BadArgErr) armRetArgErrIf( armNot8ByteAligned(pQuantFwdTable), OMX_Sts_BadArgErr) /* Processing */ armICJP_DCTQuantFwd_S16(pSrc, pDst, pQuantFwdTable); return OMX_Sts_NoErr; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -