📄 sy1001.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<p><font color="#0000FF"><strong>AVer-PCImager SDK参考</strong></font></p>
<pre><font face="Courier New, Courier, mono">====================================
1. Architecture of AVer-PCImager SDK
====================================
+--------------+ +-------------+ +-------------+
| Visual Basic | | 32 bit C++ | | 16 bit C++ |
| Application | | Application | | Application |
+-------+------+ +------+------+ +------+------+
| | |
+-------+------+ | |
| Imager.OCX | | |
+-------+------+ | |
| | |
+-------+-------------------+------+ |
| AVER32.DLL | |
+-----------------+----------------+ |
| |
+-----------------+----------------+ |
| AVER16.DLL | |
+-----------------+----------------+ |
| |
+-----------------+-----------------------------+------+
| AVERPCI.DLL |
+---------------------------+--------------------------+
|
+------+------+
| VIC.DLL |
+-------------+
==============================
2. Register and use IMAGER.OCX
==============================
1. When you install AVer PCImager SDK, the install program will
register Imager.OCX automatically.
2. Open a Visual Basic project and choose project/components on menu.
Then click the [Browse] botton to browse the IMAGER.OCX file which
is contained within WINDOWS\SYSTEM subdirectory.
NOTE : 1. IMAGER.OCX does NOT support the direct-draw overlay mode.
2. IMAGER.OCX is a ActiveX control, so your windows95 system
must have installed Microsoft Internet Explorer 3.0 or newer
version.
========================================
3. PCImager Windows DLL Function Summary
========================================
Initialization Functions
AVER_Init
AVER_IsInit
AVER_Close
Input Color Format Functions
AVER_SetImage
AVER_GetImage
Input Video Format Functions
AVER_GetVideoFormat
AVER_SetVideoFormat
Color Control Functions
AVER_GetBrightness
AVER_GetContrast
AVER_GetHue
AVER_GetSaturation
AVER_SetBrightness
AVER_SetContrast
AVER_SetHue
AVER_SetSaturation
Color Key Functions
AVER_GetOverlayFlag
AVER_GetColorKey
AVER_SetColorKey
Input Video Source functions
AVER_GetVideoSource
AVER_SetVideoSource
Input S-Video functions
AVER_GetSVideo
AVER_SetSVideo
Paint windows functions
AVER_PaintOverlay
AVER_PaintPreview
AVER_StopOverlay
AVER_UpdateOverlay
AVER_PauseOverlay
AVER_ResumeOverlay
Capture with frame buferr functions
AVER_CaptureFrame
AVER_SaveBMPFile
AVER_GetBMPFile
AVER_SaveVariousFile
AVER_FillBuffer
AVER_GetPalette
=============================================
4. PCImager Windows DLL Functions Description
=============================================
Type define:
1. State: Off, On.
2. ColFmt: CF_RGB24, CF_RGB16, CF_RGB15, CF_RGB8, CF_YUV411, CF_YUV422, CF_Y8.
3. Connector: Source1, Source2 and Source3.
4. VideoFormat: VFormat_NTSC, VFormat_PAL_BGDKI, VFormat_PAL_M, VFormat_PAL_N and VFormat_SECAM.
BOOL FAR PASCAL _export AVER_Init(HWND,BOOL)
Parameters
HWND-window handel.
BOOL-attempt to overlay surface or not.
Return value
BOOL TRUE success, FALSE fail.
Description
This function initializes AVERPCI.DLL.
BOOL FAR PASCAL _export AVER_IsInit(void)
Parameters
None.
Return value
BOOL-TRUE initialized, FALSE not initialized.
Description
This function checks whether AVERPCI.DLL is initialized or not.
void FAR PASCAL _export AVER_Close(void)
Parameters
None.
Return value
None.
Description
This function closes AVERPCI.DLL.
BOOL FAR PASCAL _export AVER_SetColorFormat(ColFmt)
Parameters
ColFmt-Color Format (RGB24, RGB16, RGB8, YUV411 and YUV422).
Return value
BOOL-TRUE success, FALSE fail.
Description
This function sets the color format of the capture buffer.
ColFmt FAR PASCAL _export AVER_GetColorFormat(void)
Parameters
None.
Return value
ColFmt-Color Format.
Description
This function gets the color format of the capture buffer.
VideoFormat FAR PASCAL _export AVER_GetVideoFormat(void)
Parameters
None.
Return value
VideoFormat-(NTSC, PAL-BG, PAL-DK, PAL-I, PAL-M, PAL-N and SECAM).
Description
This function gets the current video format.
BOOL FAR PASCAL _export AVER_SetVideoFormat(VideoFormat)
Parameters
VideoFormat-(NTSC, PAL-BG, PAL-DK, PAL-I, PAL-M, PAL-N and SECAM).
Return value
BOOL-TRUE success, FALSE fail.
Description
This function sets the video format.
int FAR PASCAL _export AVER_GetBrightness(void)
Parameters
None.
Return value
Int-Brightness values (0-255).
Description
This function gets the brightness value.
int FAR PASCAL _export AVER_GetContrast(void)
Parameters
None.
Return value
Int-Contrast values (0-255).
Description
This function gets the contrast value.
int FAR PASCAL _export AVER_GetSaturation(void)
Parameters
None.
Return value
Int-Saturation values (0-255).
Description
This function gets the Saturation value.
int FAR PASCAL _export AVER_GetHue(void)
Parameters
None.
Return value
Int-Hue values (0-255).
Description
This function gets the hue value.
void FAR PASCAL _export AVER_SetContrast(int)
Parameters
Int-Contrast values (0-255).
Return value
None.
Description
This function sets the contrast value.
void FAR PASCAL _export AVER_SetBrightness(int)
Parameters
Int-Brightness values (0-255).
Return value
None.
Description
This function sets the brightness value.
void FAR PASCAL _export AVER_SetHue(int)
Parameters
Int-Hue values (0-255).
Return value
None.
Description
This function sets the hue value.
void FAR PASCAL _export AVER_SetSaturation(int)
Parameters
Int-Saturation values (0-255).
Return value
None.
Description
This function sets the saturation value.
BOOL FAR PASCAL _export AVER_GetOverlayFlag(void)
Parameters
None.
Return value
BOOL-TRUE overlay surface, FALSE primary surface.
Description
This function gets the surface flag.
COLORREF FAR PASCAL _export AVER_GetColorKey(void)
Parameters
None.
Return value
COLORREF-Color reference.
Description
This function gets the color key.
void FAR PASCAL _export AVER_SetColorKey(COLORREF)
Parameters
COLORREF-Color reference.
Return value
None.
Description
This function sets the color key.
Connector FAR PASCAL _export AVER_GetVideoSource(void)
Parameters
None.
Return value
Connector-(Source1, Source2 and Source3).
Description
This function gets the video source.
BOOL FAR PASCAL _export AVER_SetVideoSource(Connector)
Parameters
Connector(Source1, Source2 and Source3).
Return value
BOOL TRUE success, FALSE fail.
Description
This function sets the video source.
BOOL FAR PASCAL _export AVER_SetSVideo(State)
Parameters
State-Off, On.
Return value
BOOL-TRUE success, FALSE fail.
Description
This function sets the S-Video mode.
State FAR PASCAL _export AVER_GetSVideo(void)
Parameters
None.
Return value
State-Off, On.
Description
This function gets the S-Video mode.
BOOL FAR PASCAL _export AVER_PaintOverlay(LPRECT)
Parameters
LPRECT-window's Rect.
Return value
BOOL-TRUE-success, FALSE fail.
Description
This function Paints the overlay window.
BOOL FAR PASCAL _export AVER_PaintPreview(HDC,LPBYTE,BITMAPINFOHEADER)
Parameters
HDC-window's DC.
LPBYTE-bufffer pointer.
BITMAPINFOHEADER-buffer header.
Return value
BOOL-TRUE success, FALSE fail.
Description
This function sets the paint preview window.
BOOL FAR PASCAL _export AVER_StopOverlay(void)
Parameters
None.
Return value
BOOL-TRUE success, FALSE fail.
Description
This function stops the direct-draw surface.
BOOL FAR PASCAL _export AVER_UpdateOverlay(void)
Parameters
None.
Return value
BOOL-TRUE success, FALSE fail.
Description
This function updates the overlay window.
BOOL FAR PASCAL _export AVER_PauseOverlay(void)
Parameters
None.
Return value
BOOL-TRUE success, FALSE fail.
Description
This function pauses the overlay window.
BOOL FAR PASCAL _export AVER_ResumeOverlay(void)
Parameters
None.
Return value
BOOL-TRUE success, FALSE fail.
Description
This function resumes the overlay window.
BOOL FAR PASCAL _export AVER_CaptureFrame(LPBYTE,DWORD)
Parameters
LPBYTE-buffer pointer.
DWORD-buffer size.
Return value
BOOL-TRUE success, FALSE fail.
Description
This function captures the frame to buffer.
BOOL FAR PASCAL _export AVER_SaveBMPFile(LPBYTE,BITMAPINFOHEADER,LPSTR)
Parameters
LPBYTE-buffer pointer.
BITMAPINFOHEADER-buffer header.
LPSTR-save file name.
Return value
BOOL-TRUE success, FALSE fail.
Description
This function saves the buffer to a BMP file.
BOOL FAR PASCAL _export AVER_GetBMPFile(LPBYTE,LPBITMAPINFOHEADER,LPSTR)
Parameters
LPBYTE-buffer pointer.
LPBITMAPINFOHEADER-buffer header.
LPSTR-open file name.
Return value
BOOL-TRUE success, FALSE fail.
Description
This function gets a BMP file to buffer.
BOOL FAR PASCAL _export AVER_SaveVariousFile(LPBITMAPINFOHEADER,LPSTR)
Parameters
LPBITMAPINFOHEADER-buffer header.
LPSTR-save file name.
Return value
BOOL-TRUE success, FALSE fail.
Description
This function saves the buffer to different image file formats.
BOOL FAR PASCAL _export AVER_FillBuffer(LPBYTE,BITMAPINFOHEADER,RECT,LPBYTE)
Parameters
LPBYTE-dest buffer pointer.
BITMAPINFOHEADER-dest buffer header.
RECT-dest rect.
LPBYTE-src buffer pointer.
Return value
BOOL-TRUE success, FALSE fail.
Description
This function fills a dest buffer with src buffer.
void FAR PASCAL _export AVER_GetPalette(LPLOGPALETTE,WORD)
Parameters
LPLOGPALETTE-logpalette pointer.
WORD-size.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -