// Module:
//
// AVERAPI.H
//
// Abstract:
//
// Header file for AVERTVNT.DLL
//
/////////////////////////////////////////////////////////////////////////////
// AVERAPI.H
#ifdef __cplusplus
#ifdef _AVER32_
#define AVERAPI extern "C" __declspec(dllexport)
#else
#define AVERAPI extern "C" __declspec(dllimport)
#endif
#else
#ifdef _AVER32_
#define AVERAPI __declspec(dllexport)
#else
#define AVERAPI __declspec(dllimport)
#endif
#endif
#ifndef __VIDDEFS_H
#define __VIDDEFS_H
// Type: Connector
// Purpose: Defines a video source
typedef enum { ConError = 0, ConSVideo = 1, ConTuner = 2, ConComposite = 3, ConCamera = 4 } Connector;
// Type: VideoFormat for BT848, BT848A
// Purpose: Defines video format
typedef enum { VFormat_AutoDetect = 0,
VFormat_NTSC = 1,
VFormat_NTSC_J = 2,
VFormat_PAL_BDGHI = 3,
VFormat_PAL_M = 4,
VFormat_PAL_N = 5,
VFormat_SECAM = 6,
VFormat_PAL_NC = 7 } VideoFormat;
#endif // __VIDDEFS_H
#ifndef __COLFRMAT_H
#define __COLFRMAT_H
// Type: ColorFormat
// Purpose: Enumerates all possible color formats that BtPisces can produce
typedef enum
{ CF_RGB24 = 0, CF_RGB8 = 1 } ColFmt;
#endif // __COLFRMAT_H
#ifdef __cplusplus
extern "C"
{
#endif
class CDSControl;
CDSControl *m_lpDSControl;
int m_CurConn;
ColFmt m_CurCFmt;
RECT rcVideoWnd;
BOOL bIsSart = FALSE;
HWND hwndC;
BOOL bSave = FALSE;
BOOL bFreeze = FALSE;
BOOL bHasTmp = FALSE;
BOOL bGetBmp = FALSE;
char szGetBmp[255];
void ColorConvert();
AVERAPI BOOL WINAPI AVER_Init(HWND hwnd);
AVERAPI BOOL WINAPI AVER_Close();
AVERAPI BOOL WINAPI AVER_PaintOverlay(LPRECT lprect);
AVERAPI BOOL WINAPI AVER_PaintPreview(HDC hdc);
AVERAPI BOOL WINAPI AVER_StopOverlay(LPRECT lprect = NULL);
// Video source
AVERAPI int WINAPI AVER_GetVideoSource();
AVERAPI BOOL WINAPI AVER_SetVideoSource( int conn );
// Video system
AVERAPI int WINAPI AVER_GetVideoFormat();
AVERAPI BOOL WINAPI AVER_SetVideoFormat( int aFormat );
// Color adjustment
AVERAPI int WINAPI AVER_GetBrightness();
AVERAPI int WINAPI AVER_GetContrast();
AVERAPI int WINAPI AVER_GetHue();
AVERAPI int WINAPI AVER_GetSaturation();
AVERAPI BOOL WINAPI AVER_SetBrightness(int nValue);
AVERAPI BOOL WINAPI AVER_SetContrast(int nValue);
AVERAPI BOOL WINAPI AVER_SetHue(int nValue);
AVERAPI BOOL WINAPI AVER_SetSaturation(int nValue);
//Color Format
AVERAPI int WINAPI AVER_GetColorFormat();
AVERAPI BOOL WINAPI AVER_SetColorFormat(int m_ColFmt);
//Set Surface Configuration
//AVERAPI BOOL _cdecl AVER_SetSurface(BOOL bFlag);
AVERAPI BOOL WINAPI AVER_SaveBMPFile();
AVERAPI BOOL WINAPI AVER_CaptureSequence(LPSTR str);
AVERAPI BOOL WINAPI AVER_GetBMPFile(LPBITMAPINFOHEADER lpvBMI);
#ifdef __cplusplus
}
#endif