📄 lvdc.pas
字号:
MM_FROMONSCREEN= $0010;
// Use the mirroring mode of the associated OnScreenWindow (for OffScreenWindows only)
//.
MM_LAST= $0020;
//[DEFINE!] LiveActions
// LiveAction deffinitions
LA_NOACTION= $0000;
LA_ONTOP= $0001;
// Enable live video when the window is the top most window (for OnSceenWindows only)
LA_FOCUS= $0002;
// Enable live video when the window recieves desktop focus (for OnSceenWindows only)
LA_AFTERONFREEZE= $0004;
// Enable live video when the associated OnScreenWindow is frozen (for OffScreenWindows only)
//.
LA_LAST= $0008;
//[DEFINE!] FreezeActions
// FreezeActions deffinitions
FA_NOACTION= $0000;
FA_FOCUS_LOST= $0001;
// Freeze the video if the windows desktop focus is lost (for OnSceenWindows only)
FA_OVERLAPPED_FULLY= $0002;
// Freeze the video if the window is fully overlapped by other windows (for OnSceenWindows only)
FA_OVERLAPPED_PARTIALY= $0004;
// Freeze the video if the window is partialy overlapped by other desktop windows (for OnSceenWindows only)
FA_AFTERONLIVE= $0008;
// Freeze the video if the associated OnScreen window goes live (for OffScreenWidnows only)
//.
FA_LAST= $0010;
//[DEFINE!] NotifyActions
//NotifyAction definitions
ON_SIZE= $0001;
// Notify the OffScreenWindow when the associated OnScreenWindow changes size
ON_FREEZE= $0002;
ON_LIVE= $0004;
ON_MIRROR_MODE= $0008;
ON_RESIZE_MODE= $0010;
//.
ON_LAST= $0020;
//[DEFINE!] VisabilityModes
//VisabilityModes definitions
VM_PARTIAL= $0000;
// Other windows can overlay this window but the overlapping portions are not overwritten.
VM_FULL= $0001;
// The window is always "on top" and cannot be overlapped by other
//& windows and cannot be moved over the boarder of the desktop.
//.
VM_LAST= $0002;
//LiveMode Defines
LM_HARDWARE= $0000;
// Live video using Daisy and direct DMA
LM_SOFTWARE= $0001;
// Live video using direct draw
WT_ONSCREEN= $0000;
WT_OFFSCREEN= $0001;
WT_BADHANDLE= $00ff;
//[DEFINE!/OEM] DC_WaitSyncType
// Synchroniztion type for WaitSync methods
DC_SY_None= 0;
// No Synchronization required
DC_SY_Field_0= 1;
// Synchronize with the start of field 0
DC_SY_Field_1= 2;
// Synchronize with the start of field 1
DC_SY_Frame= 3;
// Synchronize with the start of frame
DC_SY_VSync= 4;
// Synchronize with the vertical sync pulse
//.
//[DEFINE!] DC_Targets
// Memory targets for image transfers. They are interpreted differently by
//& different boards.
// For Primaview the only allowed is Tgt_Default.
DC_Tgt_1= 5;
// First target
DC_Tgt_2= 6;
// Second target
DC_Tgt_3= 7;
// Third target
DC_Tgt_4= 8;
// Fourth target
DC_Tgt_Default= 9;
// Default target
//.
//[DEFINE!] DC_ROIColorFormat
// Color format definitions for ROI
DC_ColF_RGB_888a= 10;
// RGB Red 8 bit Green 8 bit Blue 8 bit Alpha 8 bit
DC_ColF_RGB_555a= 11;
// RGB Red 5 bit Green 5 bit Blue 5 bit Alpha 1 bit
DC_ColF_RGB_565= 12;
// RGB Red 5 bit Green 6 bit Blue 5 bit
DC_ColF_Mono_8= 13;
// Monochrome (256 grey scale)
DC_ColF_RGB_888= 14;
// RGB Red 8 bit Green 8 bit Blue 8 bit
DC_ColF_YUV_422= 15;
// YUV 4:2:2
DC_ColF_Last= 16;
// Last ROI Color Format definition
DC_VT_Mono= 17;
DC_VT_RGB= 18;
DC_VT_YC_Comp= 19;
DC_VT_YC_Sep= 20;
// Status message defines
//
DCT_I_NoError = $0000;
DCT_I_InfoMessage= $0001;
DCT_E_InvalidGrabber= $0002;
DCT_E_NotSupported= $0003;
DCT_E_InvalidMorrorType= $0004;
DCT_E_CameraNotConnected= $0005;
DCT_E_GrabberNotConnected= $0006;
DCT_E_CannotLockCamera= $0007;
DCT_E_CannotConnectCamera= $0008;
DCT_E_NotEnoughMemory= $0009;
DCT_E_InvalidTarget= $000a;
DCT_E_InvalidParameter= $000b;
DCT_E_InvalidBitDepth= $000c;
DCT_E_DirectDrawError= $000d;
DCT_E_MaxOverlayText= $000e;
DCT_E_InvaildUserMask= $000f;
DCT_E_InvalidColorFormat= $0010;
DCT_E_InvalidWinHandle= $0011;
DCT_E_InvalidConnectHandle= $0012;
DCT_E_CouldNotOpenClipboard= $0013;
DCT_E_NoWindowAssociated= $0014;
implementation
function LvDcAllocConnection; external 'lvdc.dll' name 'LvDcAllocConnection';
function LvDcCreateOnScreenWin; external 'lvdc.dll' name 'LvDcCreateOnScreenWin';
function LvDcCreateOffScreenWin; external 'lvdc.dll' name 'LvDcCreateOffScreenWin';
function LvDcLive; external 'lvdc.dll' name 'LvDcLive';
function LvDcFreeze; external 'lvdc.dll' name 'LvDcFreeze';
function LvDcGetConnectionHandle; external 'lvdc.dll' name 'LvDcGetConnectionHandle';
function LvDcConnectWin; external 'lvdc.dll' name 'LvDcConnectWin';
function LvDcDisconnectWin; external 'lvdc.dll' name 'LvDcDisconnectWin';
function LvDcIsWinConnected; external 'lvdc.dll' name 'LvDcIsWinConnected';
function LvDcSetResizeMode; external 'lvdc.dll' name 'LvDcSetResizeMode';
function LvDcGetResizeMode; external 'lvdc.dll' name 'LvDcSetResizeMode';
function LvDcSetLiveAction; external 'lvdc.dll' name 'LvDcSetLiveAction';
function LvDcGetLiveAction; external 'lvdc.dll' name 'LvDcSetLiveAction';
function LvDcSetFreezeAction; external 'lvdc.dll' name 'LvDcSetFreezeAction';
function LvDcGetFreezeAction; external 'lvdc.dll' name 'LvDcSetFreezeAction';
function LvDcSetMirrorMode; external 'lvdc.dll' name 'LvDcSetMirrorMode';
function LvDcGetMirrorMode; external 'lvdc.dll' name 'LvDcSetMirrorMode';
function LvDcSetWinSize; external 'lvdc.dll' name 'LvDcSetWinSize';
function LvDcGetWinSize; external 'lvdc.dll' name 'LvDcGetWinSize';
function LvDcSetWinVideoSize; external 'lvdc.dll' name 'LvDcSetWinVideoSize';
function LvDcGetWinVideoSize; external 'lvdc.dll' name 'LvDcGetWinVideoSize';
function LvDcSetWinPos; external 'lvdc.dll' name 'LvDcSetWinPos';
function LvDcGetWinPos; external 'lvdc.dll' name 'LvDcGetWinPos';
function LvDcCopyToClipboard; external 'lvdc.dll' name 'LvDcCopyToClipboard';
function LvDcGetBMP; external 'lvdc.dll' name 'LvDcGetBMP';
function LvDcSetVisibility; external 'lvdc.dll' name 'LvDcSetVisibility';
function LvDcGetVisibility; external 'lvdc.dll' name 'LvDcSetVisibility';
function LvDcAddOverlayText; external 'lvdc.dll' name 'LvDcAddOverlayText';
function LvDcChangeOverlayText; external 'lvdc.dll' name 'LvDcChangeOverlayText';
function LvDcChangeOverlayTextPos; external 'lvdc.dll' name 'LvDcChangeOverlayTextPos';
function LvDcChangeOverlayTextFont; external 'lvdc.dll' name 'LvDcChangeOverlayTextFont';
function LvDcChangeOverlayTextEnable; external 'lvdc.dll' name 'LvDcChangeOverlayTextEnable';
function LvDcDeleteOverlayText; external 'lvdc.dll' name 'LvDcDeleteOverlayText';
function LvDcLoadUserMask; external 'lvdc.dll' name 'LvDcLoadUserMask';
function LvDcSetUserMask; external 'lvdc.dll' name 'LvDcSetUserMask';
function LvDcUpdateUserMask; external 'lvdc.dll' name 'LvDcUpdateUserMask';
function LvDcGetCameraHeight; external 'lvdc.dll' name 'LvDcGetCameraHeight';
function LvDcGetCameraWidth; external 'lvdc.dll' name 'LvDcGetCameraWidth';
function LvDcSetColorFormat; external 'lvdc.dll' name 'LvDcSetColorFormat';
function LvDcGetColorFormat; external 'lvdc.dll' name 'LvDcGetColorFormat';
function LvDcAssociateOnWin; external 'lvdc.dll' name 'LvDcAssociateOnWin';
function LvDcSetBrightness; external 'lvdc.dll' name 'LvDcSetBrightness';
function LvDcSetContrast; external 'lvdc.dll' name 'LvDcSetContrast';
function LvDcSetHue; external 'lvdc.dll' name 'LvDcSetHue';
function LvDcSetSaturation; external 'lvdc.dll' name 'LvDcSetSaturation';
function LvDcGetBrightness; external 'lvdc.dll' name 'LvDcGetBrightness';
function LvDcGetContrast; external 'lvdc.dll' name 'LvDcGetContrast';
function LvDcGetHue; external 'lvdc.dll' name 'LvDcGetHue';
function LvDcGetSaturation; external 'lvdc.dll' name 'LvDcGetSaturation';
function LvDcLoadLUT; external 'lvdc.dll' name 'LvDcLoadLUT';
function LvDcEnableLog; external 'lvdc.dll' name 'LvDcEnableLog';
function LvDcDisableLog; external 'lvdc.dll' name 'LvDcDisableLog';
function LvDcGetVersion; external 'lvdc.dll' name 'LvDcGetVersion';
function LvDcCreateFont; external 'lvdc.dll' name 'LvDcCreateFont';
function LvDcSetLiveMode; external 'lvdc.dll' name 'LvDcSetLiveMode';
function LvDcGetLiveMode; external 'lvdc.dll' name 'LvDcGetLiveMode';
function LvDcGetVideoType; external 'lvdc.dll' name 'LvDcGetVideoType';
function LvDcEnableWin; external 'lvdc.dll' name 'LvDcEnableWin';
function LvDcIsLive; external 'lvdc.dll' name 'LvDcIsLive';
function LvDcGetWinType; external 'lvdc.dll' name 'LvDcGetWinType';
function LvDcCopyWin; external 'lvdc.dll' name 'LvDcGetWinType';
function LvDcGetOptocoupler; external 'lvdc.dll' name 'LvDcGetOptocoupler';
function LvDcSetOptocoupler; external 'lvdc.dll' name 'LvDcSetOptocoupler';
function LvDcSaveBMP; external 'lvdc.dll' name 'LvDcSaveBMP';
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -