?? imager32.h
字號:
#ifndef __IMAGER32_H__
#define __IMAGER32_H__
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_InitHW(void);
// Purpose: Initialize Imager32.DLL.
// Parameter: none.
// Return: True if successful, False if fail.
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
void WINAPI PV_DeInitHW();
// Purpose: Close Imager32.DLL.
// Parameter: none.
// Return: Success if successful, False if fail.
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//ErrorCode WINAPI PV_SetImage ( ColFmt aFormat );
// Purpose: Set the color format of the capture buffer
// Parameter: aFormat - color format.
// Return: Success if successful, False if fail.
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//**int WINAPI PV_GetImageFormat ( ColFmt *aFormat );
// Purpose: Get the color format of the capture buffer
// Parameter: aFormat - color format.
// Return: .
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_SetVideoSource( short conn );
// Purpose: Set the video source
// Parameter: conn 0-AV1, 1-AV2, 2-SVIDEO
// Return: TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
short WINAPI PV_GetVideoSource(void);
// Purpose: Get the video source
// Parameter: None
// Return: -1 if fail. 0-AV1, 1-AV2, 2-SVIDEO
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_SetBrightness( int brightness );
// Purpose: Set the brightness value
// Parameter: Int-brightness values (0-255)
// Return: TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_GetBrightness( int * brightness );
// Purpose: Get the brightness value
// Parameter: Int-brightness values (0-255)
// Return: TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_SetContrast( int contrast );
// Purpose: Set the Contrast value
// Parameter: Int-contrast (0-255)
// Return: TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_GetContrast( int * contrast );
// Purpose: Get the Contrast value
// Parameter: Int-contrast (0-255)
// Return: TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_SetHue( int hue );
// Purpose: Set the Hue value
// Parameter: Int-Hue (0-255)
// Return: TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_GetHue( int * hue );
// Purpose: Get the Hue value
// Parameter: Int-hue (0-255)
// Return: TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_SetSaturation( int sat );
// Purpose: Set the Saturation value
// Parameter: Int-sat (0-255)
// Return: TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_GetSaturation( int * sat );
// Purpose: Get the Saturation value
// Parameter: Int-sat (0-255)
// Return: TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_SetVideoFormat(short vs);
// Purpose: Set the video format
// Parameter: vs 0 - VFormat_AutoDetect, 1 - VFormat_NTSC
// 2 - VFormat_NTSC_J, 3 - VFormat_PAL_BDGHI
// 4 - VFormat_PAL_M, 5 - VFormat_PAL_N
// 6 - VFormat_SECAM
// Return: TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
short WINAPI PV_GetVideoFormat(void);
// Purpose: Get the video format
// Parameter: None
// Return: -1 if fail.
// 0 - VFormat_AutoDetect, 1 - VFormat_NTSC
// 2 - VFormat_NTSC_J, 3 - VFormat_PAL_BDGHI
// 4 - VFormat_PAL_M, 5 - VFormat_PAL_N
// 6 - VFormat_SECAM
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_SaveJPG(LPCTSTR FileName);
// Purpose: JPG格式存儲
// Parameter: FileName: 文件名稱
// Remark: 在使用此函數前,須調用PV980DFG Freeze函數
// Return: True if Success.
// False if fail
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_DibToJPG(LPCTSTR FileName, HBITMAP hBitmap);
// Purpose: JPG格式存儲
// Parameter: FileName: 文件名稱
// hBitmap: 位圖
// Return: True if Success.
// False if fail
//////////////////////////////////////////////////////////////////////////////
#ifdef __cplusplus
}
#endif // __cplusplus
#endif // __IMAGER32_H__
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -