www.pudn.com > try2LPR-1.0.rar > Cap.h


/* 
* Copyright (c) 2003, try2it.com 
* All rights reserved. 
* 
* This program is free software; you can redistribute it and/or modify it under 
* the terms of the GNU General Public License as published by the Free Software 
* Foundation; either version 2 of the License, or (at your option) any later 
* version. 
*  
* This program is distributed in the hope that it will be useful, but WITHOUT 
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 
* details. 
*  
* You should have received a copy of the GNU General Public License along with 
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple 
* Place - Suite 330, Boston, MA 02111-1307, USA. 
* 
* 文件名称:Cap.h 
* 文件标识:LPR-01-02 
* 摘要:牌照识别获取图像的接口定义 
* 
* 当前版本:1.0 
* 作者:try2it.com 
* 开始日期:2003年09月15日 
* 完成日期:2003年09月20日 
*/ 
#ifndef _CAP_H_ 
#define _CAP_H_ 
#ifdef  CAP_EXPORTS 
#define CAP_API __declspec(dllexport) 
#else 
#define CAP_API __declspec(dllimport) 
#endif 
#define CALLAGREEMENT	__stdcall 
 
#if (defined(__cplusplus) || defined(c_plusplus)) 
extern  "C" { 
#endif 
 
CAP_API int CALLAGREEMENT InitCapDll(HWND hWnd, WORD *Version); 
 
CAP_API int CALLAGREEMENT GetAVI(); 
 
CAP_API int CALLAGREEMENT GetImg(BYTE *Buffer, DWORD * dwBufferSize); 
 
CAP_API int CALLAGREEMENT SetCap(); 
 
 
int LoadBMP(LPCTSTR szFileName, BYTE *Buffer, DWORD * dwBufferSize); 
 
int LoadJPG(LPCTSTR szFileName, BYTE *Buffer, DWORD * dwBufferSize); 
 
#if (defined(__cplusplus) || defined(c_plusplus)) 
} 
#endif 
 
#endif /* _CAP_H_ */