📄 caminc.hpp
字号:
/*******************************************************************************\
Copyright (C) 2001-2008, Vimicro Corporation ("VIMICRO")
VIMICRO USB CAMERA DRIVER FOR WINDOWS CE 3.0
--------------------------------------------------------------------------
+ This program has been developed by Vimicro Corporation. You have VIMICRO's
permission to incorporate this code into your product, royalty free.
+ VIMICRO specifically disclaims all warranties, express or implied, and all
liability, including consequential and other indirect damages, for the use
of this code, including liability for infringement of any proprietary
rights, and including the warranties of merchantability and fitness for a
particular purpose. VIMICRO does not assume any responsibility for any
errors which may appear in this code nor any responsibility to update it.
--------------------------------------------------------------------------
Component: CAMLINK / CAMPRP / CAMSRC / USBCAM
File: CAMINC.HPP
Author: Bob Lu <bob@vimicro.com> / <bob_lu@msn.com>
\*******************************************************************************/
#ifndef _CAMINC_HPP_
#define _CAMINC_HPP_
//
// CAMLINK APIs ---------------------------------------------------------------
//
#define CAMLINKAPI
#include "camio.hpp"
//------------------------------------------------------------------------------
CAMLINKAPI BOOL
CAMLINK_InitDevice(LPDWORD pdwCounts, LPDWORD pdwSlot);
//------------------------------------------------------------------------------
CAMLINKAPI BOOL
CAMLINK_StartDevice(DWORD dwSlot, WORD wBandWidth, WORD wSize);
//------------------------------------------------------------------------------
CAMLINKAPI BOOL
CAMLINK_SetProperty(DWORD dwSlot, PROPERTY Property, DWORD Value);
//------------------------------------------------------------------------------
CAMLINKAPI DWORD
CAMLINK_GetProperty(DWORD dwSlot, PROPERTY Property, DWORD Value);
//------------------------------------------------------------------------------
CAMLINKAPI DWORD
CAMLINK_GetRgb24Bits(DWORD dwSlot, LPBYTE pBits, WORD wWidth, WORD wHeight);
//------------------------------------------------------------------------------
CAMLINKAPI DWORD
CAMLINK_GetRgbBits(DWORD dwSlot, WORD wBitCount, LPBYTE pBits, WORD wWidth, WORD wHeight);
//------------------------------------------------------------------------------
CAMLINKAPI BOOL
CAMLINK_GetDIBFile(DWORD dwSlot, WORD wBitCount, WORD wWidth, WORD wHeight, LPCTSTR lpFileName);
//------------------------------------------------------------------------------
CAMLINKAPI BOOL
CAMLINK_StopDevice(DWORD dwSlot);
//------------------------------------------------------------------------------
CAMLINKAPI BOOL
CAMLINK_CloseDevice();
//------------------------------------------------------------------------------
CAMLINKAPI BOOL
CAMLINK_GetStillDIBFile(DWORD dwSlot, WORD wBandWidth, WORD wBitCount, WORD wSize, LPCTSTR lpFileName);
//------------------------------------------------------------------------------
CAMLINKAPI BOOL
CAMLINK_GetStillRgbBits(DWORD dwSlot, WORD wBandWidth, WORD wBitCount, WORD wSize, LPBYTE pBits);
//------------------------------------------------------------------------------
CAMLINKAPI DWORD
CAMLINK_GetYUVBits(DWORD dwSlot, LPBYTE pBits, WORD wWidth, WORD wHeight);
//------------------------------------------------------------------------------
CAMLINKAPI DWORD
CAMLINK_GetJPEGBits(DWORD dwSlot, LPBYTE pBits, WORD wWidth, WORD wHeight);
/*
//------------------------------------------------------------------------------
CAMLINKAPI DWORD
CAMLINK_Rgb24ToRgb565(LPBYTE pOutBuf, LPBYTE pInBuf, WORD wWidth, WORD wHeight);
//------------------------------------------------------------------------------
CAMLINKAPI DWORD
CAMLINK_Rgb565ToRgb24(LPBYTE pOutBuf, LPBYTE pInBuf, WORD wWidth, WORD wHeight);
*/
#endif // _CAMINC_HPP_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -