Home
0 IVC-4200 User Manual Version 1.2
Contents
1. boolean nID id of device Check if the device with specified IsDeviceExisting long nID must less than id exists device count boolean CreateDevice long nID id of device Create device with specified id nID OLE HANDLE hOwner hOwner window The owner window will receive handle of owner the window message from device window driver void DestroyDevice Destroy created device OLE_HANDLE Get window handle of owner GetOwnerWnd window boolean Start Start to output video stream void Stop Stop outputting video stream void ShowConfigDlg Display configuration dialog This method can t be called while device is running boolean IsStarted Check if device is running OLE_HANDLE Get video render window GetRenderWna void ResetDevice Reset device Destroy current device then create it again Use this function if device has trouble in output video stream boolean Snapshot BSTR Filename Assign Take a snapshot bitmap to a file Filename snapshot file path boolean StartRecord Start to record video stream to file void StopRecord Stop recording long GetRecordState To determine what recording action is allowed Return value 1 None of recording action is allowed O Ready for start recording 1 Stop recording action is allowed long GetVideoSignalState Check video signal state Return value 0 signal lost 1 signal normal 1 undetermined long hOwnerWnd Use this meth
2. IpszFilename set recording file path 47 Return TRUE successful FALSE failed Function BOOL IsRecFileSpecified HANDLE hDev Description Check if record file path has been specified Parameter hDev Device handle returned by CreateDevice Return TRUE recording file path has been set FALSE recording file path is not set Function BOOL GetRecFilename HANDLE hDev LPTSTR IpBuffer DWORD pcbSize Description Get current recording file path Parameter hDev Device handle returned by CreateDevice IpBuffer Pointer to a buffer to receive the return recording file path string pcbSize Input size of buffer that pointed by IpBuffer If IpBuffer is too small a proper size is put in buffer pointed by pcbSize Return TRUE successful FALSE failed If failed check the value of the address pointed by pcbSize If it is larger than zero please re allocate buffer with enough space and pass it again to this function to get file path name 48 Function BOOL SetPlayLevelOnRec HANDLE hDev int nIndex Description Set quality level of live video while recording started Parameter hDev Device handle returned by CreateDevice nindex can be one of following value IVC4200 PQR NONE Stop previewing IVC4200 PQR DEGRADE grade down the quality of live video to improve the quality of recorded video when CPU usage is high IVC4200 PQR KEEP QUALITY Do not change the quality of live vide
3. IpBuffer Buffer to store pre set snapshot file path pcbSize size of buffer pointed by IpBuffer Return TRUE successful FALSE failed Function BOOL SetPreview HANDLE hDev BOOL bValue Description Set whether show preview window or not while device generating streaming data Parameter 32 hDev Device handle returned by CreateDevice bValue TRUE means enabled preview FALSE means disable Return TRUE successful FALSE failed Function BOOL IsPreviewing HANDLE hDev Description Check if preview was set Parameter hDev Device handle returned by CreateDevice Return TRUE Preview is enabled FALSE preview is disabled Function BOOL SetOnScreenDisplay HANDLE hDev BOOL bValue Description Show or hide on screen display OSD information Parameter hDev Device handle returned by CreateDevice bValue TRUE means OSD is visible FALSE means hide OSD Return TRUE successful FALSE failed Note Only IVC4200_SFC_PRV_AVI format file contains the OSD information 33 Function BOOL IsOnScreenDisplay HANDLE hDev Description Check if OSD was set Parameter hDev Device handle returned by CreateDevice Return TRUE OSD is on FALSE OSD is off Function BOOL SetOSDText HANDLE hDev LPCTSTR IpszText Description Set OSD text Parameter hDev Device handle returned by CreateDevice IpszText user defined text shown on OSD Return
4. Playback Choice define IVC4200 PC I DBDR Reserved define IVC4200 PC IP define IVC4200 PC IP DB define IVC4200 PC IP DBDR define IVC4200 PC IPB define IVC4200 PC IPB DB define IVC4200 PC IPB DBDR Playback quality on recording define IVC4200 PQR NONE define IVC4200 PQR DEGRADE define IVC4200 PQR KEEP QUALITY Video system type define IVC4200 VST NTSC define IVC4200 VST PAL B define IVC4200 VST SECAM define IVC4200 VST NTSC 443 define IVC4200 VST PAL M define IVC4200 VST PAL CN define IVC4200 VST PAL 60 Video render mode Only for preview define 1VC4200_RM_RGB define 1VC4200_RM_YUV Video signal state define IVC4200 VSS LOSS define IVC4200 VSS SIGNAL define IVC4200 VSS UNKNOWN Status code define IVC4200_ SCODE_NOTCREATED define IVC4200 SCODE READY define IVC4200 SCODE RUNNING define IVC4200 SCODE DEVICENOTEXIST define IVC4200 SCODE INITFILELOST 22 nu bu N e QU A U NBEO define IVC4200_SCODE_SENSORFI LELOST define IVC4200_SCODE_INITSENSORFAIL define IVC4200_SCODE_INITDEVFAIL define IVC4200_ SCODE_INVDEVICE define IVC4200_SCODE_BOOTUPFAIL define IVC4200_SCODE_REGDEVNOTI FYERROR Driver event notification type define IVC4200 DRVEVENT_UNKNOWERROR define IVC4200 DRVEVENT_REPORTTS define IVC4200_ DRVEVENT_SNAPSHOT define 1IVC4200 DRVEVENT_FATALERROR define IVC4200 DRVEVENT_DEVICEREMOVED define IVC4200 DRVEVENT TIMEOUT define IVC4200 DRVE
5. restarted automatically 9 Log on to the system again The Found New Hardware dialog will appear again Click Next to install the driver for the IVC 4200 card Welcome to the Found New Hardware Wizard has rme helos you rotal a dewce d haope cavea start LOG I Fonden raros weed rod New Hardware 10 Install Hardware Device Drivers dialog will appear click Next to proceed Install Hada Deve Divers A dence Gee c a sofware pogam Mat enable a hatOmaie Gente to wath oF Om ag syste Tha woard vel compete the retalshor for ths cence A dence cove a a sofware progam that makes a harcdmare deca work Windows needs Diver Mes for you new device To locate diver thes and complete he raros cick Nex What do pou want the wand to do 7 Sa ch tor a sustatie dive tox my devc ecommencdec C Duciap a kit of te now Given for tet devce s that can choose a spect are Aat DEZA Faundhew Hardware wio Found New tarde 10 11 You will be asked to locate the device driver be sure to select Specify a location before click the Next button Found Sew Hardware Wizard E Locate Driver Fdes tuti Oo po vira lion 10 aaach Por re ees Search tor diver fies for the tolicoesng hardware devor gt USB Devos The wizard searches for suitable Givers in tz diver databace on your computar and n any Of the lodosang ephonal reach lncahone that you mec To start the march cack Nest ll you are searchin
6. Control Object IVC 4200 SDK also provides an ActiveX Control IVC4200SDKAtx ocx which has wrapped SDK library function in it Description CLSID 9C07D0E5 8D88 4D78 B038 DDD792FDFB18 Program ID 1VC4200SDKATX IVC4200SDKAtxCtrl 1 File Description IVC4200SDKAtx ActiveX Control Module e Type Library name 1VC42005DK ActiveX Control module Type library id 2054F663 2DBD 416C 951C 3F59CDF8516E Component feature list Properties Name Range Note BSTR VendorName This string is the key name for Windows registry BSTR SnapshotFile Specify file path for snapshot Note If the file exists the picture data will be saved to a file with filename that appends a number behind boolean Preview Turn on off live video boolean OnScreenDisplay Indicates if you want some text is shown on video window Note The OSD information only embedded in video file with WIS MPEG4 format boolean UseOSDTime Indicates if a time stamp should be displayed on OSD Note this property only works while OnScreenDisplay is true long Resolution 0 3 Specify the resolution of video 0 720 X 480 D1 stream 1 640 X 480 VGA 2 352 X 240 CIF 3 176 X 112 QCIF long FrameRateType 0 2 Specify the frame rate control 0 Keep original type 1 Adptive 2 User defined long SpecFrameRate 3 30 Specify a user defined frame rate boolean CBREnabled True CBR Indicate whether use CBR or False VBR VBR
7. TRUE successful FALSE failed Function BOOL SetUseOSDTime HANDLE hDev BOOL bValue Description Determine whether show time stamp on OSD or not Parameter hDev Device handle returned by CreateDevice bValue If true current time is shown on OSD otherwise OSD is without time info Return 34 TRUE successful FALSE failed Function BOOL GetUseOSDTime HANDLE hDev Description Check if time stamp was shown or not Parameter hDev Device handle returned by CreateDevice Return TRUE OSD is with time info FALSE no time info on OSD Function BOOL StartRecord HANDLE hDev Description Start stream recording Parameter hDev Device handle returned by CreateDevice Return TRUE successful FALSE failed Note It always returns FALSE if StartDevice is not called properly Function void StopRecord HANDLE hDev Description Stop stream recording Parameter hDev Device handle returned by CreateDevice 35 Return None Function RECORD_STATE GetRecordState HANDLE hDev Description Get recording state Before you call StartRecord or StopRecord you should call this function to check whether a recording action is allowed or not Parameter hDev Device handle returned by CreateDevice Return RS_NONE_ALLOWED Neither of recording action starting and stopping is allowed RS_ALLOW_RECORD Indicates that you can call StartRecord now RS_
8. output stream 58 long CBRLevel 10 60 Indicate constant bit rate level long CBRBitRate 1 20 000 Indicate specific bit rate on CBR mode long VBRLevel 2 30 Indicate variable bit rate level long PlaybackLevel 1 6 The quality of live video preview long StreamFormat 0 6 The format of output stream 0 PRV Mpeg4 1 MS WMV 2 DivX Mepg4 3 Sigma Design Mpeg 4 4 MPEG l 5 MPEG II 6 H 263 boolean SplitFileEnabled Use split file feature long SplitFileDuration 10 10000 Set time period of each split file BSTR RecFilename Indicate the recording file path long PlayLevelOnRec 0 2 Indicate quality level of live 0 Turn off live video 1 Degrade live video while it is recording video quality 2 Keep live video quality long Brightness 0 100 Indicate brightness value of video long Hue 0 100 Indicate hue value of video long Saturation 0 100 Indicate saturation value of video long Contrast 0 100 Indicate contrast value of video boolean AutoVideoSystem Indicate whether use video system auto detection feature long VideoSystem 0 NTSC M Assign video system of video 1 PAL B D G H l source manually 2 SECAM 3 NTSC4 43 4 PAL M 5 PAL CN 6 PAL 60 long InputType 0 Reserved 59 Methods Name Param Note long GetDeviceCount Get the number of installed device There are four devices in one IVC 4200 card
9. the status bar CchildFrame Derived from CMDIChildWnd This class will be the owner window of created devices So it will receive window message post from device driver And it is also a container of video render window This class process most user interface operation and pass the command to CIVC4200SDKApp class to do the real things CFSPanel This class is a CWnd class It creates a none parent full screen window to contain all four video render windows 18 4 5 IVC 4200 SDK 4 5 1 SDK File List Driver and runtime library setup program IVC4200 sys IVC4200_XP sys IVC4200_NT sys drivers for IVC 4200 IVC4200 inf driver installation description file WMFDist exe Windows media format 7 1 SDK setup program VIA directory VIA 6202 VT chip driver Firmware file Installed to windows directory Go7007fw bin firmware for driver Ivc4200in bin firmware data for SDK library Ivc4200 prf setting data file Tw9903 snr video sensor data Runtime filter and DLL Installed in Windows System directory and registered to system registry Mp2filter ax MP2 filter Wismp3 ax MP3 filter Unidec ax DirectShow filter for media player e StreamRender dll preview render module SampleTerminator dll sample data grabber filter msvcr70 dll runtime library atl dll ATL runtime library SDK dynamic linking library programs and source files IVC 4200 SDK bin SDKLib dll SDK mai
10. 1VC 4200 User Manual Version 1 2 lt Product Overview gt 4 Channel MPEG 4Encoding Card January 9 2004 Copyright 2003 by ICP Electronics Inc All Rights Reserved Copyright Notice The information in this document is subject to change without prior notice in order to improve reliability design and function and does not represent a commitment on the part of the manufacturer In no event will the manufacturer be liable for direct indirect special incidental or consequential damages arising out of the use or inability to use the product or documentation even if advised of the possibility of such damages This document contains proprietary information protected by copyright All rights are reserved No part of this manual may be reproduced by any mechanical electronic or other means in any form without prior written permission of the manufacturer Trademarks IVC 4200 is a registered trademark of ICP Electronics Inc IBM PC is a registered trademark of International Business Machines Corporation Intel is a registered trademark of Intel Corporation Award is a registered trademark of Award Software International Inc Other product names mentioned herein are used for identification purpose only and may be trademarks and or registered trademarks of their respective companies Support For any questions regarding the content of this manual or the product please contact us at support iei com tw Table of Conten
11. 4 PM i inc ReadMe SKB Text Document 6 26 2003 6 14 PM A lib la resource h 6KB HFile 6 26 2003 6 14 PM ED sre laa StdAfx cpp 1KB CPP File 6 26 2003 6 14 PM E 3 DemoApp laa Std fx h 2KB HFile 6 26 2003 6 14 PM res i WMFDist E 2 Intel yl 20 object s Disk free space 25 8 GB E 98 9 KB E My Computer gt 4 5 2 SDK Library Reference The IVC 4200 SDK Library contains a set of API that can perform the core function of IVC 4200 It provides an easy way to manipulate IVC 4200 driver and to preview record and configure with your IVC 4200 video capture card 20 Macro Stream Format Choice define IVC4200 SFC PRV AVI define IVC4200 SFC MS WMV define IVC4200 SFC DIVX AVI define IVC4200 SFC SIGMA AVI define IVC4200 SFC MPEG1 define IVC4200 SFC MPEG2 define IVC4200 SFC H263 Video stream resoultion define IVC4200 RES D1 define IVC4200 RES VGA define IVC4200 RES CIF define IVC4200 RES QCIF Frame rate control type define IVC4200 FRC KEEP ORIGINAL define IVC4200 FRC ADPTIVE define IVC4200 FRC USER SPEC User specific frame rate range define IVC4200 FR MIN define IVC4200 FR MAX CBR Level range define IVC4200 CBR LVL MIN define IVC4200 CBR LVL MAX CBR bit rate range in Kbits define IVC4200 CBR BR MIN define IVC4200 CBR BR MAX VBR Level range define IVC4200 VBR LVL MIN define IVC4200 VBR LVL MAX 21 QU A U N BeO W N e O 30 10 60 20000 30
12. ALLOW_STOP Indicates that you can call StopRecord now Function int GetVideoSignalState HANDLE hDev Description Get video signal status Parameter hDev Device handle returned by CreateDevice Return 1 undetermined 0 Video signal is lost 1 Video signal exists 36 Function int ProcessDrvMessage HWND hOwnerWnd WPARAM wParam LPARAM IParam Description Process the window message post by the driver While the owner window has received message WM_IVC4200DRVEVENT it must call this function with 2 parameters to get the driver notification event Parameter hOwnerWnd Window handle of owner wParam The WPARAM parameter come with message WM_IVC4200DRVEVENT IParam The LPARAM parameter come with message WM_IVC4200DRVEVENT Return 1VC4200_DRVEVENT_UNKNOWERROR An unknown error occurred in device driver IVC4200_DRVEVENT_SNAPSHOT A snapshot was taken by device 1VC4200_DRVEVENT_FATALERROR A fatal error occurred A system reboot is required 1VC4200_DRVEVENT_DEVICEREMOVED Device has been moved IVC4200 DRVEVENT TIMEOUT Time out IVC4200 DRVEVENT TOOMUCHDELAY Output stream is too much delay And can t be render live video for a while Function BOOL SetGetFrameCallback HANDLE hDev GETENCFRAMEPROC IpGetFrameProc LPVOID IpParam Description Set callback function to get each encoded frame generated by device The format of frame data received by callback function is specified by function ca
13. NDLE hDev Description Get current stream format Parameter hDev Device handle returned by CreateDevice Return Returns the index value of output stream format See SetStreamFormat function Function BOOL EnableSplitFile HANDLE hDev BOOL bEnabled Description Let IVC 4200 to record a long video then save them into several small files Parameter hDev Device handle returned by CreateDevice bEnabled Enable to use split recording file feature or not Return TRUE successful FALSE failed Function BOOL IsSplitFileEnabled HANDLE hDev Description Check if split file is enabled Parameter hDev Device handle returned by CreateDevice 46 Return TRUE Split file is enabled FALSE disabled Function BOOL SetSplitFileDuration HANDLE hDev int nDuration Description Set the time for each split recording file Parameter hDev Device handle returned by CreateDevice nDuration Must be any integer between 10 and 10000 Return TRUE successful FALSE failed Function int GetSplitFileDuration HANDLE hDev Description Get file duration of each split recording file in second Parameter hDev Device handle returned by CreateDevice Return The time period of each split recording file Function BOOL SetRecFilename HANDLE hDev LPCTSTR IpszFilename Description Set recording file path Parameter hDev Device handle returned by CreateDevice
14. SC 443 IVC4200 VST PAL M IVC4200 VST PAL CN IVC4200 VST PAL 60 Return TRUE successful FALSE failed Function int GetVideoSystem HANDLE hDev Description Get current video input system format Parameter hDev Device handle returned by CreateDevice Return Index value of video system type See SetVideoSystem function Function BOOL Setl nputType HANDLE hDev int inputType 53 Description This function is reserved Function int Getl nputType HANDLE hDev Description Get video input type Parameter hDev Device handle returned by CreateDevice Return None Note This function always returns 0 Function BOOL SetRenderMode HANDLE hDev int nValue Description Set rendering mode of preview video window It must be called before start streaming device Parameter hDev Device handle returned by CreateDevice nValue Render mode index can be one of following value 1VC4200_RM_RGB Default value RGB data of each frame will be sent to VGA memory to display 1VC4200_RM_YUV Use YUV data to display on VGA This mode will use less data transfer rate for VGA card Return TRUE successful FALSE failed 54 Function int GetRenderMode HANDLE hDev Description Get current rendering mode setting of preview video window Parameter hDev Device handle returned by CreateDevice Return Returns the index of rendering mode see SetRenderMode Deco
15. TMAPINFOHEADER bmphd LPBYTE buffer UINT32 amp bufsize Description Decode one frame encoded in GO Stream format Parameter 56 decoder Device handle returned by Decoderl nitialize frminfo Frame information got from callback function frame Encoded frame data buffer frmsize Size of encoded frame bmphd Bitmap header of decoded frame data buffer A buffer pointer for receiving decoded frame data bufsize Size of the buffer Buffer size is depended on the resolution of video and the format specified by SetDecodeFormat To calculate the size in need you can use this formula Min buffer size WidthBytes height WidthBytes width bitsdepth Ox1f Oxffffffe0 gt gt 3 bitsdepth is the bits width of each pixel ex DI B24 is 24 bits If the buffer size is smaller than the minimum value it will return false and the minimum value will be set to the parameter bufsize Return TRUE successful FALSE failed Note You can get the encoded frame data by receiving data frome callback function which is set by SetGetFrameCallback The decoder can only support Private MPEG4 1VC4200_SFC_PRV_AVI format currently Function void DecoderUninitialize HANDLE decoder Description Close and destroy decoder Parameter decoder Device handle returned by Decoderl nitialize Return None Decoder handle can t be referenced after calling DecoderUninitialize 57 4 5 3 IVC 4200 ActiveX
16. VENT TOOMUCHDELAY Decode format define IVC4200 DECODE_DDRAW_RGB24 define IVC4200 DECODE_DDRAW_RGB32 define IVC4200 DECODE_DDRAW_DIB24 define IVC4200 DECODE_DDRAW_DIB32 Decode mode define IVC4200 DECODE_IONLY define IVC4200_DECODE_IPONLY define IVC4200 DECODE IPB define IVC4200 DECODE IPBDROP Decode error define IVC4200 DECODE ERR NODECODER define IVC4200 DECODE ERR NOFRAME define IVC4200 DECODE ERR NOBUFFER define IVC4200 DECODE ERR NOHEADER define IVC4200 DECODE ERR INVALIDFRAME define IVC4200 DECODE ERR SYNCFAIL define IVC4200 DECODE ERR NOTSYNC define IVC4200 DECODE ERR BUFSMALL 23 0x103 0x104 0x105 0x106 0x107 0x1001 Ou Bb WN Pp 0x03 0x04 0x13 0x14 Bb WN Pp ON QU A W N Be The device owner must process this window message define WM_1VC4200DRVEVENT 0x0400 1000 Structure and enumerator enum RECORD_STATE RS_NONE_ALLOWED 1 RS_ALLOW_RECORD 0 RS ALLOW STOP 1 typedef struct double timeStamp int nGOP int nSubGOP int nPicture double fno char ftype double fq TMP_Frminfo typedef struct TMP_Frminfo Frminfo int nWidth int nHeight GOSTRMFrm nfo Callback function type definition typedef void CALLBACK GETENCFRAMEPROC GOSTRMFrmInfo LPBYTE DWORD LPVOID API Functions 24 Device operation function Function void SetVendorName LPCTSTR IpszName Description Set vendor name for Windows re
17. and software installation for your IVC 4200 card 3 1 Driver Installation Note The following driver installation procedure applies to Windows 2000 And the procedure is quite similar for other Windows platform 1 Log on to the system you may see Found New Hardware dialogs several times Click Cancel to skip them Welcome to the Found New Hardware Wizard Thes w ard helps you natal a dence drrver for a hardmae dente Insert the companion driver CD ROM and browse it using Windows Explorer Enter the IVC 4200 directory within the CD then double click ieisetup File Edit View Favorites Tools Help Back gt fg Qsearch Folders History PS OS x A E Address C3 1vc 4200 Jm sa a y Driver Runtime autorun IVC 4200 ieisetup cl Application ieisetup dll ieisetup ieiunins Modified 11 29 1979 5 00 PM Attributes Read only setup2k setup98 setupxP VSSYEF SCC Type Application Size 272 KB 272 KB fax Local intranet 4 The IVC 4200 SDK Setup program will be launched to install the driver and SDK for your IVC 4200 card on your system TET IVC 4200 SDK Star Welcome to the IEI IVC 4200 SDK program ile ti col IVC 4200 on your Ris de 4 The setup program will also install the Microsoft Media Format 7 1 on your system TETIVC 4200 SDK Plasse read the todovang licenze P to see the rest of the agreement SUPPLEMENTA ES F IMPORTAN Ase DE Bso windows M
18. andle returned by CreateDevice Return User specified frame rate ranged from 3 to 30 Function BOOL EnableCBR HANDLE hDev BOOL bValue Description Enable disable constant bit rate stream If disabled variable bit rate stream is used Parameter hDev Device handle returned by CreateDevice bValue if TRUE means enable CBR otherwise use VBR Return TRUE successful FALSE failed Function BOOL IsCBREnabled HANDLE hDev Description Check if CBR is enabled 41 Parameter hDev Device handle returned by CreateDevice Return TRUE CBR is enabled FALSE VBR is enabled Function BOOL SetCBRLevel HANDLE hDev int nValue Description Set constant bit rate level Parameter hDev Device handle returned by CreateDevice nValue can be any integer between IVC4200 CBR LVL MIN 10 and IVC4200 CBR LVL MAX 60 Return TRUE successful FALSE failed Note The CBR level is higher the bit rate of output stream is more constant CBR level is valid on CBR mode Function int GetCBRLevel HANDLE hDev Description Get current CBR level Parameter hDev Device handle returned by CreateDevice Return Returns CBR level ranged from IVC4200 CBR LVL MIN 10 to IVC4200 CBR LVL MAX 60 42 Function BOOL SetCBRBitRate HANDLE hDev int nValue Description Set stream bit rate in CBR mode The unit is in Kbit Parameter hDev Device handle returned by CreateDe
19. ay card with higher performance instead 14 4 3 SDK Installation If you have finished the software installation the SDK is already installed on your system Here are some brief steps to install the driver and SDK on your system ci A ES Turn your system off Install your IVC 4200 MPEG 4 Video Encoder card on an empty PCI slot Restart your system Click Cancel for all pop up Found New Hardware dialogs Run ieisetup exe from the companion CD ROM to install the SDK software for your IVC 4200 card Follow the on screen instructions to install the driver and software The system will automatically restart after the installation completed After system restarted Windows will detect the all the new devices You should assign the correct path normally it s under C Program FilesYl EI IVC 4200 Driver to install IVC 4200 driver properly To remove this software please follow below steps Open the Control Panel by clicking Settings from Start Menu Open the Add Remove Programs and select IEI IVC 4200 SDK from the list Click on the Add Remove button and follow the on screen instructions to remove the software B intern PRO Network Adapters and Drivers MO nexo Prose Owe DED coarne O jacajmemove Programe 15 4 4 Demo Program Demo App From the Programs menu run Demo App under IEI IVC 4200 SDK to test IVC 4200 card Ss N I 6 z 16 4 4 1 Using Demo Pro
20. d by CreateDevice nindex can be one of following value Default is IVC4200 PC IP IVC4200 PC IP IVC4200_PC_IP_DB IVC4200 PC IP DBDR IVC4200 PC IPB IVC4200 PC IPB DB IVC4200 PC IPB DBDR Return TRUE successful FALSE failed 44 Note The quality of live video depends on playback level value 1VC4200_PC_IP is lowest and IVC4200 PC IPB DBDR is highest The range of possible value depends on what format of output stream Only WIS MPEG4 AVI can support up to IVC4200 PC IPB DBDR The quality level is higher the CPU loading is more Function int GetPlaybackLevel HANDLE hDev Description Get current decoding level in preview mode Parameter hDev Device handle returned by CreateDevice Return Returns the level of live video quality See SetPlaybackLevel function Function BOOL SetStreamFormat HANDLE hDev int nlndex Description Set the format of stream data which is transcoded from GoStream Parameter hDev Device handle returned by CreateDevice nIndex can be one of following value Default is 1VC4200_SFC_PRV_AVI 1VC4200_SFC_PRV_AVI Private MPEG 4 AVI File IVC4200 SFC MS WMV Microsoft Windows Media Format IVC4200_SFC_DIVX_AVI DivX MPEG 4 AVI file IVC4200 SFC SIGMA AVI Sigma Design MPEG 4 AVI file 1VC4200_SFC_MPEG1 MPEG format 1VC4200_SFC_MPEG2 MPEG II format 1VC4200_SFC_H263 H 263 format Return 45 TRUE successful FALSE failed Function int GetStreamFormat HA
21. der function Function HANDLE Decoder nitialize Description Create a new decoder Parameter none Return Returns a handle of new decoder Return NULL if failed Function BOOL SetDecodeFormat HANDLE decoder int format Description Set the format of decoded frame data Parameter decoder Decoder handle returned by Decoderl nitialize format index of format can be following value IVC4200 DECODE_DDRAW_DIB24 DIB24 format IVC4200 DECODE_DDRAW_DIB32 DIB32 format default IVC4200 DECODE_DDRAW_RGB24 RGB24 format IVC4200 DECODE_DDRAW_RGB32 RGB32 format 55 Return TRUE successful FALSE failed Note This function should be called before calling DecodeOneFrame otherwise decoder might lost some frames Function BOOL SetDecodeMode HANDLE decoder int mode Description Set decoding mode Parameter decoder Decoder handle returned by Decoderl nitialize mode index of decoding mode can be following value IVC4200 DECODE IONLY Decode frame only IVC4200_DECODE_IPONLY Decode I and P frame only IVC4200 DECODE IPB Decode I P B frame default IVC4200_DECODE_IPBDROP Decode I P B frame and drop frame is allowed Return TRUE successful FALSE failed Note This function should be called before calling DecodeOneFrame otherwise decoder might lost some frames Function BOOL DecodeOneFrame HANDLE decoder GOSTRMFrmInfo frminfo LPBYTE frame UINT32 frmsize BI
22. ectX 8 1 4 08 01 0810 DxDiag 5 01 2600 0000 Unicode Copyright 1998 2001 Microsoft Corporation All rights reserved Next Page Save All Information 13 Chapter 4 IVC 4200 SDK Programmer Guide 4 1 Introduction IVC 4200 is a video capture card designed for multi channel applications It includes 4 channels MPEG 4 hardware encoder to provide real time VGA quality video capture for each channel 1 4 Channels BNC Composite Video input 2 NSTC PAL SECAM Auto Sensing 3 Full D1 CIF QCIF with MPEG 4 Advanced Simple Profile L3 quality stream 4 Output Format WIS mp4 compatible DivX Microsoft WMV Sigma Design MPEG4 MPEG II MPEG 5 Video input signal control of brightness contrast and saturation In addition to drivers IVC 4200 provides SDK to ease the integration of the IVC 4200 in various applications The SDK only supports Windows platform with USB support and DirectX version 8 1 or above installed including Windows 2000 and Windows XP Linux platform is currently not supported Please check with the technical support see appendix for further information if you need to use IVC 4200 under Linux 4 2 System Requirement Windows 2000 or Windows XP 128 MB RAM or above At least 10 MB free disk space DirectX 8 1 or above version installed Note The SDK needs to decode the encoded MPEG 4 stream using installed software decoder If you are seeing slow moving pictures please use CPU or displ
23. edia Format 7 3 5 osm 5 The setup program will also install the VIA USB 2 0 driver as well z Li 10 x VTA Technologies Inc VTA USB 2 0 Driver Version 2 54 Microsoft Driver for Win2000 Version 5 0 2195 5652 xj i Welcome to the VIA USB 2 0 Diver Setup program Thes program wall metal VIA USE 2 0 Denver on your computer It is strongly recommended that you ext al Windows programs before murrang the Setup program Cick Cancel to qu Setup and then close any programs you have running Cick Nex to continue wath the Setup program WARNING This program tt protected by copyright law and PRA NA Unsuthonzed reproducton ce distribution of thes program ot any partion of may result in severe civ and comal penales and wal be prosecuted to the masamum extent possible under law 6 Select Install USB 2 0 Driver and click Next z VIA USE 2 0 Driver _ La VTA Technologies Inc VTA USB 2 0 Driver Version 2 54 Microsoft Driver for Win2000 Version 5 0 2195 5652 inat USB 2 0 Driver Uninstali USB 2 0 Driver On Windows 2000 the setup program will install the Microsoft USB 2 0 Driver for Windows 2000 Follow the on screen instructions to proceed 3 10 x VIA Technologies Inc VIA USB 2 0 Driver Version 2 54 Microsoft Driver for Win2000 Version 5 0 2195 5652 You shouid Print ce Archive for later reference After VIA USB 2 0 Driver setup program completes the system will be
24. escription Get video saturation Parameter hDev Device handle returned by CreateDevice Return Returns the level of video saturation Function BOOL SetContrast HANDLE hDev int contrast Description Set video contrast value 51 Parameter hDev Device handle returned by CreateDevice contrast from O to 100 Return TRUE successful FALSE failed Function int GetContrast HANDLE hDev Description Get video contrast value Parameter hDev Device handle returned by CreateDevice Return Returns the level of video contrast Function BOOL SetAutoVideoSystem HANDLE hDev BOOL bAuto Description Enable disable automatic video input system detection Parameter hDev Device handle returned by CreateDevice bAuto TRUE to enable auto detection or FALSE to disable it Return TRUE successful FALSE failed Function BOOL GetAutoVideoSystem HANDLE hDev Description Check if use automatic video input system detection 52 Parameter hDev Device handle returned by CreateDevice Return TRUE auto detection is enabled FALSE video system selection is by manual setting Function BOOL SetVideoSystem HANDLE hDev int colorSystem Description Specify video input system format Parameter hDev Device handle returned by CreateDevice colorSystem can be one of following value IVC4200 VST NTSC IVC4200 VST PAL B IVC4200 VST SECAM IVC4200 VST NT
25. g on a floppy de of CDROM dwe nont the floppy de ar CD before cicing Mest Dn pecar RP Plapoy des caves F CDROM dives F Speedy a incation T iioa Windows Upsus 52 12 The IVC 4200 driver files has been installed in the IENIVC 42001Driver directory under the Windows Program Files folder Normally just specify the driver location at C Program Files 1EI IVC 4200 Driver Locate Driver F es resa Inset tha maniactanii nstalaton Gib rio the dre Search for drees files fer Se folte u selectos and then cick OK G 58000 Es The vizand searches for suitable dii Ye le O ON A To start the search dik hos nant the fioppy da of CD before cl Ostene search locations i7 Floppy dls Gives start DEZA Found New Hardware Wo Found New tardes 1923 mnom 11 13 The system will detect and find the driver for your IVC 4200 click Next to complete the driver installation Found sew Hardware Wizard Drives Files Search Results st ac hai trib mc la dwe ie Os dea The vacerd fours a Gives tor the lolo doe USB Devoe Windows bound a dre for But deca To metal the dower Windows found cick Nest fet DEA round New Hardware Wo_ Found New Hardens 1323 num 14 After the driver is installed successfully the following screen will appear Completing the Found New Hardware Wizard El IVC4200 Y Window hat netta mutado the cotheaye lor ter Gees start DE Hi round New Ha
26. gistry IVC 4200 SDK library will keep some setting data in Windows registry You can specify a special key name as the root of those kept data Parameter IpszName Name of main key of setting data Return None Function int GetDeviceCount Description Get total video channel device count Each IVC 4200 card has 4 MPEG 4 hardware devices Parameter None Return The number of device installed 25 Function BOOL IsDeviceExisting int nl D Description Determine whether device of given ID exists Parameter niD a number between 0 and the device count minus 1 Return TRUE Device with specified ID exists FALSE No such device id is valid Function HRESULT CreateDevice int nl D HWND hWnd HANDLE phDevice Description Create a video channel device Parameter nlD a number between 0 and the device count minus 1 hWnd Device s owner window It will contain the window of live video and it also receive the notification message from device driver phDevice Pointer to a handle variable to receive the created device handle Return S_OK Create device successfully If CreateDevice failed get the error code by mask return value with Ox0000FFFF The error code could be one of the following same as Win32 error code ERROR_OUTOFMEMORY 14 Out of memory ERROR ALREADY EXISTS 183 Device has been created ERROR_IO_DEVICE 1117 Can t register device interface driver may be co
27. gram Here are some basic operations about this demo program 1 Select Channel You can arrange the channel order of all installed encoder device 2 Open Channel To start a single channel just select the channel by clicking on the title bar of that channel and click Open button Or you can click Open All Channels to start 4 channel in the same time 3 Configuration There are two kind of configuration One is for settings of MPEG 4 stream the other is for video input control All MPEG 4 steam settings must be done before device was opened 4 Full Screen Mode You can select full screen mode while any one device has opened To exit full screen mode please press ESC 4 4 2 Demo Program and SDK The source of the demo application is included in SDK and can be used as a good reference about how to use SDK library functions Note The source code for this demo program is installed in the IEI IVC 4200 SDK src directory under the Program Files folder Project files IVC4200SDK cpp IVC4200 SDK App class definition 1VC42005DK h 1VC4200 SDK App class declaration MainFrm cpp main frame window class definition MainFrm h main frame window class declaration ChildFrm cpp Child frame window class definition ChildFrm h child frame window class declaration DevSelectDlg cpp device selection dialog class definition DevSelectDlg h device selection dialog class declaration FSPanel cpp full sc
28. led Function int GetResolution HANDLE hDev Description Get current video resolution Parameter hDev Device handle returned by CreateDevice Return Returns the index value of resolution See SetResolution function 39 Function BOOL SetFrameRateType HANDLE hDev int nlndex Description Set frame rate setting Parameter hDev Device handle returned by CreateDevice nIndex Can be one of the following value Default is IVC4200_FRC_ADPTIVE IVC4200 FRC KEEP ORIGINAL It will keep the original frame rate from the video source For example in NTSC frate rate is 29 97 fps IVC4200_FRC_ADPTIVE It will adjust the frame rate automatically IVC4200 FRC_USER_SPEC It requires the user to specify a frame rate by calling SetSpecFrameRate function Return TRUE successful FALSE failed Function int GetFrameRateType HANDLE hDev Description Get current frame rate setting Parameter hDev Device handle returned by CreateDevice Return Returns the index value of frame rate type See SetFrameRateType function Function BOOL SetSpecFrameRate HANDLE hDev int nfps Description Set user specified frame rate Parameter 40 hDev Device handle returned by CreateDevice nfps must be any integer between 3 and 30 Return TRUE successful FALSE failed Function int GetSpecFrameRate HANDLE hDev Description Get user specified frame rate Parameter hDev Device h
29. ll SetStreamFormat Parameter hDev Device handle returned by CreateDevice 37 IpGetFrameProc a function pointer pointed IpParam User defined parameter that it will be passed to function pointed by IpGetFrameProc Return TRUE successful FALSE failed Function void EnableLog BOOL bValue Description Enable to write status and driver events to log file Parameter bValue TRUE Enable FALSE Disable Return TRUE successful FALSE failed Function BOOL I sLogEnabled Description To check if log function is turn on Return TRUE Log is enabled FALSE Log is disabled Function void SetLogFile LPCTSTR IpszFile Description Set log file pathname If you did not call this function to specify the log file path and enable the log function default log file is SDKlib log in the same directory of program 38 Parameter IpszFile Log file pathname Configuration function Note All configuration function can t be called while device is running Function BOOL SetResolution HANDLE hDev int nlndex Description Set video resolution Parameter hDev Device handle returned by CreateDevice nIndex Can be one of the following value IVC4200_RES_DI1 720 X 480 NTSC 720 X 576 PAL IVC4200 RES VGA 640 X 480 VGA default IVC4200 RES CIF 352 X 240 NTSC 352 X 288 PAL IVC4200 RES QCIF 176 X 112 NTSC 176 X 144 PAL Return TRUE successful FALSE fai
30. n function DLL 1VC42005DK exe demo application 1VC42005DKAtx ocx IVC 4200 SDK ActiveX IVC 4200 SDK inc IVC4200 h SDKLib DLL header file IVC 4200 SDK lib SDKLib lib SDKLib DLL import library 19 IVC 4200 SDK src Source code of demo application IVC4200SDK exe N DemoApp Bile Edit view Favorites Tools Help Back EJ Bsearch Folders History US GS x A Exe er Local Disk C Folder 71712003 7 30 PM 3 Documents and Settings a a ChildFrm cpp 11KB CPP File 7 2 2003 4 11 PM 1386 laa ChildFrm h 3KB HFile 7 2 2003 4 11 PM Inetpub B DevSelectDlg cpp SKB CPP File 6 26 2003 6 14 PM Y Intelrro DevSelectDig h 2KB HFile 6 26 2003 6 14 PM a Program Files B FSPanel cpp 7KB CPP File 7 2 2003 4 11 PM Accessories laa FSPanel h 2KB HFile 6 26 2003 6 14 PM Adobe f 1YC420050K cpp 18KB CPP File 7 2 2003 4 11 PM ahead lan IVC4200SDK dsp SKB DSP File 6 26 2003 6 14 PM Se Da lan IVC4200SDK dsw 1KB DSW File 6 26 2003 6 14 PM i core laa IVC42005DK h 3KB HFile 6 26 2003 6 14 PM i ComPlus Applications i b TEI laa 14C420050K plg 3KB PLG File 7 4 2003 2 54 PM i IVC 4200 la T C42005DK rc 17KB RC File 7 4 2003 2 54 PM La Driver MainFrm cpp 14KB CPP File 7 2 2003 4 11 PM 5 3 sk a MainFrm h 3KB HFile 6 26 2003 6 14 PM oof bin la mssccprj scc 1KB SCC File 6 26 2003 6 1
31. o Return TRUE successful FALSE failed Function int GetPlayLevelOnRec HANDLE hDev Description Get play level of preview while recording started Parameter hDev Device handle returned by CreateDevice Return Returns the level of live video quality on recording See SetPlayLevelOnRec function Function BOOL SetBrightness HANDLE hDev int brightness Description Set video brightness level Parameter hDev Device handle returned by CreateDevice 49 brightness from O darkest to 100 brightest Return TRUE successful FALSE failed Video function Function int GetBrightness HANDLE hDev Description Get video brightness level Parameter hDev Device handle returned by CreateDevice Return Brightness level Function BOOL SetHue HANDLE hDev int hue Description Set video HUE Parameter hDev Device handle returned by CreateDevice hue from O to 100 Return TRUE successful FALSE failed Function int GetHue HANDLE hDev 50 Description Get video HUE Parameter hDev Device handle returned by CreateDevice Return Returns the level of video HUE Function BOOL SetSaturation HANDLE hDev int saturation Description Set video saturation Parameter hDev Device handle returned by CreateDevice saturation from O to 100 Return TRUE successful FALSE failed Function int GetSaturation HANDLE hDev D
32. o with quality that is similar to DVD IVC 4200 can be used to develop multimedia applications such as video editing streaming networks medical video networks corporate distance learning and video on demand VOD etc 1 1 Features Video Input 4 channel BNC Composite Video NTSC PAL SECAM auto sensing PCI Interface PCI V2 1 Compliance Plug amp Play support Video Compression MPEG 4 Advanced Simple Profile L3 MPEG 2 MP ML MPEG 1 Video Resolution 720 x 480 352 x 240 176 x 120 NTSC 720 x 576 352 x 288 176 x 144 PAL Frame Rate 30 FPS NTSC for each channel 25 FPS PAL for each channel e Video Quality DVD quality full D1 video at 3 Mbps 16 Mbps High quality full D1 video at 1 Mbps High quality CIF video at 384 Kbps High quality QCIF video at 96 Kbps Device Driver Provides drivers for Windows 2000 and Windows XP Systems SDK Provides SDK with demo program for software application development 1 2 Package Contents IVC 4200 video capture card x 1 e CD ROM x 1 User manual x 1 1 3 System Requirements IBM or IBM compatible computer Pentium 4 1 8 GHz CPU or better processor for reasonable decoding and display quality Minimum 128MB memory SVGA display adapter supporting DirectDraw At least one unoccupied PCI slot and IRQ Window Screen setting at 16 bits color or higher e UDMA Bus Mastering IDE or SCSI HDD for video capture OS Windows 2000 and Windows XP Mic
33. od to translate ProcessDrvMessage OLE_H window handle of driver notification message ANDLE hOwnerWnd long owner window WM_IVC4200DRVEVENT while wParam long IParam wParam IParam is owner window receive it the parameters come with message WM_IVC4200DRVEV ENT void ShowSensorDlg Display video control dialog 60 void ShowDlg This method will automatically determine which configuration dialog can be shown then invoke it long GetDevState Get last device status The possible return value Please see the description of API function GetDevStatus BSTR GetDevStateText Get the status of device in text long GetCreateError Get error code on creating device boolean SetOSDText BSTR Text Text string on Set user defined text on preview Text OSD video window Event Name Param Note void OnDrvEvent long Event Event Fired on driver event was Indicates which event issued from driver happened This event only fired on no owner window 61
34. rameter hDev Device handle returned by CreateDevice Return Returns the window handle of video window You can use this handle to adjust the position and size of this video window Function void ShowConfigDlg HANDLE hDev Description Show configuration dialog Parameter hDev Device handle returned by CreateDevice Return None 30 Function void ShowSensorDlg HANDLE hDev Description Show sensor setting dialog Parameter hDev Device handle returned by CreateDevice Return None Function void Restart HANDLE hDev Description Restart stream output Parameter hDev Device handle returned by CreateDevice Return None Function BOOL Snapshot HANDLE hDev LPCTSTR IpszFilepath NULL Description Take a snapshot of specific channel device Parameter hDev Device handle returned by CreateDevice IpszFilepath File path to save snapshot bitmap file Return TRUE successful FALSE failed 31 Function BOOL SetSnapshotFile HANDLE hDev LPCTSTR IpszFilepath Description Pre set snapshot file path Parameter hDev Device handle returned by CreateDevice IpszFilepath File path to save snapshot bitmap file Return TRUE successful FALSE failed Function BOOL GetSnapshotFile HANDLE hDev LPTSTR IpBuffer DWORD pcbSize Description Get pre set snapshot file path Parameter hDev Device handle returned by CreateDevice
35. rdware wiu Found New Hadese 3923 mum 12 3 2 Checking the DirectX version After you finish the driver installation please check the version of DirectX 1 Select Run in Start Menu enter dxdiag and click OK to run the DirectX Diagnostic Tool Type the name of a program folder document or Internet resource and Windows will open it For you Open dxdiag v 2 If the version of DirectX is not DirectX 8 1 then please install DirectX form the CD packaged with IVC 4200 DirectX Diagnostic Tool System Directx Files Display Sound Music Input Network More Help This tool reports detailed information about the DirectX components and drivers installed on your system It lets you test functionality diagnose problems and change your system configuration to work best If you know what area is causing the problem click the appropriate tab above Otherwise you can use the Next Page button below to visit each page in sequence The More Help page lists some other tools that may help with the problem you are experiencing System Information Current Date Time Computer Name Dperating System Language Processor Memory Page file Directx Version Wednesday September 04 2002 21 43 30 IEl 8sJ1Z7FW7XF Microsoft Windows XP Professional 5 1 Build 2600 English Regional Setting English AMD Athlonftm XP 1600 MMX 3DNow 1396MHz 376MB RAM 81MB used 789MB available Dir
36. reen panel class definition FSPanel h full screen panel class declaration 1VC42005DK rc resource script file e Resource h resource header file StdAtx cpp pre compiler class 17 e StdAtx h pre compiler header Res11VC4200 ico main icon file Res IVC4200SDK rc2 resource script file Res openfile_down bmp open file dialog icon Res openfile_up bmp open file dialog icon Res Toolbar bmp toolbar icon collection Class description CIVC4200SDKApp Main application class derived from CWinApp class Most of SDK API functions are called from here When Initlnstance was called a device selection dialog will ask user to select the devices to be handled in this session After main frame window was created all selected devices will be created by calling CreateAllDevice CDevSelectDlg Derived from CDialog class This class is a simple common dialog with for combo box User can specify 4 devices to be used from all available devices installed on current system After user closes this dialog the selected device number will be saved in Windows registry in sequence It will be loaded when this program was launched next time CMainFrame Derived from CMDIFrameWnd It is a MDI style frame window It contains four child frame windows one tool bar and one status bar This class is designed to pass through the command between child frame and CIVC42005DKApp class CMainFrame class also maintains the tool bar and
37. rosoft DirectX 8 1 or above version installed A Note If the system has installed other video capture card before please make sure the previous driver is removed from the system Users need Microsoft Direct X 8 1 or above in their computer Window XP users do not need to install DirectX 8 1 since Windows XP includes DirectX 8 1 About DirectX 8 1 Direct X 8 1 is a Microsoft shareware Direct X 8 1 will help improve multimedia experiences on most PCs Since DirectX 8 1 is a system component it is impossible to remove DirectX 8 1 without uninstalled your OS Chapter 2 Hardware Installation 2 1 Hardware Installation Please make sure the power of the computer is off when you install the IVC 4200 card 1 Power off the computer 2 Plug the IVC 4200 into a free PCI slot in your computer 3 Use the screw to fasten the IVC 4200 on the computer casing A Note e IVC 4200 will take up or share several sets of IRQ and I O Address Please make sure that there is enough free sets of IRQ and I O address for IVC 4200 to use The IRQ of the PCI slot can be modified from the BIOS setting of the motherboard Please make the necessary adjustment according to the motherboard s user manual 2 2 Connections IVC 4200 Channel 1 Channel 2 Channel 3 Channel 4 Chapter 3 Software Installation After you have installed the IVC 4200 card on your computer turn on the power Then please follow the instructions for driver
38. rrupted ERROR_FILE_NOT_FOUND 2 Sensor configuration file or firmware file not found 26 ERROR_NOT_READY 21 Device create failed or firmware file corrupts Function void DestroyDevice HANDLE hDev Description Destroy opened video channel device Parameter hDev Device handle returned by CreateDevice Return None Function int GetDevStatus HANDLE hDev Description Get last status of specific device Parameter hDev Device handle returned by CreateDevice Return IVC4200_SCODE_NOTCREATED undefined Invalid device handle IVC4200 SCODE READY Device is ready and can accept StartDevice command IVC4200 SCODE RUNNING Device is running While device is running any configuration change is not acceptable 1VC4200_SCODE_DEVICENOTEXIST Device is gone You may need to reboot the system IVC4200_SCODE_ INITFILELOST Firmware file IVC4200in bin can t be found 1VC4200_SCODE_SENSORFILELOST Sensor initial file TW9903 snr can t be found 1VC4200_SCODE_INITSENSORFAIL Device can t initiate sensor The sensor initial file TW9903 snr could be corrupt 1VC4200_SCODE_INITDEVFAIL Device initialization error 27 1VC4200_SCODE_INVDEVICE Device open failed 1VC4200_SCODE _BOOTUPFAIL Device boot up failed System reboot is required IVC4200_SCODE_REGDEVNOTIFYERROR Register device notification failed Device driver could be corrupt and it should re install driver again Function void GetDe
39. ts CHAPTER 1 INTRODUCTION coococccncnnncnonononornrnrncnenonanannnnrnrnrnenananannanenenes 3 1 1 FEATURES vuciostor e SE Ra e 3 1 2 PACKAGE CONTENTS A A ai 4 1 3 SYSTEM REQUIREMENTS omia aaa aio 4 CHAPTER 2 HARDWARE INSTALLATION suse Er 5 2 1 HARDWARE INSTALLATION c ooooccoococcnccnconoconnnncnnanananannrnnanannnranrrcanininninanss 5 2 2 CONNEGITONS fron at e IE A ro ds Te es vel 5 CHAPTER 3 SOFTWARE INSTALLATION ssssnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 6 3 1 DRIVER INSTALLATION lia a i 6 3 2 CHECKING THE DIRECTX VERSION L cece eee e tees kr kk RER RER RTR TRE rn ken 13 CHAPTER 4 IVC 4200 SDK PROGRAMMER GUIDE 14 4 1 INTRODUCTION ondere ii peri 14 4 2 SYSTEM REQUIREMENTS A A le 14 4 3 SDK INSTALLATION A A A 15 4 4 DEMO PROGRAM DEMO APP Li 16 4 4 1 Using Demo Program eect een eee e ete 17 4 4 2 Demo Program and SDK ii 17 4 5 IVE 4200 SDKooi i e ii 19 475 1 SDK File ES sii a dd ces 19 4 5 2 SDK Library Reference ee eee ee eee eee teeta eee 20 4 5 3 IVC 4200 ActiveX Control Object cece eee tetera ee eee 58 Chapter 1 Introduction Thank you for choosing IVC 4200 as your solution for high quality video applications IVC 4200 can achieve real time 4 channel MPEG 4 encoding and is the best tool to help you making high quality videos IVC 4200 has 4 MPEG 4 encoding chips and is capable to record the vide
40. vStatusText int nStatus LPTSTR IpBuffer DWORD cbSize Description Translate status code to a string text Parameter nStatus Status code returned by GetDevStatus IpBuffer pointer to a string buffer to receive translated text cbSize size of buffer which is pointed by IpBuffer Return None Function int GetDevicel D HANDLE hDev Description Get created video device id number Parameter hDev Device handle returned by CreateDevice Return Device id number 28 Function HWND GetOwnerWnd HANDLE hDev Description Get owner window of opened video channel device Parameter hDev Device handle returned by CreateDevice Return The window handle of owner window which is the same as the second parameter of function CreateDevice Function BOOL Start HANDLE hDev Description Start stream output Parameter hDev Device handle returned by CreateDevice Return TRUE successful FALSE failed Function void Stop HANDLE hDev Description Stop stream output Parameter hDev Device handle returned by CreateDevice Return None 29 Function BOOL IsStarted HANDLE hDev Description Check if stream output is stated Parameter hDev Device handle returned by CreateDevice Return TRUE Device is running FALSE device is not running Function HWND GetRenderWnd HANDLE hDev Description Get preview render window handle Pa
41. vice nValue can be from IVC4200 CBR BR MIN 1 to IVC4200 CBR BR MAX 20000 Return TRUE successful FALSE failed Note The CBR bit rate setting is the upper constraint of output stream bit rate CBR bit rate setting is only valid on CBR mode Function int GetCBRBitRate HANDLE hDev Description Get stream bit rate in CBR mode Parameter hDev Device handle returned by CreateDevice Return Output stream bit rate in Kbit ranged from IVC4200 CBR BR MIN 1 to IVC4200 CBR BR MAX 20000 Function BOOL SetVBRLevel HANDLE hDev int nValue Description Set variable bit rate level Parameter hDev Device handle returned by CreateDevice 43 nValue can be any integer between IVC4200 VBR LVL MIN 2 and IVC4200 VBR LVL MAX 30 Return TRUE successful FALSE failed Note The higher VBR level value represents that the higher bit rate of output stream VBR level is valid on VBR mode Function int GetVBRLevel HANDLE hDev Description Get variable bit rate level Parameter hDev Device handle returned by CreateDevice Return From 1VC4200_VBR_LVL_MIN 2 and IVC4200 VBR LVL MAX 30 Function BOOL SetPlaybackLevel HANDLE hDev int nlndex Description Set the decoding quality level of live video preview Sacrificing the playback quality helps decrease CPU usage substantially and thus improve the quality of recorded file Parameter hDev Device handle returne
Download Pdf Manuals
Related Search
Related Contents
PCM-3524 - Fairchild Engineering Ltd Infrared Thermometer NEC Express5800/320Fd User Setup Information OPERATOR`S MANUAL MANUEL de L`UTILISATEUR MANUAL del 液化石油ガス設備 維持管理マニュアル(販売事業者編) D70 UK ok.rtf Mod:DST/2-22A 230V/3 Gare ASUS B23E User's Manual Copyright © All rights reserved.
Failed to retrieve file