bspcamera.cpp

来自「IMX31开发板」· C++ 代码 · 共 85 行

CPP
85
字号
//------------------------------------------------------------------------------
//
//  Copyright (C) 2004-2006, Freescale Semiconductor, Inc. All Rights Reserved.
//  THIS SOURCE CODE, AND ITS USE AND DISTRIBUTION, IS SUBJECT TO THE TERMS
//  AND CONDITIONS OF THE APPLICABLE LICENSE AGREEMENT
//
//------------------------------------------------------------------------------
//
//  File:  bspcamera.c
//
//  Provides BSP-specific routines for use by the camera.
//
//------------------------------------------------------------------------------
#include <windows.h>
#include "bsp.h"
#include "cameradbg.h"


//------------------------------------------------------------------------------
// External Functions


//------------------------------------------------------------------------------
// External Variables


//------------------------------------------------------------------------------
// Defines 


//------------------------------------------------------------------------------
// Types


//------------------------------------------------------------------------------
// Global Variables
 


//------------------------------------------------------------------------------
// Local Variables
 

//------------------------------------------------------------------------------
// Local Functions


//-----------------------------------------------------------------------------
//
// Function:  BSPCameraMemCpy
//
// This function provides a mechanism for use of the Windows Mobile
// function CeSafeCopyMemory, a function which is not available in 
// Windows CE.  For Windows CE, there is not really a safe copy, rather
// just a normal memcpy.
//
// Parameters:
//      pDst
//          [out] Pointer to destination memory address for copy.
//
//      pSrc
//          [in] Pointer to source memory address for copy.
//
//      cbSize
//          [in] Size in bytes of data to copy from Src to Dst.
//
// Returns:
//      TRUE if success; FALSE if failure.
//
//-----------------------------------------------------------------------------
BOOL BSPCameraMemCpy(LPVOID pDst, LPCVOID pSrc, DWORD cbSize)
{
    BOOL retVal = TRUE;

#if defined(PLAT_WPC) || defined(PLAT_SMARTPHONE)
    if( !CeSafeCopyMemory( pDst, pSrc, cbSize ) )
    {
        retVal = FALSE;
    }
#else
    memcpy( pDst, pSrc, cbSize );
#endif

    return retVal;
}

⌨️ 快捷键说明

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