📄 lvdcdefs.h
字号:
//=====================================================================
//[HEADER/OEM] LVDCDEFS.H
// Direct Capture Defines
//+
//[AUTHOR]
// John
//.
#ifndef __LVDCDEFS_H__
#define __LVDCDEFS_H__
typedef HANDLE HDCVIDEOWIN;
typedef HANDLE HOVERLAYTEXT;
typedef HANDLE HDCCONNECTION;
typedef DWORD STATUS;
#ifndef U32BIT
typedef unsigned char U8BIT;
typedef unsigned short int U16BIT;
typedef unsigned long U32BIT;
#endif
/*
* Resize modes
*/
//[DEFINE!] ResizeModes
// Resize modes for LvDcSetResizeMode
#define RM_CLIP 0x0001L
// OnScreenWindow definition -
//& The window can be freely resized by the user but the video
//& will be clipped to match the size of the window with the visiable portion of the video
//& centered in window. Scroll bars will be added to the window as necessary.
//
// OffScreenWindow definition -
//& The video will be clipped to match the size of the window with the visiable
//& portion of the video centered in window.
//
#define RM_SCALE 0x0002L
// OnScreenWindow definition -
//& The window can be freely resized by the user and the video will
//& be scaled to match the size of the window.
//
// OffScreenWindow definition -
//& The video will be scaled to match the size of the window.
//
#define RM_CLIPFIXED 0x0004L
// OnScreenWindow definition -
//& The video will be clipped to match the size of the window with the visiable
//& portion of the video centered in window. Also scroll bars will be added if
//& necessary. The size of the window will be fixed and unalterable by the user.
//
// OffScreenWindow definition -
//& Same as RM_CLIPFIXED.
//
#define RM_SCALEFIXED 0x0008L
// OnScreenWindow definition -
//& The video will be scaled to fit the size of the window and the size
//& of the window will be fixed and unalterable by the user.
//
// OffScreenWindow definition -
//Same as RM_SCALE.
//
#define RM_SOURCESIZE 0x0010L
// OnScreenWindow definition -
//& The video window will be sized to match the max size of the video
//& source and the window size will be fixed and unalterable by the user.
//
// OffScreenWindow definition -
//& The video window will be sized to match the maximum size of the video source.
//
#define RM_FROMONSCREEN 0x0020L
// OnScreenWindow definition -
//& No Meaning
//
// OffScreenWindow definition -
//& The resize mode of the window will be made to match the associated
//& on screen video window.
//.
#define RM_LAST 0x0040L
/*
* Mirroring modes
*/
//[DEFINE!] MirrorModes
// Mirroring mode definitions
#define MM_NONE 0x0001L
// No Mirroring
#define MM_VERTICAL 0x0002L
// Mirroring along the vertical axis
#define MM_HORIZONTAL 0x0004L
// Mirroring along the horizontal axis
#define MM_BOTH 0x0008L
// Mirroring along both the horizontal and vertical axis
#define MM_FROMONSCREEN 0x0010L
// Use the mirroring mode of the associated OnScreenWindow (for OffScreenWindows only)
//.
#define MM_LAST 0x0020L
/*
* Live actions
*/
//[DEFINE!] LiveActions
// LiveAction deffinitions
#define LA_NOACTION 0x0000L
// No live action are slected
#define LA_ONTOP 0x0001L
// Enable live video when the window is the top most window (for OnSceenWindows only)
#define LA_FOCUS 0x0002L
// Enable live video when the window recieves desktop focus (for OnSceenWindows only)
#define LA_AFTERONFREEZE 0x0004L
// Enable live video when the associated OnScreenWindow is frozen (for OffScreenWindows only)
//.
#define LA_LAST 0x0008L
/*
* Freeze actions
*/
//[DEFINE!] FreezeActions
// FreezeActions deffinitions
#define FA_NOACTION 0x0000L
// No freeze action are slected
#define FA_FOCUS_LOST 0x0001L
// Freeze the video if the windows desktop focus is lost (for OnSceenWindows only)
#define FA_OVERLAPPED_FULLY 0x0002L
// Freeze the video if the window is fully overlapped by other windows (for OnSceenWindows only)
#define FA_OVERLAPPED_PARTIALY 0x0004L
// Freeze the video if the window is partialy overlapped by other desktop windows (for OnSceenWindows only)
#define FA_AFTERONLIVE 0x0008L
// Freeze the video if the associated OnScreenWindow goes live.
//.
#define FA_LAST 0x0010L
/*
* Off screen Notify events
*/
//[DEFINE!] NotifyActions
//NotifyAction definitions
#define ON_SIZE 0x0001L
// Notify the OffScreenWindow when the associated OnScreenWindow changes size
#define ON_FREEZE 0x0002L
// Notify the OffScreenWindow when the associated OnScreenWindow Freezes
#define ON_LIVE 0x0004L
// Notify the OffScreenWindow when the associated OnScreenWindow goes Live
#define ON_MIRROR_MODE 0x0008L
// Notify the OffScreenWindow when the associated OnScreenWindow changes mirror mode
#define ON_RESIZE_MODE 0x0010L
// Notify the OffScreenWindow when the associated OnScreenWindow changes resize mode
//.
#define ON_LAST 0x0020L
/*
* Visability modes
*/
//[DEFINE!] VisabilityModes
//NotifyModes definitions
#define VM_PARTIAL 0x0000L
// Other windows can overlay this window but the overlapping portions are not overwritten.
#define VM_FULL 0x0001L
// The window is always "on top" and cannot be overlapped by other
//& windows and cannot be moved over the boarder of the desktop.
//.
#define VM_LAST 0x0002L
/*
* Live Modes
*
*/
//[DEFINE!] LiveModes
//LiveModes definitions
#define LM_HARDWARE 0x0000L
// Live video using Daisy and direct DMA
#define LM_SOFTWARE 0x0001L
// Live video using direct draw
#define WT_ONSCREEN 0L
#define WT_OFFSCREEN 1L
#define WT_BADHANDLE 0xffL
//[DEFINE!/OEM] DC_WaitSyncType
// Synchroniztion type for WaitSync methods
#define DC_SY_None 0
// No Synchronization required
#define DC_SY_Field_0 1
// Synchronize with the start of field 0
#define DC_SY_Field_1 2
// Synchronize with the start of field 1
#define DC_SY_Frame 3
// Synchronize with the start of frame
#define 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.
#define DC_Tgt_1 5
// First target
#define DC_Tgt_2 6
// Second target
#define DC_Tgt_3 7
// Third target
#define DC_Tgt_4 8
// Fourth target
#define DC_Tgt_Default 9
// Default target
//.
//[DEFINE!] DC_ROIColorFormat
// Color format definitions for ROI
#define DC_ColF_RGB_888a 10
// RGB Red 8 bit Green 8 bit Blue 8 bit Alpha 8 bit
#define DC_ColF_RGB_555a 11
// RGB Red 5 bit Green 5 bit Blue 5 bit Alpha 1 bit
#define DC_ColF_RGB_565 12
// RGB Red 5 bit Green 6 bit Blue 5 bit
#define DC_ColF_Mono_8 13
// Monochrome (256 grey scale)
#define DC_ColF_RGB_888 14
// RGB Red 8 bit Green 8 bit Blue 8 bit
#define DC_ColF_YUV_422 15
// YUV 4:2:2
#define DC_ColF_Last 16
// Last ROI Color Format definition
//.
#define DC_VT_Mono 17
#define DC_VT_RGB 18
#define DC_VT_YC_Comp 19
#define DC_VT_YC_Sep 20
//
// For internal use only
//
#define DC_SMd_Clip 21
#define DC_SMd_Scale 22
#define DC_Last 23
//
// Status message defines
//
#define DCT_I_NoError 0x0000
#define DCT_I_InfoMessage 0x0001
#define DCT_E_InvalidGrabber 0x0002
#define DCT_E_NotSupported 0x0003
#define DCT_E_InvalidMorrorType 0x0004
#define DCT_E_CameraNotConnected 0x0005
#define DCT_E_GrabberNotConnected 0x0006
#define DCT_E_CannotLockCamera 0x0007
#define DCT_E_CannotConnectCamera 0x0008
#define DCT_E_NotEnoughMemory 0x0009
#define DCT_E_InvalidTarget 0x000a
#define DCT_E_InvalidParameter 0x000b
#define DCT_E_InvalidBitDepth 0x000c
#define DCT_E_DirectDrawError 0x000d
#define DCT_E_MaxOverlayText 0x000e
#define DCT_E_InvaildUserMask 0x000f
#define DCT_E_InvalidColorFormat 0x0010
#define DCT_E_InvalidWinHandle 0x0011
#define DCT_E_InvalidConnectHandle 0x0012
#define DCT_E_CouldNotOpenClipboard 0x0013
#define DCT_E_NoWindowAssociated 0x0014
#define DCT_E_CannotActivateRoi 0x0015
#endif
//-[HEADER] LVDCDEFS.H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -