/*
*-----------------------------------------------------------------------------
* Name PCIH-32.H
* Purpose Device Driver Interface for Win32s, Windows95
* Image karte VIDEO-PCI-H
* Development Kit Microsoft Win32 SDK, Visual C++ 4.00
* Author Zhang Ce
* Date July/99
*
*
* Description
*
*
*-----------------------------------------------------------------------------
*/
/* By C++ language compiler */
#ifdef __cplusplus
extern "C" {
#endif
typedef DWORD HPCIH;
#define DISABLE FALSE
#define ENABLE TRUE
#define All8Bit 1
#define Limited8Bit 0
#define AD_BRIGHTNESS 0
#define AD_CONTRAST 1
#define AD_FREQUENCY 2
#define AD_CLAMPLEVEL 3
#define FIELD 1
#define FRAME 0
#define TopField 0
#define BottomField 1
#define BW_ALL 0
#define BW_MH 1
#define BW_ML 2
#define BW_NARROW 3
#define BW_CHANNEL1 0
#define BW_CHANNEL2 1
// TopField
#define HIGH 1
#define LOW 0
#define INTERLACE 0
#define NONINTERLACE 1
// Functions of PCIH device driver
HPCIH __stdcall BeginPCIH(int iImageDevice);
int __stdcall EndPCIH(HPCIH hpcih);
int __stdcall PCIHCapture(HPCIH hpcih, BOOL Enable);
int __stdcall PCIHCaptureToMem(HPCIH hpcih, DWORD MemAddr, DWORD MemSize,
WORD IntervVSyncs, BOOL bFrmMode, WORD Sum);
int __stdcall PCIHEnableOverlay(HPCIH hpcih, BOOL Enable);
int __stdcall PCIHReadFromMem(HPCIH hpcih, char *lpSourBuf, DWORD MemSize,
WORD Number, char *lpDestBuf);
int __stdcall PCIHReadSingnal(HPCIH hpcih, BYTE* byData);
int __stdcall PCIHSetADParam(HPCIH hpcih, BYTE Param, BYTE Value);
int __stdcall PCIHSetBandWidthMode(HPCIH hpcih, BYTE byMode);
int __stdcall PCIHSetDelay(HPCIH hpcih, WORD XDelay, WORD YDelay);
int __stdcall PCIHSetDCRestoreTime(HPCIH hpcih, BYTE byMode);
int __stdcall PCIHSetDCRestoreEnd(HPCIH hpcih, BYTE byPosit);
int __stdcall PCIHSetDispMode(HPCIH hpcih, BOOL Mode);
int __stdcall PCIHSetDispWindow(HPCIH hpcih, int Left, int Top,
int Width, int Height);
int __stdcall PCIHSetFreqScope(HPCIH hpcih, BOOL bMode);
int __stdcall PCIHSetHorScanStart(HPCIH hpcih, WORD wValue);
int __stdcall PCIHSetHorIntrevalWidth(HPCIH hpcih, WORD wValue);
int __stdcall PCIHSetHorNoiseSupr(HPCIH hpcih, WORD wHorPeriod);
int __stdcall PCIHSetInpVideoWindow(HPCIH hpcih, int Left, int Top,
int Width, int Height);
int __stdcall PCIHSetIntExtSingnal(HPCIH hpcih, BOOL bMode);
int __stdcall PCIHSetInterlace(HPCIH hpcih, BOOL bMode);
int __stdcall PCIHSetMask(HPCIH hpcih, BYTE Param, DWORD Address);
int __stdcall PCIHSetOutputMode(HPCIH hpcih, BYTE byMode);
int __stdcall PCIHSetSyncMode(HPCIH hpcih, BYTE byMode);
int __stdcall PCIHSetTopField(HPCIH hpcih, BYTE byMode);
int __stdcall PCIHSetVerScanStart(HPCIH hpcih, BYTE byValue);
int __stdcall PCIHSetVerSyncWidth(HPCIH hpcih, WORD wValue);
int __stdcall PCIHSnap(HPCIH hpcih);
int __stdcall PCIHWaitOddVSync(HPCIH hpcih);
int __stdcall PCIHWaitVSync(HPCIH hpcih);
int __stdcall PCIHWriteSingnal(HPCIH hpcih, BYTE byData);
int __stdcall ReadDispWindow(HDC hdc, int Left, int Top, int Width, int Height,
BYTE *lpDestBuf);
/* extren "C" { */
#ifdef __cplusplus
}
#endif