omxsp_copy_s16.c

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

C
74
字号
/** *  * File Name:  omxSP_Copy_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 vector copy * */#include "omxtypes.h"#include "armOMX.h"#include "omxSP.h"#include "armCOMM.h"/** * Function:  omxSP_Copy_S16   (2.2.1.1.1) * * Description: * Copies the len elements of the vector pointed to by pSrcinto the len  * elements of the vector pointed to by pDst. That is:  *     pDst[i] = pSrc[i], for (i=0, 1, ..., len-1) * * Input Arguments: *    *   pSrc - pointer to the source vector  *   len - number of elements contained in the source and destination vectors  * * Output Arguments: *    *   pDst - pointer to the destination vector  * * Return Value: *     *    OMX_Sts_NoErr - no error  *    OMX_Sts_BadArgErr - bad arguments detected; returned if one or more of  *              the following is true:  *    -   pSrc or pDst is NULL  *    -   len < 0  * */OMXResult omxSP_Copy_S16(     const OMX_S16 * pSrc,     OMX_S16 * pDst,     OMX_INT len ){    OMX_INT i;    /* Argument Check */    armRetArgErrIf( pSrc == NULL, OMX_Sts_BadArgErr);    armRetArgErrIf( pDst == NULL, OMX_Sts_BadArgErr);    armRetArgErrIf( len < 0, OMX_Sts_BadArgErr);        /* Processing */        for (i = len; i > 0; i--)     {        *pDst++ = *pSrc++;    }    return OMX_Sts_NoErr;}/*End of File*/

⌨️ 快捷键说明

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