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

📄 omxipbm_copy_u8_c1r.c

📁 The OpenMAX DL (Development Layer) APIs contain a comprehensive set of audio, video, signal processi
💻 C
字号:
/** * *  * File Name:  omxIPBM_Copy_U8_C1R.c * OpenMAX DL: v1.0.2 * Revision:   10586 * Date:       Wednesday, March 5, 2008 *  * (c) Copyright 2007-2008 ARM Limited. All Rights Reserved. *  *  * * Description  : Image initialization - Copying the image from a single channel source * */#include "omxtypes.h"#include "armCOMM.h"#include "armOMX.h"#include "omxIP.h"/** * Function:  omxIPBM_Copy_U8_C1R   (4.2.1.1.2) * * Description: * Copy pixel values from the ROI of the source image referenced by the  * pointer pSrc to the ROI of the destination image referenced by the pointer  * pDst. The source ROI should not overlap the destination ROI within the same  * image buffer.  * * Input Arguments: *    *   pSrc - pointer to the source ROI  *   srcStep - distance in bytes between the starts of consecutive lines in  *            the source image  *   dstStep - distance in bytes between the starts of consecutive lines in  *            the destination image  *   roiSize - size of the source and destination ROI in pixels  * * Output Arguments: *    *   pDst - pointer to the destination ROI  * * Return Value: *     *    OMX_Sts_NoErr - no errors detected  *    OMX_Sts_BadArgErr - bad arguments detected; at least one of the  *              following is true:  *    -   pSrc or pDst is NULL  *    -   srcStep or dstStep is less than or equal to zero  *    -   roiSize has a field with zero or negative value.  * */ OMXResult omxIPBM_Copy_U8_C1R(        const OMX_U8* pSrc,        OMX_INT srcStep,         OMX_U8* pDst,        OMX_INT dstStep,         OMXSize roiSize       ){    OMX_INT copyWidth   = roiSize.width;    OMX_INT copyHeight  = roiSize.height;    OMX_INT i, j;        armRetArgErrIf(!pSrc, OMX_Sts_BadArgErr);    armRetArgErrIf(!pDst, OMX_Sts_BadArgErr);    armRetArgErrIf(srcStep <= 0, OMX_Sts_BadArgErr);    armRetArgErrIf(dstStep <= 0, OMX_Sts_BadArgErr);    armRetArgErrIf(roiSize.width <= 0, OMX_Sts_BadArgErr);    armRetArgErrIf(roiSize.height <= 0, OMX_Sts_BadArgErr);        for(i=0; i<copyHeight; i++, pSrc+=srcStep, pDst+=dstStep)    {        for(j = 0; j < copyWidth; j++)        {            pDst[j] = pSrc[j];        }    }        return OMX_Sts_NoErr;}/* End of file */

⌨️ 快捷键说明

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