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

📄 omxsp_copy_s16.c

📁 The OpenMAX DL (Development Layer) APIs contain a comprehensive set of audio, video, signal processi
💻 C
字号:
/** *  * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -