📄 bspcamera.cpp
字号:
//------------------------------------------------------------------------------
//
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -