background image

Function Library

 63

4.6.2

Acquisition Start

Purpose

This function starts to capture frames.

Prototype

C/C++

int Hdv62_AcquisitionStart (UINT Number)

C# 

int AcquisitionStart (uint Number)

VB.Net

AcquisitionStart (ByVal Number as UInteger) As 

Integer

Parameters

Number
The number of device. The allowed value is from 0 to 15.

Return Value

No error occurs if return value >= 0; if negative value, please refer
to Section 4.9 for error information about return codes.

Summary of Contents for HDV62

Page 1: ...uy your excess underutilized and idle equipment along with credit for buybacks and trade ins Custom engineering so your equipment works exactly as you specify Critical and expedited services Leasing R...

Page 2: ...Advance Technologies Automate the World Manual Rev 2 00 Revision Date January 18 2010 Part No 50 11164 1000 HDV62 Full HD 1080p Frame Grabbers User s Manual...

Page 3: ...tial 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 copy...

Page 4: ...Fax 1 408 360 0222 Email info adlinktech com ADLINK Technology Beijing Address 1 E 801 100085 Rm 801 Power Creative E No 1 B D Shang Di East Rd Beijing 100085 China Tel 86 10 5885 8666 Fax 86 10 5885...

Page 5: ...an Tel 81 3 4455 3722 Fax 81 3 5333 6040 Email japan adlinktech com ADLINK Technology Inc Korean Liaison Office Address 1506 25 B D 2 2F Hando B D 1506 25 Seocho Dong Seocho Gu Seoul 137 070 Korea Tel...

Page 6: ...ctors and Pin Definitions 7 3 Installation Guide 13 3 1 Windows Driver Installation 13 4 Function Library 21 4 1 Function List 22 4 2 Setting up the Build Environment 26 4 3 Device Control Functions 2...

Page 7: ...n Frame Count 61 Acquisition Start 63 Acquisition Stop 64 One Shot 65 Image Stream 66 Acquisition Status 67 Acquisition Statistics 68 Sensor Status 69 Save Image 70 4 7 Trigger Control Functions 71 Tr...

Page 8: ...aphs 92 5 3 Controlling Driver 99 Use Property Pages 99 Use COM interfaces 101 Color Space 103 5 4 Proprietary Interfaces 106 IVideoFormat 106 IAdvance 111 ICardInfo 124 INotify 127 5 5 Build Environm...

Page 9: ...CN1 7 Table 2 3 D sub Connector Pin Definition CN2 8 Table 2 4 Box Header Pin Definition CN3 9 Table 2 5 Trigger Output Mode Select SW1 10 Table 2 6 Digital Output Mode Select SW2 10 Table 2 7 Card I...

Page 10: ...List of Figures v List of Figures Figure 2 1 HDV62 Outline and Mechanical Dimensions 5 Figure 2 2 Trigger I O Timing Diagram 6 Figure 4 1 Signals of Frame Image 42 Figure 4 2 EDID ROM Architecture 83...

Page 11: ...vi List of Figures...

Page 12: ...a to the host PC and real time hardware color space conversion to Offload repetitive tasks from the host CPU The HDV62 provides the ViewCreator Pro utility to setup config ure test and debug the syste...

Page 13: ...adcast Military Defense Video Surveillance 1 3 System Requirements The minimum system requirements for 1 CH real time Full HD image acquisition are Platform Pentium 4 2 4 GHz CPU 512 MB RAM or above D...

Page 14: ...VI I Connector 720p 50fps 720p 60fps 1080i 25fps 1080i 30fps 1080p 25fps 1080p 30fps 1080p 50fps 1080p 60fps HD YPbPr D Sub 9 Connector 720p 50fps 720p 60fps 1080i 25fps 1080i 30fps 1080p 50fps 1080p...

Page 15: ...time See Trigger I O timing diagram DIO Trigger IO Level Threshold Input Maximum of input voltage 5V Minimum threshold of high level 2 4V Maximum threshold of Low level 1V Output Select by SW1 and SW...

Page 16: ...Hardware Reference 5 2 1 2 HDV62 Outline and Mechanical Dimensions Figure 2 1 HDV62 Outline and Mechanical Dimensions 10 0 3 6 111 15 12 6 3 1 4 5 174 52 176 42 SW1 SW2 CN3 SW4 CN1 CN2 SW3...

Page 17: ...Timing Diagram Trigger in X T1 T2 T3 T2 T3 T2 T3 Trigger out X T1 T1 0 1 50 msec selectable 0 1 msec step Output trigger pulse width T3 0 1000msec selectable 1 msec step Trigger delay T2 Minimumwidth...

Page 18: ...S data0 shield 5 NC 20 NC 6 DDC clock 21 NC 7 DDC data 22 T M D S clock shield 8 Analog Vertical sync 23 T M D S clock 9 T M D S data1 24 T M D S clock 10 T M D S data1 11 T M D S data1 shield C1 Anal...

Page 19: ...Connector Pin Definition CN2 Pin Signal Pin Signal 1 Analog Ground 6 Analog Ground 2 YPbPr Pr 7 Analog Ground 3 YPbPr Pb 8 Analog Ground 4 YPbPr Y 9 Analog Ground 5 Analog Ground Table 2 3 D sub Conne...

Page 20: ...Digital Input3 5 Digital Ground 18 Digital Output 3 6 Digital Ground 19 Digital Input4 7 Digital Ground 20 Digital Output 4 8 Digital Ground 21 Digital Ground 9 Digital Ground 22 Digital Ground 10 Di...

Page 21: ...is Off 1 TTL output Open collector 2 TTL output Open collector Table 2 5 Trigger Output Mode Select SW1 Digital output channel Switch is On Switch is Off 1 TTL output Open collector 2 TTL output Open...

Page 22: ...W3 Card Identification Setting 4321 On 0 OFF 1 Card Identification Setting 4321 0 0000 8 1000 1 0001 9 1001 2 0010 10 1010 3 0011 11 1011 4 0100 12 1100 5 0101 13 1101 6 0110 14 1110 7 0111 15 1111 Ta...

Page 23: ...12 Hardware Reference FPGA Golden Flash Selection SW4 Boot flash selection of Host FPGA Setting of Switch 21 Working flash OFF OFF Golden flash ON ON Table 2 8 FPGA Golden Flash Selection SW4 1 2 ON...

Page 24: ...r a Windows Vista operation system is described below Installation on other Windows systems will be similar to these steps 1 Run setup program 2 The installation will begin 3 If Net Framework 2 0 is n...

Page 25: ...14 Installation Guide...

Page 26: ...Installation Guide 15...

Page 27: ...16 Installation Guide 4 Click next until driver installation is complete...

Page 28: ...w is displayed please press Install this driver anyway to install the device drivers Note If a Found New Hardware Wizard window appears simply ignore it After the installation completes the Found New...

Page 29: ...18 Installation Guide 6 Finally the installation completes Click Finish If an error iccurred the installation will be rolled back...

Page 30: ...in the Win dows folder to ADLINK s technical support Note The log files on Vista system are moved to windir inf and renamed to setupapi app log and setupapi dev log where windir is Windows folder 7 C...

Page 31: ...security er ror while operating the ViewCreatorPro utility Turn off the User Account Control UAC by opening Start Settings Control Panel User Accounts Turn User Account Control on or off Uncheck the...

Page 32: ...on t need to familiar with DirectShow programming Besides the ADLINK API users also have another choice that is using DirectShow technologies to program your application DirectShow is a standard inter...

Page 33: ...ce to the following sections Category Function Name Section Device Control Hdv62_GetDeviceCount 4 3 Hdv62_DeviceOpen Hdv62_DeviceClose Hdv62_GetDeviceVendorName Hdv62_GetDeviceModelName Hdv62_GetDevic...

Page 34: ...set Hdv62_GetXOffset Hdv62_SetYOffset Hdv62_GetYOffset Hdv62_SetOutputFormat Hdv62_GetOutputFormat Hdv62_SetHDelay Hdv62_GetHDelay Hdv62_SetContrast Hdv62_GetContrast Hdv62_SetHue Hdv62_GetHue Hdv62_S...

Page 35: ...rigger Control Hdv62_SetTriggerInSource 4 7 Hdv62_GetTriggerInSource Hdv62_SetTriggerInPolarity Hdv62_GetTriggerInPolarity Hdv62_SoftwareTrigger Hdv62_SendOnePulseOut Hdv62_SetTriggerOutPolarity Hdv62...

Page 36: ...idReadyStatus 4 10 Hdv62_GetEdidReadyStatus Hdv62_SetEdidAccessPermission Hdv62_GetEdidAccessPermission Hdv62_SetEdidWriteProtection Hdv62_GetEdidWriteProtection Hdv62_SetEdidRomSelector Hdv62_GetEdid...

Page 37: ...dv62 Include Installed directory is the destination directory where you specified in setup program Include File Description Hdv62 h The header file required for all C C applica tions Hdv62 vb The func...

Page 38: ...etect maximum 16 devices Prototype C C int Hdv62_GetDeviceCount UINT Count C int GetDeviceCount out uint Count VB Net GetDeviceCount ByRef Count as UInteger As Integer Parameters Count the total numbe...

Page 39: ...hich have no Number parameter Prototype C C int Hdv62_DeviceOpen UINT Number C int DeviceOpen uint Number VB Net DeviceOpen ByVal Number As UInteger As Integer Parameters Number The number of which de...

Page 40: ...r application Prototype C C int Hdv62_DeviceClose UINT Number C int DeviceClose uint Number VB Net DeviceClose ByVal Number As UInteger As Integer Parameters Number The number of which device you want...

Page 41: ...ame VB Net GetDeviceVendorName As String Parameters Name Pointer to a user allocated buffer into which the function copies the vendor name string for example ADLINK The name is NULL terminated Return...

Page 42: ...yVal Number as UInteger As String Parameters Number The number of device The allowed value is from 0 to 15 Name Pointer to a user allocated buffer into which the function copies the model name string...

Page 43: ...lue is from 0 to 15 Version Pointer to a user allocated buffer into which the function copies the version string The version is NULL terminated There will be two types One is A2 A1 for carrier board p...

Page 44: ...s UInteger As String Parameters Number The number of device The allowed value is from 0 to 15 Version Pointer to a user allocated buffer into which the function copies the version string Its format is...

Page 45: ...umber as UInteger As String Parameters Number The number of device The allowed value is from 0 to 15 Version Pointer to a user allocated buffer into which the function copies the version string for ex...

Page 46: ...Number as UInteger As String Parameters Number The number of device The allowed value is from 0 to 15 Version Pointer to a user allocated buffer into which the function copies the version string for...

Page 47: ...of device The allowed value is from 0 to 15 ID Card ID can be set by DIP Switch on card Its possible value is from 0 to 15 Card ID can distinguish cards when multi cards were installed on one system...

Page 48: ...d can t restore it to proper state The effect of this function is same as rebooting computer but save lot of time of rebooting Prototype C C int Hdv62_DeviceReset UINT Number C int DeviceReset uint Nu...

Page 49: ...umber uint Channel int GetChannel uint Number out uint Channel VB Net SetChannel ByVal Number as UInteger ByVal Channel as UInteger As Integer GetChannel ByVal Number as UInteger ByRef Channel as UInt...

Page 50: ...at int GetSensorFormat uint Number out uint Format VB Net SetSensorFormat ByVal Number as UInteger ByVal Format as UInteger As Integer GetSensorFormat ByVal Number as UInteger ByRef Format as UInteger...

Page 51: ...525p 60 fps 720 x 480 progressive 3 625p 50 fps 720 x 576 progressive 4 720p 30 fps 1280 x 720 progressive 5 720p 50 fps 1280 x 720 progressive 6 720p 60 fps 1280 x 720 progressive 7 1080i 25 fps 192...

Page 52: ...ssive 8 VGA 60 fps 640 x 480 9 SVGA 60 fps 800 x 600 10 XGA 60 fps 1024 x 768 11 SXGA 60 fps 1280 x 1024 12 UXGA 60 fps 1600 x 1200 13 720p 50 fps RGB In 1280 x 720 progressive 14 720p 60 fps RGB In 1...

Page 53: ...sorWidth uint Number out uint Width VB Net GetSensorWidth ByVal Number as UInteger ByRef Width as UInteger As Integer Parameters Number The number of device The allowed value is from 0 to 15 Width The...

Page 54: ...ght C int GetSensorHeight uint Number out uint Height VB Net GetSensorHeight ByVal Number as UInteger ByRef Height as UInteger As Integer Parameters Number The number of device The allowed value is fr...

Page 55: ...l Number as UInteger ByRef Width as UInteger As Integer Parameters Number The number of device The allowed value is from 0 to 15 Width The active width of image as illustrated in Figure 4 1 The width...

Page 56: ...Ref Height as UInteger As Integer Parameters Number The number of device The allowed value is from 0 to 15 Height The active height of image as illustrated in Figure 4 1 The height coupled with YOffse...

Page 57: ...fset ByVal Number as UInteger ByRef XOffset as UInteger As Integer Parameters Number The number of device The allowed value is from 0 to 15 XOffset The start pixels of image cropping per line as illus...

Page 58: ...eger ByRef YOffset as UInteger As Integer Parameters Number The number of device The allowed value is from 0 to 15 YOffset The start lines of image cropping as illustrated in Figure 4 1 The YOffset co...

Page 59: ...Format uint Number out uint Format VB Net SetOutputFormat ByVal Number as UInteger ByVal Format as UInteger As Integer GetOutputFormat ByVal Number as UInteger ByRef Format as UInteger As Integer Para...

Page 60: ...bit Y 4 24bit YCbCr 4 4 4 8bit Y 8bit Cb 8bit Cr DWORD Pixel Data 31 0 31 24 23 16 15 8 7 0 dw0 xx B 9 4 B 3 0 G 9 6 G 5 0 R 9 8 R 7 0 DWORD Pixel Data 31 0 31 24 23 16 15 8 7 0 dw0 Alpha R G B DWORD...

Page 61: ...ls each line 2144 bytes 11 dummy bytes appended width 640 pixles each line 1712 bytes 5 dummy bytes appended width 720 pixles each line 1920 bytes 0 dummy bytes appended The formula is total bytes of...

Page 62: ...Function Library 51 Return Value No error occurs if return value 0 if negative value please refer to Section 4 9 for error information about return codes...

Page 63: ...Number out int Delay VB Net SetHDelay ByVal Number as UInteger ByVal Delay as Integer As Integer GetHDelay ByVal Number as UInteger ByRef Delay as Integer As Integer Parameters Number The number of d...

Page 64: ...uint Number out int Value VB Net SetContrast ByVal Number as UInteger ByVal Value as Integer As Integer GetContrast ByVal Number as UInteger ByRef Value as Integer As Integer Parameters Number The nu...

Page 65: ...umber out int Value VB Net SetHue ByVal Number as UInteger ByVal Value as Integer As Integer GetHue ByVal Number as UInteger ByRef Value as Integer As Integer Parameters Number The number of device Th...

Page 66: ...ion uint Number out int Value VB Net SetSaturation ByVal Number as UInteger ByVal Value as Integer As Integer GetSaturation ByVal Number as UInteger ByRef Value as Integer As Integer Parameters Number...

Page 67: ...r ByVal Number as UInteger ByRef Mode as UInteger As Integer Parameters Number The number of device The allowed value is from 0 to 15 Mode The type of event HDV62 has 2 kind of event one is frame even...

Page 68: ...mber out IntPtr Handle int GetEventHandle uint Number out SafeWaitHandle Handle VB Net SetEventHandle ByVal Number as UInteger ByVal Handle as IntPtr As Integer SetEventHandle ByVal Number as UInteger...

Page 69: ...58 Function Library Return Value No error occurs if return value 0 if negative value please refer to Section 4 9 for error information about return codes...

Page 70: ...eger ByRef Mode as UInteger As Integer Parameters Number The number of device The allowed value is from 0 to 15 Mode The type of callback HDV62 has 2 kind of callback one is frame callback and another...

Page 71: ...B Net SetCallback ByVal Number as UInteger ByVal Fun as HDV62CALLBACK As Integer GetCallback ByVal Number as UInteger ByRef Fun as HDV62CALLBACK As Integer Parameters Number The number of device The a...

Page 72: ...nt C int SetAcquisitionFrameCount uint Number uint Count int GetAcquisitionFrameCount uint Number out uint Count VB Net SetAcquisitionFrameCount ByVal Number as UInteger ByVal Count as UInteger As Int...

Page 73: ...62 Function Library Return Value No error occurs if return value 0 if negative value please refer to Section 4 9 for error information about return codes...

Page 74: ...ionStart UINT Number C int AcquisitionStart uint Number VB Net AcquisitionStart ByVal Number as UInteger As Integer Parameters Number The number of device The allowed value is from 0 to 15 Return Valu...

Page 75: ...ionStop UINT Number C int AcquisitionStop uint Number VB Net AcquisitionStop ByVal Number as UInteger As Integer Parameters Number The number of device The allowed value is from 0 to 15 Return Value N...

Page 76: ...pointer of frame image Prototype C C int Hdv62_OneShot UINT Number UINT Timeout C int OneShot uint Number uint Timeout VB Net OneShot ByVal Number as UInteger ByVal Timeout as UInteger As Integer Par...

Page 77: ...Hdv62_GetImageStream UINT Number void Buffer C int GetImageStream uint Number out IntPtr Buffer VB Net GetImageStream ByVal Number as UInteger ByRef Buffer as IntPtr As Integer Parameters Number The...

Page 78: ...r out uint Status VB Net GetAcquisitionStatus ByVal Number as UInteger ByRef Status as UInteger As Integer Parameters Number The number of device The allowed value is from 0 to 15 Status The status of...

Page 79: ...ount C int GetAcquisitionStatistics uint Number out uint Count VB Net GetAcquisitionStatistics ByVal Number as UInteger ByRef Count as UInteger As Integer Parameters Number The number of device The al...

Page 80: ...rs Number The number of device The allowed value is from 0 to 15 Locked Whether the input signal is locked It can be used as whether a proper sensor is connected It can be the follow ing values 0 No p...

Page 81: ...age ByVal Number as UInteger ByVal FileNamet as String As Integer Parameters Number The number of device The allowed value is from 0 to 15 FileName The name of image file The library supports followin...

Page 82: ...urce ByVal Number As UInteger ByVal Source As UInteger As Integer GetTriggerInSource ByVal Number As UInteger ByRef Source As UInteger As Integer Parameters Number The number of device The allowed val...

Page 83: ...Number out uint Polarity VB Net SetTriggerInPolarity ByVal Number As UInteger ByVal Polarity As UInteger As Integer GetTriggerInPolarity ByVal Number As UInteger ByRef Polarity As UInteger As Integer...

Page 84: ...otype C C int Hdv62_SoftwareTrigger UINT Number C int SoftwareTrigger uint Number VB Net SoftwareTrigger ByVal Number As UInteger As Integer Parameters Number The number of device The allowed value is...

Page 85: ...t Hdv62_SendOnePulseOut C int SendOnePulseOut uint Number VB Net SendOnePulseOut ByVal Number As UInteger As Integer Parameters Number The number of device The allowed value is from 0 to 15 Return Val...

Page 86: ...er out uint Polarity VB Net SetTriggerOutPolarity ByVal Number As UInteger ByVal Polarity As UInteger As Integer GetTriggerOutPolarity ByVal Number As UInteger ByRef Polarity As UInteger As Integer Pa...

Page 87: ...Width int GetTriggerOutPulseWidth uint Number out uint Width VB Net SetTriggerOutPulseWidth ByVal Number As UInteger ByVal Width As UInteger As Integer GetTriggerOutPulseWidth ByVal Number As UIntege...

Page 88: ...talIOSelector uint Number uint Channel int GetDigitalIOSelector uint Number out uint Channel VB Net SetDigitalIOSelector ByVal Number As UInteger ByVal Channel As UInteger As Integer GetDigitalIOSelec...

Page 89: ...lue VB Net GetDI ByVal Number As UInteger ByRef Value As UInteger As Integer Parameters Number The number of device The allowed value is from 0 to 15 Value The state of DI channel Could be one of the...

Page 90: ...le C int SetDIEvent uint Number uint Enable int GetDIEvent uint Number out uint Enable VB Net SetDIEvent ByVal Number As UInteger ByVal Enable As UInteger As Integer GetDIEvent ByVal Number As UIntege...

Page 91: ...uint Value VB Net SetDO ByVal Number As UInteger ByVal Value As UInteger As Integer GetDO ByVal Number As UInteger ByRef Value As UInteger As Integer Parameters Number The number of device The allowed...

Page 92: ...code char Text C string GetErrorText int code VB Net GetErrorText ByVal code As Integer As String Parameters Code The error code returned by other functions Text A string of error text Users need to a...

Page 93: ...dReadyStatus ByVal Number As UInteger ByRef Status As UInteger As Integer Parameters Number The number of device The allowed value is from 0 to 15 Status Indicates whether or not the EDID ROM is ready...

Page 94: ...Function Library 83 Figure 4 2 EDID ROM Architecture HDV62 Application External Device Ready Access Permission Write Protection EDID ROM...

Page 95: ...tatus As UInteger As Integer GetEdidAccessPermission ByVal Number As UInteger ByRef Status As UInteger As Integer Parameters Number The number of device The allowed value is from 0 to 15 Status Indica...

Page 96: ...Function Library 85 Return Value No error occurs if return value 0 if negative value please refer to Section 4 9 to get error information about return codes...

Page 97: ...s UInteger As Integer GetEdidWriteProtection ByVal Number As UInteger ByRef Status As UInteger As Integer Parameters Number The number of device The allowed value is from 0 to 15 Status Indicates whet...

Page 98: ...GetEdidRomSelector uint Number out uint Offset VB Net SetEdidRomSelector ByVal Number As UInteger ByVal Offset As UInteger As Integer GetEdidRomSelector ByVal Number As UInteger ByRef Offset As UInteg...

Page 99: ...int Number out uint Value VB Net SetEdidRom ByVal Number As UInteger ByVal Value As UInteger As Integer GetEdidRom ByVal Number As UInteger ByRef Value As UInteger As Integer Parameters Number The num...

Page 100: ...lter The ADLINK HDV62 Video Capture filter and the ADLINK HDV62 Crossbar fil ter can be obtained through system device enumerator After holding an interface pointer to the capture filter object use me...

Page 101: ...E_RGB8 MEDIASUBTYPE_BGR30 MEDIASUBTYPE_YUV8 and MEDIASUBTYPE_YU10 please refer to section 5 3 3 For IAd vance IVideoFormat and ICardInfo please refer to section 5 4 Filter Name ADLINK HDV62 Video Capt...

Page 102: ...oming from DVI I connector 1 Video YRYBY In is an YPbPr signal coming from D SUB connector 2 Video SerialDigital In is a HDMI signal coming from DVI I connector You can call IAMCrossbar Route routine...

Page 103: ...lter button to add the filters to a graph Then connect two filters pins by dragging mouse from one filter s output pin to another filter s input pin An arrow will be drawn if these two pins agree on t...

Page 104: ...3 ADLINK HDV62 Video Capture filter Video Format In the above picture System is current settings Content of Sensor Format is changed with different crossbar input Supported sensor format please refer...

Page 105: ...94 Programming Guide Video Proc Amp...

Page 106: ...Programming Guide 95 Video Decoder In the above graphic Signal Detected represents whether the input source is valid and Lines detected represents the valid lines of the input source...

Page 107: ...96 Programming Guide Capture Pin Properties In the above Color Space Compression is BGRA means BGR30 Supported Color Space please refers to section 5 3 3...

Page 108: ...Programming Guide 97 ADLINK HDV62 Crossbar filter Select input before the Capture pin of ADLINK HDV62 Video Cap ture filter is connected...

Page 109: ...ght click on ADLINK HDV62 Video Capture filter and select Filter Properties In ADLINK HDV62 Video Capture Properties dialog select the Sensor Format Click OK to close it 5 Right click on Capture pin o...

Page 110: ...tion about Displaying a Filter s Property Page can be found on Microsoft MSDN homepage Below is the example code for adding property pages pFilter points to an ADLINK HDV62 Video Capture filter or an...

Page 111: ...mming Guide IUnknown m_pFilter Pointer to the filter caGUID cElems Number of property pages caGUID pElems Pointer to property page CLSIDs 0 Locale identifier 0 Reserved NULL Reserved CoTaskMemFree caG...

Page 112: ...incoming video signal such as contrast saturation etc Other interfaces please refer to DirectX SDK help and next section pFilter points to an ADLINK HDV62 Video Capture filter IAMVideoProcAmp pAmp HRE...

Page 113: ...bar interface It routes signals from an analog or digital source to a video capture filter pFilter points to an ADLINK HDV62 Crossbar filter IAMCrossbar pXbar HRESULT hr hr pFilter QueryInterface IID_...

Page 114: ...x means don t care bit Its compression FOURCC code is BGRA and GUID is 41524742 0000 0010 8000 00AA00389B71 MEDIASUBTYPE_RGB32 8bit R 8bit G 8bit B 8bit Alpha DWORD Pixel Data 31 0 31 24 23 16 15 8 7...

Page 115: ...URCC code is YUV8 and GUID is 38565559 0000 0010 8000 00AA00389B71 MEDIASUBTYPE_YUY2 8bit Y 8bit Cb Cr YCbCr 4 2 2 DWORD Pixel Data 31 0 31 24 23 16 15 8 7 0 dw0 Y3 Y2 Y1 Y0 DWORD Pixel Data 31 0 31 2...

Page 116: ...2144 bytes 11 dummy bytes appended if width 640 pixles each line 1712 bytes 5 dummy bytes appended if width 720 pixles each line 1920 bytes 0 dummy bytes appended The formula is total bytes of each li...

Page 117: ...t select output format horizontal delay and set video cropping 5 4 1 1 Sensor Format Purpose These functions read or write source format of CCD sensor includ ing video standard resolution and frame ra...

Page 118: ...er second 1 625i 25 fps 720 x 576 interlace in frame per second 2 525p 60 fps 720 x 480 progressive 3 625p 50 fps 720 x 576 progressive 4 720p 30 fps 1280 x 720 progressive 5 720p 50 fps 1280 x 720 pr...

Page 119: ...8 VGA 60 fps 640 x 480 9 SVGA 60 fps 800 x 600 10 XGA 60 fps 1024 x 768 11 SXGA 60 fps 1280 x 1024 12 UXGA 60 fps 1600 x 1200 13 720p 50 fps RGB In 1280 x 720 progressive 14 720p 60 fps RGB In 1280 x...

Page 120: ...ger Parameters Rt A rectangle setting to crop the sensor image as illustrated in Figure 4 1 The rectangle must be located inside the sensor image Actual image starts from Rt left Rt top and its width...

Page 121: ...int WriteHDelay int Delay int ReadHDelay out int Delay VB Net WriteHDelay ByVal Delay As Integer As Integer ReadHDelay ByRef Delay As Integer As Integer Parameters Delay The horizontal delay of frame...

Page 122: ...UINT StopPin UINT Values HRESULT DIO_ReadDOs UINT StartPin UINT StopPin UINT Values C int DIO_ReadPins uint StartPin uint StopPin out uint Values int DIO_WritePins uint StartPin uint StopPin uint Valu...

Page 123: ...rtPin StopPin Values is the state of single pin Val ues 0 means low level and Values 1 means high level If StartPin StopPin Values is the states of multi pins Each respective bit of Values is the stat...

Page 124: ...on in this chapter to know how to cap ture the interrupt signal Prototype C C HRESULT DIO_EnableInterrupt HRESULT DIO_DisableInterrupt C int DIO_EnableInterrupt int DIO_DisableInterrupt VB Net DIO_Ena...

Page 125: ...lue int TriggerIn_ReadMode out uint Value VB Net TriggerIn_WriteMode ByVal Value As UInteger As Integer TriggerIn_ReadMode ByRef Value As UInteger As Integer Parameters Value Enable or disable trigger...

Page 126: ...ggerIn_ReadPolarity UINT Value C int TriggerIn_WritePolarity uint Value int TriggerIn_ReadPolarity out uint Value VB Net TriggerIn_WritePolarity ByVal Value As UInteger As Integer TriggerIn_ReadPolari...

Page 127: ...n Trigger Input is enabled Prototype C C HRESULT TriggerIn_SoftwareTrigger C int TriggerIn_SoftwareTrigger VB Net TriggerIn_SoftwareTrigger As Integer Parameters Return Value No error occurs if return...

Page 128: ...tput is an external pin which can output continuous pulse sig nal Prototype C C HRESULT TriggerOut_OnePulseOut C int TriggerOut_OnePulseOut VB Net TriggerOut_OnePulseOut As Integer Return Value No err...

Page 129: ...t Value int TriggerOut_ReadPolarity out uint Value VB Net TriggerOut_WritePolarity ByVal Value As UInteger As Integer TriggerOut_ReadPolarity ByRef Value As UInteger As Integer Parameters Value The ac...

Page 130: ...UINT Value C int TriggerIn_WritePulseWidth uint Value int TriggerIn_ReadPulseWidth out uint Value VB Net TriggerIn_WritePulseWidth ByVal Value As UInteger As Integer TriggerIn_ReadPulseWidth ByRef Val...

Page 131: ...alue As UInteger As Integer Parameters Value Indicates whether or not the EDID ROM is ready This value can be read by external device through DVI I connector Some external devices can auto adjusting t...

Page 132: ...ByRef Value As UInteger As Integer Parameters Status Indicates whether or not the EDID ROM can be accessed The EDID ROM can be accessed by either application or external device at the same time So if...

Page 133: ...n ByVal Value As UInteger As Integer EDID_ReadWriteProtection ByRef Value As UInteger As Integer Parameters Status Indicates whether or not the EDID ROM is writable Users need to break write protectio...

Page 134: ...fset out uint Value VB Net EDID_WriteRom ByVal Offset As UInteger ByVal Value As UInteger As Integer EDID_ReadRom ByVal Offset As UInteger ByRef Value As UInteger As Integer Parameters Offset Indicate...

Page 135: ...etHardwareVersion ByRef Version as UInteger As Integer GetFirmwareVersion ByRef Version as UInteger As Integer GetDriverVersion ByRef Version as UInteger As Integer Parameters Version A hexadecimal nu...

Page 136: ...re version the least 16 bits are carrier board version and the most 16 bits are daughter board version If most 16 bits are all zero the hardware is a single board Version of carrier board or daughter...

Page 137: ...D Card ID can be set by DIP switch on card Its possible value is from 0 to 15 Card ID can distinguish cards when multi cards were installed on one system Set them to different number according to chap...

Page 138: ...Cookie VB Net EnableEvent ByVal EventID As UInteger ByVal EventHandle As IntPtr ByRef Cookie As IntPtr As Integer DisableEvent ByVal EventID As UInteger ByValCookie As IntPtr As Integer Parameters Eve...

Page 139: ...or all C applications Hdv62Guids h The header file is required for all C applications DirectShowLib Imports this name space for all Microsoft Net applica tion Hdv62ProxyLib Imports this name space for...

Page 140: ...lasses dsw under DXSDK Sam ples C DirectShow BaseClasses and build it 2 Add the paths to the include directory in the settings of your project DXSDK include DXSDK Samples C DirectShow BaseClasses 3 Ad...

Page 141: ...ctShow COM objects to net classes Fortunately the work had been done as a sourceforge project Download the source codes and samples from http source forge net projects directshownet It is a good start...

Page 142: ...o is only available for Windows XP Vista with a recommended screen resolution higher than 800x600 6 1 Overview ViewCreatorPro offers the following features 32 bit operations under Windows XP Vista Dir...

Page 143: ...132 ViewCreatorPro Utility 6 2 Component Description Launch ViewCreatorPro and you can see the following view...

Page 144: ...rts in the system Active Device All operations will apply to this device Inactive Device Click the device name after this icon can activate this device Active port All operations will apply to this po...

Page 145: ...ay Users can drag and drop the slider or directly input a value in the edit box to change the value of each parameter Note that contrast hue and satura tion can be adjusted only when YPbPr is selected...

Page 146: ...Size Fit the images to the display region Original Size Restore the images to the original size Zoom In Zoom in the images Zoom Out Zoom out the images Focus Value Open a window to show the focus val...

Page 147: ...Utility When the capturing is stopped the background color of the win dow turns into black If the color format of captured images is RGB there are three curves individually represented red green and...

Page 148: ...ViewCreatorPro Utility 137 If the color format of captured images is YUV there are three curves individually represented y u and v in the chart...

Page 149: ...the vertical green line on the right side or on the left side Show Hide Red Values Show or hide the red value of pixels Show Hide Green Values Show or hide the green value of pixels Show Hide Blue Va...

Page 150: ...Items from left to right are selected port and channel cursor posi tion pixel value frame rate total captured frames and magnifica tion horizontal ratio vertical ratio 6 2 5 Display panel Captured im...

Page 151: ...same size as the display region If you want to drag the green rect angle in the same proposition of width and height keep pressing the Shift key before dragging Click the right mouse button on the ima...

Page 152: ...ViewCreatorPro Utility 141 6 2 6 Main Menu File menu Open Image Open an image file and display it on Display panel Save Image Save current displaying image to a bitmap file Exit Exit ViewCreatorPro...

Page 153: ...142 ViewCreatorPro Utility View menu Device Hide or unhide Devices panel Adjustment Hide or unhide Adjustment panel...

Page 154: ...mages to XGA 60 fps 1024 x 768 SXGA 60 fps 1280 x 1024 Set the video format of captured images to SXGA 60 fps 1280 x 1024 YPbPr DSUB 720p 25 fps 1280 x 720 progressive Set the video format of captured...

Page 155: ...progressive Set the video format of captured images to 1080p 25 fps 1920 x 1080 progressive 1080p 30 fps 1920 x 1080 progressive Set the video format of captured images to 1080p 30 fps 1920 x 1080 pro...

Page 156: ...essive YCRCB IN Set the video format of captured images to 1080p 25 fps 1920 x 1080 progressive 1080p 30 fps 1920 x 1080 progressive YCRCB IN Set the video format of captured images to 1080p 30 fps 19...

Page 157: ...format of captured images to 1080i 25 fps 1920 x 1080 interlace 1080i 30 fps 1920 x 1080 interlace RGB IN Set the video format of captured images to 1080i 30 fps 1920 x 1080 interlace 1080p 25 fps 19...

Page 158: ...color format of captured images to RGB32 RGB24 Set the color format of captured images to RGB24 BGR30 Set the color format of captured images to BGR30 YUY2 Set the color format of captured images to...

Page 159: ...these two values vary with your selected video format automatically Before cropping an image four parameters X Y Width Height must be properly set X and Y represent the coordinates of the start posit...

Page 160: ...r channels DO and four channels DI Click on the rectangle to output a digital signal and the signal level can be identified by the rectangle color Lime green High Green Low The status of DI can be rea...

Page 161: ...nal trigger input Besides trigger input HDV62 can generate an output trigger by clicking the One Pulse Out button Users can also set the polarity and pulse width for the output trigger EDID Before usi...

Page 162: ...ViewCreatorPro Utility 151 Help menu About ViewCreatorPro List the version of ViewCreatorPro About Device List the card id hardware version firmware version and driver version of the HDV62...

Page 163: ...152 ViewCreatorPro Utility...

Page 164: ...uipment Have surplus equipment taking up shelf space We ll give it a new home Learn more Visit us at artisantg com for more info on price quotes drivers technical specifications manuals and documentat...

Reviews: