MWCapture SDK Mac  3.3.1.16905
Functions
Pro Capture Family Functions

Functions

HCHANNEL LIBMWCAPTURE_API MWOpenChannel (int nBoardValue, int nChannelIndex)
 Opens channel according to the nBoardValue and nChannelIndex. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetDeviceTime (HCHANNEL hChannel, LONGLONG *pllTime)
 Gets Device clock according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetDeviceTime (HCHANNEL hChannel, LONGLONG llTime)
 Set Device time according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWRegulateDeviceTime (HCHANNEL hChannel, LONGLONG llTime)
 Calibration of the device time with the channel handle. More...
 
HTIMER LIBMWCAPTURE_API MWRegisterTimer (HCHANNEL hChannel, MWHANDLE hEvent)
 Registers timer according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWUnregisterTimer (HCHANNEL hChannel, HTIMER hTimer)
 Unregisters timer according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWScheduleTimer (HCHANNEL hChannel, HTIMER hTimer, LONGLONG llExpireTime)
 Schedules timer object according to channel handle. More...
 
HNOTIFY LIBMWCAPTURE_API MWRegisterNotify (HCHANNEL hChannel, MWHANDLE hEvent, DWORD dwEnableBits)
 Registers notification object according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWUnregisterNotify (HCHANNEL hChannel, HNOTIFY hNotify)
 Unregisters notification object. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetNotifyStatus (HCHANNEL hChannel, HNOTIFY hNotify, ULONGLONG *pullStatus)
 Gets notify status according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWStartVideoCapture (HCHANNEL hChannel, MWHANDLE hEvent)
 Starts video capture according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWStopVideoCapture (HCHANNEL hChannel)
 Stops video capture according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWPinVideoBuffer (HCHANNEL hChannel, MWCAP_PTR pbFrame, DWORD cbFrame)
 Pins a video buffer according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWUnpinVideoBuffer (HCHANNEL hChannel, LPBYTE pbFrame)
 Unlocks part of video buffer according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWCaptureVideoFrameToVirtualAddress (HCHANNEL hChannel, int iFrame, MWCAP_PTR pbFrame, DWORD cbFrame, DWORD cbStride, BOOLEAN bBottomUp, MWCAP_PTR64 pvContext, DWORD dwFOURCC, int cx, int cy)
 Captures a video frame, fills it into virtual memory. More...
 
MW_RESULT LIBMWCAPTURE_API MWCaptureVideoFrameToPhysicalAddress (HCHANNEL hChannel, int iFrame, LARGE_INTEGER llFrameAddress, DWORD cbFrame, DWORD cbStride, BOOLEAN bBottomUp, MWCAP_PTR64 pvContext, DWORD dwFOURCC, int cx, int cy)
 Stores captured video frames to physical addresses. More...
 
MW_RESULT LIBMWCAPTURE_API MWCaptureVideoFrameWithOSDToVirtualAddress (HCHANNEL hChannel, int iFrame, MWCAP_PTR pbFrame, DWORD cbFrame, DWORD cbStride, BOOLEAN bBottomUp, MWCAP_PTR64 pvContext, DWORD dwFOURCC, int cx, int cy, HOSD hOSDImage, const RECT *pOSDRects, int cOSDRects)
 Captures video frames to virtual memory, and adds OSD. More...
 
MW_RESULT LIBMWCAPTURE_API MWCaptureVideoFrameWithOSDToPhysicalAddress (HCHANNEL hChannel, int iFrame, LARGE_INTEGER llFrameAddress, DWORD cbFrame, DWORD cbStride, BOOLEAN bBottomUp, MWCAP_PTR64 pvContext, DWORD dwFOURCC, int cx, int cy, HOSD hOSDImage, const RECT *pOSDRects, int cOSDRects)
 Saves the captured video frame to physical memory and add OSD. More...
 
MW_RESULT LIBMWCAPTURE_API MWCaptureVideoFrameToVirtualAddressEx (HCHANNEL hChannel, int iFrame, LPBYTE pbFrame, DWORD cbFrame, DWORD cbStride, BOOLEAN bBottomUp, MWCAP_PTR64 pvContext, DWORD dwFOURCC, int cx, int cy, DWORD dwProcessSwitchs, int cyParitalNotify, HOSD hOSDImage, const RECT *pOSDRects, int cOSDRects, SHORT sContrast, SHORT sBrightness, SHORT sSaturation, SHORT sHue, MWCAP_VIDEO_DEINTERLACE_MODE deinterlaceMode, MWCAP_VIDEO_ASPECT_RATIO_CONVERT_MODE aspectRatioConvertMode, const RECT *pRectSrc, const RECT *pRectDest, int nAspectX, int nAspectY, MWCAP_VIDEO_COLOR_FORMAT colorFormat, MWCAP_VIDEO_QUANTIZATION_RANGE quantRange, MWCAP_VIDEO_SATURATION_RANGE satRange)
 Save captured video frames to system memory. It is the extended MWCaptureVideoFrameToVirtualAddress. More...
 
MW_RESULT LIBMWCAPTURE_API MWCaptureVideoFrameToPhysicalAddressEx (HCHANNEL hChannel, int iFrame, LARGE_INTEGER llFrameAddress, DWORD cbFrame, DWORD cbStride, BOOLEAN bBottomUp, MWCAP_PTR64 pvContext, DWORD dwFOURCC, int cx, int cy, DWORD dwProcessSwitchs, int cyParitalNotify, HOSD hOSDImage, const RECT *pOSDRects, int cOSDRects, SHORT sContrast, SHORT sBrightness, SHORT sSaturation, SHORT sHue, MWCAP_VIDEO_DEINTERLACE_MODE deinterlaceMode, MWCAP_VIDEO_ASPECT_RATIO_CONVERT_MODE aspectRatioConvertMode, const RECT *pRectSrc, const RECT *pRectDest, int nAspectX, int nAspectY, MWCAP_VIDEO_COLOR_FORMAT colorFormat, MWCAP_VIDEO_QUANTIZATION_RANGE quantRange, MWCAP_VIDEO_SATURATION_RANGE satRange)
 Captures video frames and saves to physical memory. And is the extended version of MWCaptureVideoFrameToPhysicalAddress. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoBufferInfo (HCHANNEL hChannel, MWCAP_VIDEO_BUFFER_INFO *pVideoBufferInfo)
 Gets video buffered in the pro capture card according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoFrameInfo (HCHANNEL hChannel, BYTE i, MWCAP_VIDEO_FRAME_INFO *pVideoFrameInfo)
 Gets video frame information. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureStatus (HCHANNEL hChannel, MWCAP_VIDEO_CAPTURE_STATUS *pStatus)
 Gets video capture state, and frees up system storage. More...
 
MW_RESULT LIBMWCAPTURE_API MWStartAudioCapture (HCHANNEL hChannel)
 Starts audio capturing of specified channel. More...
 
MW_RESULT LIBMWCAPTURE_API MWStopAudioCapture (HCHANNEL hChannel)
 Stops to capture audio according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWCaptureAudioFrame (HCHANNEL hChannel, MWCAP_AUDIO_CAPTURE_FRAME *pAudioCaptureFrame)
 Captures audio frame according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetPostReconfig (HCHANNEL hChannel, DWORD dwDelayMS)
 Sends instructions for rereading configurations to delay the execution. More...
 
HOSD LIBMWCAPTURE_API MWCreateImage (HCHANNEL hChannel, int cx, int cy)
 Creates OSD image according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWOpenImage (HCHANNEL hChannel, HOSD hImage, LONG *plRet)
 Opens OSD images. More...
 
MW_RESULT LIBMWCAPTURE_API MWCloseImage (HCHANNEL hChannel, HOSD hImage, LONG *plRet)
 Closes image according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWUploadImageFromVirtualAddress (HCHANNEL hChannel, HOSD hImage, MWCAP_VIDEO_COLOR_FORMAT cfDest, MWCAP_VIDEO_QUANTIZATION_RANGE quantRangeDest, MWCAP_VIDEO_SATURATION_RANGE satRangeDest, WORD xDest, WORD yDest, WORD cxDest, WORD cyDest, MWCAP_PTR64 pvSrcFrame, DWORD cbSrcFrame, DWORD cbSrcStride, WORD cxSrc, WORD cySrc, BOOLEAN bSrcBottomUp, BOOLEAN bSrcPixelAlpha, BOOLEAN bSrcPixelXBGR)
 Uploads images from system memory to capture device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUploadImageFromPhysicalAddress (HCHANNEL hChannel, HOSD hImage, MWCAP_VIDEO_COLOR_FORMAT cfDest, MWCAP_VIDEO_QUANTIZATION_RANGE quantRangeDest, MWCAP_VIDEO_SATURATION_RANGE satRangeDest, WORD xDest, WORD yDest, WORD cxDest, WORD cyDest, LARGE_INTEGER llSrcFrameAddress, DWORD cbSrcFrame, DWORD cbSrcStride, WORD cxSrc, WORD cySrc, BOOLEAN bSrcBottomUp, BOOLEAN bSrcPixelAlpha, BOOLEAN bSrcPixelXBGR)
 Uploads an image from physical memory to capture device. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetTemperature (HCHANNEL hChannel, unsigned int *pnTemp)
 Gets the temperature of capture card. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoOSDSettings (HCHANNEL hChannel, MWCAP_VIDEO_OSD_SETTINGS *pOSDSettings)
 Gets OSD settings according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetVideoOSDSettings (HCHANNEL hChannel, MWCAP_VIDEO_OSD_SETTINGS OSDSettings)
 Sets OSD settings according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoOSDImage (HCHANNEL hChannel, MWCAP_VIDEO_OSD_IMAGE *pOSDImage)
 Gets OSD according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetVideoOSDImage (HCHANNEL hChannel, MWCAP_VIDEO_OSD_IMAGE OSDImage)
 Sets OSD according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoBrightness (HCHANNEL hChannel, int *pnBrightness)
 Gets the brightness of video captured according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetVideoBrightness (HCHANNEL hChannel, int nBrightness)
 Sets the brightness of video captured according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoContrast (HCHANNEL hChannel, int *pnContrast)
 Gets the contrast of video captured according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetVideoContrast (HCHANNEL hChannel, int nContrast)
 Sets the contrast of video captured according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoHue (HCHANNEL hChannel, int *pnHue)
 Gets the hue of video captured according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetVideoHue (HCHANNEL hChannel, int nHue)
 Sets the hue of video captured according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoSaturation (HCHANNEL hChannel, int *pnSaturation)
 Gets the saturation of video captured according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetVideoSaturation (HCHANNEL hChannel, int nSaturation)
 Sets the saturation of video captured according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSaveSettingsAsPreset (HCHANNEL hChannel)
 Saves the presetting configurations of video capture according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWReloadPreset (HCHANNEL hChannel)
 Reloads the presetting configurations of video capture according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoAutoHAlign (HCHANNEL hChannel, BOOLEAN *pbAuto)
 Gets whether the horizontal direction of the video is automatically adjusted according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetVideoAutoHAlign (HCHANNEL hChannel, BOOLEAN bAuto)
 Sets whether the horizontal direction of the video is automatically adjusted according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoSamplingPhase (HCHANNEL hChannel, BYTE *pbyValue)
 Gets the sampling phase according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetVideoSamplingPhase (HCHANNEL hChannel, BYTE byValue)
 Sets the sampling phase according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoSamplingPhaseAutoAdjust (HCHANNEL hChannel, BOOLEAN *pbAuto)
 Gets whether the video sampling phase is automatically adjusted according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetVideoSamplingPhaseAutoAdjust (HCHANNEL hChannel, BOOLEAN bAuto)
 Sets whether the video sampling phase is automatically adjusted according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetVideoTiming (HCHANNEL hChannel, MWCAP_VIDEO_TIMING videoTiming)
 Sets the video timing according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoPreferredTimingArray (HCHANNEL hChannel, MWCAP_VIDEO_TIMING *pVideoTiming, long *plCount)
 Gets the preset video timing array according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetCustomVideoTiming (HCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING videoTiming)
 Sets the customized video timing according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetCustomVideoTimingsCount (HCHANNEL hChannel, DWORD *pdwCount)
 Gets the number of customized video timing according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetCustomVideoTimingsArray (HCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING *pVideoCustomTiming, DWORD *pdwCount)
 Gets customized video timing array according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetCustomVideoTimingsArray (HCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING *pVideoCustomTiming, DWORD dwCount)
 Sets customized video timing array according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetCustomVideoResolutionsCount (HCHANNEL hChannel, DWORD *pdwCount)
 Gets the number of customized video resolution according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetCustomVideoResolutionsArray (HCHANNEL hChannel, MWCAP_SIZE *pResolutionSize, DWORD *pdwCount)
 Gets customized video resolution array according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetCustomVideoResolutionsArray (HCHANNEL hChannel, MWCAP_SIZE *pResolutionSize, DWORD dwCount)
 Sets customized video resolution array according to channel handle. More...
 
MWCAP_PTR LIBMWCAPTURE_API MWCreateEvent ()
 Creates events. More...
 
MW_RESULT LIBMWCAPTURE_API MWCloseEvent (MWCAP_PTR hEvent)
 Destroys the event. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetEvent (MWCAP_PTR hEvent)
 Triggers the event. More...
 
MW_RESULT LIBMWCAPTURE_API MWClearEvent (MWCAP_PTR hEvent)
 Resets the event. More...
 
BOOLEAN LIBMWCAPTURE_API MWIsSetEvent (MWCAP_PTR hEvent)
 Querys whether the event is triggered. More...
 
int LIBMWCAPTURE_API MWTryWaitEvent (MWCAP_PTR hEvent)
 Waits for the event. More...
 
int LIBMWCAPTURE_API MWWaitEvent (MWCAP_PTR hEvent, int nTimeout)
 Waits for the event. More...
 
DWORD LIBMWCAPTURE_API MWMultiWaitEvent (MWCAP_PTR *hEvents, int nCount, int nTimeout)
 Waits for the events. More...
 

Detailed Description

Function Documentation

◆ MWCaptureAudioFrame()

MW_RESULT LIBMWCAPTURE_API MWCaptureAudioFrame ( HCHANNEL  hChannel,
MWCAP_AUDIO_CAPTURE_FRAME pAudioCaptureFrame 
)

Captures audio frame according to channel handle.

Parameters
[in]hChannelChannel handle
[out]pAudioCaptureFrameCaptured audio frame
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWCaptureVideoFrameToPhysicalAddress()

MW_RESULT LIBMWCAPTURE_API MWCaptureVideoFrameToPhysicalAddress ( HCHANNEL  hChannel,
int  iFrame,
LARGE_INTEGER  llFrameAddress,
DWORD  cbFrame,
DWORD  cbStride,
BOOLEAN  bBottomUp,
MWCAP_PTR64  pvContext,
DWORD  dwFOURCC,
int  cx,
int  cy 
)

Stores captured video frames to physical addresses.

Parameters
[in]hChannelVideo channel handle that has started video capturing
[in]iFrameVideo frame number to be captured
[in]llFrameAddressPhysical addresses that store the captured video frames
[in]cbFrameByte length of memory that stores the captured data
[in]cbStrideStep of memory that stores the captured data
[in]bBottomUpWhether to store the captured video frames from bottom to top
[in]pvContextCustom context pointers
[in]dwFOURCCColor format of captured video frames, see MWFOURCC.h.
[in]cxWidth of captured video frames
[in]cyHeight of captured video frames
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWCaptureVideoFrameToPhysicalAddressEx()

MW_RESULT LIBMWCAPTURE_API MWCaptureVideoFrameToPhysicalAddressEx ( HCHANNEL  hChannel,
int  iFrame,
LARGE_INTEGER  llFrameAddress,
DWORD  cbFrame,
DWORD  cbStride,
BOOLEAN  bBottomUp,
MWCAP_PTR64  pvContext,
DWORD  dwFOURCC,
int  cx,
int  cy,
DWORD  dwProcessSwitchs,
int  cyParitalNotify,
HOSD  hOSDImage,
const RECT pOSDRects,
int  cOSDRects,
SHORT  sContrast,
SHORT  sBrightness,
SHORT  sSaturation,
SHORT  sHue,
MWCAP_VIDEO_DEINTERLACE_MODE  deinterlaceMode,
MWCAP_VIDEO_ASPECT_RATIO_CONVERT_MODE  aspectRatioConvertMode,
const RECT pRectSrc,
const RECT pRectDest,
int  nAspectX,
int  nAspectY,
MWCAP_VIDEO_COLOR_FORMAT  colorFormat,
MWCAP_VIDEO_QUANTIZATION_RANGE  quantRange,
MWCAP_VIDEO_SATURATION_RANGE  satRange 
)

Captures video frames and saves to physical memory. And is the extended version of MWCaptureVideoFrameToPhysicalAddress.

Parameters
[in]hChannelVideo channel handle that has started video capturing
[in]iFrameVideo frame number to be captured
[in]llFrameAddressPhysical addresses that store the captured video frames
[in]cbFrameByte length of memory that stores the captured data
[in]cbStrideStep of memory that stores the captured data
[in]bBottomUpWhether to store the captured video frames from bottom to top
[in]pvContextCustom context pointers
[in]dwFOURCCColor format of captured video frames, see MWFOURCC.h.
[in]cxwidth of captured video frames
[in]cyHeight of captured video frames
[in]dwProcessSwitchsMask of video processing refers to MWCAP_VIDEO_PROCESS_xx
[in]cyParitalNotifyThe number of lines when capturing by lines
[in]hOSDImageOSD image handle which is geted using MWCreateImage(HCHANNEL hChannel,int cx,int cy)
[in]pOSDRectsTarget area of OSD image
[in]cOSDRectsNumber of OSD image target areas
[in]sContrastContrast
[in]sBrightnessBrightness
[in]sSaturationSaturation
[in]sHueHue
[in]deinterlaceModeDeinterlace Mode
[in]aspectRatioConvertModeAspect Ratio Convert Mode
[in]pRectSrcThe source area of the image to capture
[in]pRectDestThe destination area of the image to capture
[in]nAspectXWidth of the aspect ratio
[in]nAspectYHeight of the aspect ratio
[in]colorFormatColor Format
[in]quantRangeQuantization Range
[in]satRangeSaturation Range
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWCaptureVideoFrameToVirtualAddress()

MW_RESULT LIBMWCAPTURE_API MWCaptureVideoFrameToVirtualAddress ( HCHANNEL  hChannel,
int  iFrame,
MWCAP_PTR  pbFrame,
DWORD  cbFrame,
DWORD  cbStride,
BOOLEAN  bBottomUp,
MWCAP_PTR64  pvContext,
DWORD  dwFOURCC,
int  cx,
int  cy 
)

Captures a video frame, fills it into virtual memory.

Parameters
[in]hChannelOpened video capture channel handle
[in]iFrameVideo frame number to be captured
[out]pbFrameStores virtual memory pointers for captured data
[in]cbFrameByte length of memory that stores the captured data
[in]cbStrideStep of memory that stores the captured data
[in]bBottomUpWhether to store the captured video frames from bottom to top
[in]pvContextCustom context pointers
[in]dwFOURCCColor format of captured video frames, see MWFOURCC.h.
[in]cxWidth of captured video frames
[in]cyHeight of captured video frames
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWCaptureVideoFrameToVirtualAddressEx()

MW_RESULT LIBMWCAPTURE_API MWCaptureVideoFrameToVirtualAddressEx ( HCHANNEL  hChannel,
int  iFrame,
LPBYTE  pbFrame,
DWORD  cbFrame,
DWORD  cbStride,
BOOLEAN  bBottomUp,
MWCAP_PTR64  pvContext,
DWORD  dwFOURCC,
int  cx,
int  cy,
DWORD  dwProcessSwitchs,
int  cyParitalNotify,
HOSD  hOSDImage,
const RECT pOSDRects,
int  cOSDRects,
SHORT  sContrast,
SHORT  sBrightness,
SHORT  sSaturation,
SHORT  sHue,
MWCAP_VIDEO_DEINTERLACE_MODE  deinterlaceMode,
MWCAP_VIDEO_ASPECT_RATIO_CONVERT_MODE  aspectRatioConvertMode,
const RECT pRectSrc,
const RECT pRectDest,
int  nAspectX,
int  nAspectY,
MWCAP_VIDEO_COLOR_FORMAT  colorFormat,
MWCAP_VIDEO_QUANTIZATION_RANGE  quantRange,
MWCAP_VIDEO_SATURATION_RANGE  satRange 
)

Save captured video frames to system memory. It is the extended MWCaptureVideoFrameToVirtualAddress.

Parameters
[in]hChannelVideo channel handle that has started video capturing
[in]iFrameVideo frame number to be captured
[out]pbFramePhysical addresses that store the captured video frames
[in]cbFrameByte length of memory that stores the captured data
[in]cbStrideStep of memory that stores the captured data
[in]bBottomUpWhether to store the captured video frames from bottom to top
[in]pvContextCustom context pointers
[in]dwFOURCCColor format of captured video frames, see MWFOURCC.h.
[in]cxwidth of captured video frames
[in]cyHeight of captured video frames
[in]dwProcessSwitchsImage processing mask. Refers to MWCAP_VIDEO_PROCESS_xx
[in]cyParitalNotifyNumber of rows captured by lines
[in]hOSDImageOSD image handle which is geted using MWCreateImage.
[in]pOSDRectsTarget area of OSD image
[in]cOSDRectsNumber of OSD image target areas
[in]sContrastContrast
[in]sBrightnessBrightness
[in]sSaturationSaturation
[in]sHueHue
[in]deinterlaceModeDeinterlace Mode
[in]aspectRatioConvertModeAspect Ratio Convert Mode
[in]pRectSrcThe source area of the image to capture
[in]pRectDestThe destination area of the image to capture
[in]nAspectXWidth of the aspect ratio
[in]nAspectYHeight of the aspect ratio
[in]colorFormatColor Format
[in]quantRangeQuantization Range
[in]satRangeSaturation Range
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS
Note
Refers to MWCaptureVideoFrameToVirtualAddress()

◆ MWCaptureVideoFrameWithOSDToPhysicalAddress()

MW_RESULT LIBMWCAPTURE_API MWCaptureVideoFrameWithOSDToPhysicalAddress ( HCHANNEL  hChannel,
int  iFrame,
LARGE_INTEGER  llFrameAddress,
DWORD  cbFrame,
DWORD  cbStride,
BOOLEAN  bBottomUp,
MWCAP_PTR64  pvContext,
DWORD  dwFOURCC,
int  cx,
int  cy,
HOSD  hOSDImage,
const RECT pOSDRects,
int  cOSDRects 
)

Saves the captured video frame to physical memory and add OSD.

Parameters
[in]hChannelVideo channel handle that has started video capturing
[in]iFrameVideo frame number to be captured
[in]llFrameAddressPhysical addresses that store the captured video frames
[in]cbFrameByte length of memory that stores the captured data
[in]cbStrideStep of memory that stores the captured data
[in]bBottomUpWhether to store the captured video frames from bottom to top
[in]pvContextCustom context pointers
[in]dwFOURCCColor format of captured video frames, see MWFOURCC.h.
[in]cxwidth of captured video frames
[in]cyHeight of captured video frames
[in]hOSDImagehandle of OSD image which is geted using MWCreateImage.
[in]pOSDRectsTarget area of OSD image
[in]cOSDRectsNumber of OSD image target areas
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWCaptureVideoFrameWithOSDToVirtualAddress()

MW_RESULT LIBMWCAPTURE_API MWCaptureVideoFrameWithOSDToVirtualAddress ( HCHANNEL  hChannel,
int  iFrame,
MWCAP_PTR  pbFrame,
DWORD  cbFrame,
DWORD  cbStride,
BOOLEAN  bBottomUp,
MWCAP_PTR64  pvContext,
DWORD  dwFOURCC,
int  cx,
int  cy,
HOSD  hOSDImage,
const RECT pOSDRects,
int  cOSDRects 
)

Captures video frames to virtual memory, and adds OSD.

Parameters
[in]hChannelVideo channel handle that has started video capturing
[in]iFrameVideo frame number to be captured
[out]pbFramePhysical addresses that store the captured video frames
[in]cbFrameByte length of memory that stores the captured data
[in]cbStrideStep of memory that stores the captured data
[in]bBottomUpWhether to store the captured video frames from bottom to top
[in]pvContextCustom context pointers
[in]dwFOURCCColor format of captured video frames, see MWFOURCC.h.
[in]cxWidth of captured video frames
[in]cyHeight of captured video frames
[in]hOSDImageHandle of OSD image which is geted using MWCreateImage
[in]pOSDRectsTarget area of OSD image
[in]cOSDRectsNumber of OSD image target areas
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWClearEvent()

MW_RESULT LIBMWCAPTURE_API MWClearEvent ( MWCAP_PTR  hEvent)

Resets the event.

Parameters
[in]hEventEvent
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWCloseEvent()

MW_RESULT LIBMWCAPTURE_API MWCloseEvent ( MWCAP_PTR  hEvent)

Destroys the event.

Parameters
[in]hEventEvent handle
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWCloseImage()

MW_RESULT LIBMWCAPTURE_API MWCloseImage ( HCHANNEL  hChannel,
HOSD  hImage,
LONG *  plRet 
)

Closes image according to channel handle.

Parameters
[in]hChannelOpened channel handle
[in]hImageImage handle
[out]plRetReturns counts of the image being called
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWCreateEvent()

MWCAP_PTR LIBMWCAPTURE_API MWCreateEvent ( )

Creates events.

Returns
Returns event handle if succeeded, otherwise return 0

◆ MWCreateImage()

HOSD LIBMWCAPTURE_API MWCreateImage ( HCHANNEL  hChannel,
int  cx,
int  cy 
)

Creates OSD image according to channel handle.

Parameters
[in]hChannelOpened channel handle
[in]cxWidth of image
[in]cyHeight of image
Returns
Returns handle of the OSD image if succeeded, otherwise returns NULL

◆ MWGetCustomVideoResolutionsArray()

MW_RESULT LIBMWCAPTURE_API MWGetCustomVideoResolutionsArray ( HCHANNEL  hChannel,
MWCAP_SIZE pResolutionSize,
DWORD *  pdwCount 
)

Gets customized video resolution array according to channel handle.

Parameters
[in]hChannelChannel handle
[out]pResolutionSizeCustomized video resolution
[out]pdwCountThe number of customized video resolution
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetCustomVideoResolutionsCount()

MW_RESULT LIBMWCAPTURE_API MWGetCustomVideoResolutionsCount ( HCHANNEL  hChannel,
DWORD *  pdwCount 
)

Gets the number of customized video resolution according to channel handle.

Parameters
[in]hChannelChannel handle
[out]pdwCountThe number of customized video resolution
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetCustomVideoTimingsArray()

MW_RESULT LIBMWCAPTURE_API MWGetCustomVideoTimingsArray ( HCHANNEL  hChannel,
MWCAP_VIDEO_CUSTOM_TIMING pVideoCustomTiming,
DWORD *  pdwCount 
)

Gets customized video timing array according to channel handle.

Parameters
[in]hChannelChannel handle
[out]pVideoCustomTimingCustomized video timing
[out]pdwCountThe number of customized video timing
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetCustomVideoTimingsCount()

MW_RESULT LIBMWCAPTURE_API MWGetCustomVideoTimingsCount ( HCHANNEL  hChannel,
DWORD *  pdwCount 
)

Gets the number of customized video timing according to channel handle.

Parameters
[in]hChannelChannel handle
[out]pdwCountThe number of customized video timing
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetDeviceTime()

MW_RESULT LIBMWCAPTURE_API MWGetDeviceTime ( HCHANNEL  hChannel,
LONGLONG *  pllTime 
)

Gets Device clock according to the channel handle.

Parameters
[in]hChannelChannel handle
[out]pllTimeTime
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetNotifyStatus()

MW_RESULT LIBMWCAPTURE_API MWGetNotifyStatus ( HCHANNEL  hChannel,
HNOTIFY  hNotify,
ULONGLONG *  pullStatus 
)

Gets notify status according to channel handle.

Parameters
[in]hChannelChannel handle
[in]hNotifyHandle of notify object
[out]pullStatusNotify status
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetTemperature()

MW_RESULT LIBMWCAPTURE_API MWGetTemperature ( HCHANNEL  hChannel,
unsigned int *  pnTemp 
)

Gets the temperature of capture card.

Parameters
[in]hChannelOpened channel handle
[out]pnTempCapture card temperature
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoAutoHAlign()

MW_RESULT LIBMWCAPTURE_API MWGetVideoAutoHAlign ( HCHANNEL  hChannel,
BOOLEAN *  pbAuto 
)

Gets whether the horizontal direction of the video is automatically adjusted according to channel handle.

Parameters
[in]hChannelChannel handle
[out]pbAutoWhether the horizontal direction of the video is automatically adjusted
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoBrightness()

MW_RESULT LIBMWCAPTURE_API MWGetVideoBrightness ( HCHANNEL  hChannel,
int *  pnBrightness 
)

Gets the brightness of video captured according to channel handle.

Parameters
[in]hChannelChannel handle
[out]pnBrightnessBrightness of video capture
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoBufferInfo()

MW_RESULT LIBMWCAPTURE_API MWGetVideoBufferInfo ( HCHANNEL  hChannel,
MWCAP_VIDEO_BUFFER_INFO pVideoBufferInfo 
)

Gets video buffered in the pro capture card according to channel handle.

Parameters
[in]hChannelVideo channel handle that has started video capturing
[out]pVideoBufferInfoVideo bufferring information
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoCaptureStatus()

MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureStatus ( HCHANNEL  hChannel,
MWCAP_VIDEO_CAPTURE_STATUS pStatus 
)

Gets video capture state, and frees up system storage.

Parameters
[in]hChannelVideo channel handle that has started video capturing
[out]pStatusReturns video capture state
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoContrast()

MW_RESULT LIBMWCAPTURE_API MWGetVideoContrast ( HCHANNEL  hChannel,
int *  pnContrast 
)

Gets the contrast of video captured according to channel handle.

Parameters
[in]hChannelChannel handle
[out]pnContrastContrast of video captured
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoFrameInfo()

MW_RESULT LIBMWCAPTURE_API MWGetVideoFrameInfo ( HCHANNEL  hChannel,
BYTE  i,
MWCAP_VIDEO_FRAME_INFO pVideoFrameInfo 
)

Gets video frame information.

Parameters
[in]hChannelVideo channel handle that has started video capturing
[in]iVideo frame index
[out]pVideoFrameInfoReturns video frame information
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoHue()

MW_RESULT LIBMWCAPTURE_API MWGetVideoHue ( HCHANNEL  hChannel,
int *  pnHue 
)

Gets the hue of video captured according to channel handle.

Parameters
[in]hChannelChannel handle
[in]pnHueHue of video captured
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoOSDImage()

MW_RESULT LIBMWCAPTURE_API MWGetVideoOSDImage ( HCHANNEL  hChannel,
MWCAP_VIDEO_OSD_IMAGE pOSDImage 
)

Gets OSD according to channel handle.

Parameters
[in]hChannelChannel handle
[out]pOSDImageOSD image
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoOSDSettings()

MW_RESULT LIBMWCAPTURE_API MWGetVideoOSDSettings ( HCHANNEL  hChannel,
MWCAP_VIDEO_OSD_SETTINGS pOSDSettings 
)

Gets OSD settings according to channel handle.

Parameters
[in]hChannelChannel handle
[out]pOSDSettingsOSD settings of video capture
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoPreferredTimingArray()

MW_RESULT LIBMWCAPTURE_API MWGetVideoPreferredTimingArray ( HCHANNEL  hChannel,
MWCAP_VIDEO_TIMING pVideoTiming,
long *  plCount 
)

Gets the preset video timing array according to channel handle.

Parameters
[in]hChannelChannel handle
[out]pVideoTimingPreset video timing array
[out]plCountCount
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoSamplingPhase()

MW_RESULT LIBMWCAPTURE_API MWGetVideoSamplingPhase ( HCHANNEL  hChannel,
BYTE *  pbyValue 
)

Gets the sampling phase according to channel handle.

Parameters
[in]hChannelChannel handle
[out]pbyValueSampling phase
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoSamplingPhaseAutoAdjust()

MW_RESULT LIBMWCAPTURE_API MWGetVideoSamplingPhaseAutoAdjust ( HCHANNEL  hChannel,
BOOLEAN *  pbAuto 
)

Gets whether the video sampling phase is automatically adjusted according to channel handle.

Parameters
[in]hChannelChannel handle
[out]pbAutoWhether the video sampling phase is automatically adjusted
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoSaturation()

MW_RESULT LIBMWCAPTURE_API MWGetVideoSaturation ( HCHANNEL  hChannel,
int *  pnSaturation 
)

Gets the saturation of video captured according to channel handle.

Parameters
[in]hChannelChannel handle
[out]pnSaturationSaturation of video captured
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWIsSetEvent()

BOOLEAN LIBMWCAPTURE_API MWIsSetEvent ( MWCAP_PTR  hEvent)

Querys whether the event is triggered.

Parameters
[in]hEventEvent
Returns
Returns TRUE if succeeded, otherwise returns FALSE

◆ MWMultiWaitEvent()

DWORD LIBMWCAPTURE_API MWMultiWaitEvent ( MWCAP_PTR *  hEvents,
int  nCount,
int  nTimeout 
)

Waits for the events.

Parameters
[in]hEventsEvents
[in]nCountThe number of event objects
[in]nTimeoutTimeout period
Returns
Returns event flag if succeeded

◆ MWOpenChannel()

HCHANNEL LIBMWCAPTURE_API MWOpenChannel ( int  nBoardValue,
int  nChannelIndex 
)

Opens channel according to the nBoardValue and nChannelIndex.

Parameters
[in]nBoardValueThe board value of channel, DIP value
[in]nChannelIndexIndex of channel
Returns
Returns the channel handle if succeeded, otherwise returns NULL
Note
Refers to MWGetChannel()

◆ MWOpenImage()

MW_RESULT LIBMWCAPTURE_API MWOpenImage ( HCHANNEL  hChannel,
HOSD  hImage,
LONG *  plRet 
)

Opens OSD images.

Parameters
[in]hChannelOpened channel handle
[in]hImageImage handle
[out]plRetReturns counts of the image being called
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWPinVideoBuffer()

MW_RESULT LIBMWCAPTURE_API MWPinVideoBuffer ( HCHANNEL  hChannel,
MWCAP_PTR  pbFrame,
DWORD  cbFrame 
)

Pins a video buffer according to channel handle.

Parameters
[in]hChannelChannel handle
[in]pbFrameVirtual memory address
[in]cbFrameVirtual memory size
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWRegisterNotify()

HNOTIFY LIBMWCAPTURE_API MWRegisterNotify ( HCHANNEL  hChannel,
MWHANDLE  hEvent,
DWORD  dwEnableBits 
)

Registers notification object according to channel handle.

Parameters
[in]hChannelChannel handle
[in]hEventHandle of the event object
[in]dwEnableBitsEvent bits mask
Returns
Returns handle of notification object if succeeded, otherwise returns NULL

◆ MWRegisterTimer()

HTIMER LIBMWCAPTURE_API MWRegisterTimer ( HCHANNEL  hChannel,
MWHANDLE  hEvent 
)

Registers timer according to the channel handle.

Parameters
[in]hChannelChannel handle
[in]hEventEvent
Returns
Returns timer handle if succeeded, otherwise returns 0

◆ MWRegulateDeviceTime()

MW_RESULT LIBMWCAPTURE_API MWRegulateDeviceTime ( HCHANNEL  hChannel,
LONGLONG  llTime 
)

Calibration of the device time with the channel handle.

Parameters
[in]hChannelChannel handle
[in]llTimeTime
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWReloadPreset()

MW_RESULT LIBMWCAPTURE_API MWReloadPreset ( HCHANNEL  hChannel)

Reloads the presetting configurations of video capture according to channel handle.

Parameters
[in]hChannelChannel handle
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSaveSettingsAsPreset()

MW_RESULT LIBMWCAPTURE_API MWSaveSettingsAsPreset ( HCHANNEL  hChannel)

Saves the presetting configurations of video capture according to channel handle.

Parameters
[in]hChannelChannel handle
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWScheduleTimer()

MW_RESULT LIBMWCAPTURE_API MWScheduleTimer ( HCHANNEL  hChannel,
HTIMER  hTimer,
LONGLONG  llExpireTime 
)

Schedules timer object according to channel handle.

Parameters
[in]hChannelChannel handle
[in]hTimerHandle of timer object
[in]llExpireTimeExpire time
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetCustomVideoResolutionsArray()

MW_RESULT LIBMWCAPTURE_API MWSetCustomVideoResolutionsArray ( HCHANNEL  hChannel,
MWCAP_SIZE pResolutionSize,
DWORD  dwCount 
)

Sets customized video resolution array according to channel handle.

Parameters
[in]hChannelChannel handle
[in]pResolutionSizeCustomized video resolution
[in]dwCountThe number of customized video resolution
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetCustomVideoTiming()

MW_RESULT LIBMWCAPTURE_API MWSetCustomVideoTiming ( HCHANNEL  hChannel,
MWCAP_VIDEO_CUSTOM_TIMING  videoTiming 
)

Sets the customized video timing according to channel handle.

Parameters
[in]hChannelChannel handle
[in]videoTimingCustomized video timing
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetCustomVideoTimingsArray()

MW_RESULT LIBMWCAPTURE_API MWSetCustomVideoTimingsArray ( HCHANNEL  hChannel,
MWCAP_VIDEO_CUSTOM_TIMING pVideoCustomTiming,
DWORD  dwCount 
)

Sets customized video timing array according to channel handle.

Parameters
[in]hChannelChannel handle
[in]pVideoCustomTimingCustomized video timing
[in]dwCountThe number of customized video timing
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetDeviceTime()

MW_RESULT LIBMWCAPTURE_API MWSetDeviceTime ( HCHANNEL  hChannel,
LONGLONG  llTime 
)

Set Device time according to the channel handle.

Parameters
[in]hChannelChannel handle
[in]llTimeTime
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetEvent()

MW_RESULT LIBMWCAPTURE_API MWSetEvent ( MWCAP_PTR  hEvent)

Triggers the event.

Parameters
[in]hEventEvent
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetPostReconfig()

MW_RESULT LIBMWCAPTURE_API MWSetPostReconfig ( HCHANNEL  hChannel,
DWORD  dwDelayMS 
)

Sends instructions for rereading configurations to delay the execution.

Parameters
[in]hChannelOpened channel handle
[in]dwDelayMSDelay time in milliseconds
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetVideoAutoHAlign()

MW_RESULT LIBMWCAPTURE_API MWSetVideoAutoHAlign ( HCHANNEL  hChannel,
BOOLEAN  bAuto 
)

Sets whether the horizontal direction of the video is automatically adjusted according to channel handle.

Parameters
[in]hChannelChannel handle
[in]bAutoWhether the horizontal direction of the video is automatically adjusted
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetVideoBrightness()

MW_RESULT LIBMWCAPTURE_API MWSetVideoBrightness ( HCHANNEL  hChannel,
int  nBrightness 
)

Sets the brightness of video captured according to channel handle.

Parameters
[in]hChannelChannel handle
[in]nBrightnessBrightness of video captured
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetVideoContrast()

MW_RESULT LIBMWCAPTURE_API MWSetVideoContrast ( HCHANNEL  hChannel,
int  nContrast 
)

Sets the contrast of video captured according to channel handle.

Parameters
[in]hChannelChannel handle
[in]nContrastContrast of video captured
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetVideoHue()

MW_RESULT LIBMWCAPTURE_API MWSetVideoHue ( HCHANNEL  hChannel,
int  nHue 
)

Sets the hue of video captured according to channel handle.

Parameters
[in]hChannelChannel handle
[in]nHueHue of video captured
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetVideoOSDImage()

MW_RESULT LIBMWCAPTURE_API MWSetVideoOSDImage ( HCHANNEL  hChannel,
MWCAP_VIDEO_OSD_IMAGE  OSDImage 
)

Sets OSD according to channel handle.

Parameters
[in]hChannelChannel handle
[in]OSGImageOSD image
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetVideoOSDSettings()

MW_RESULT LIBMWCAPTURE_API MWSetVideoOSDSettings ( HCHANNEL  hChannel,
MWCAP_VIDEO_OSD_SETTINGS  OSDSettings 
)

Sets OSD settings according to channel handle.

Parameters
[in]hChannelChannel handle
[in]OSDSettingsOSD settings of video capture
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetVideoSamplingPhase()

MW_RESULT LIBMWCAPTURE_API MWSetVideoSamplingPhase ( HCHANNEL  hChannel,
BYTE  byValue 
)

Sets the sampling phase according to channel handle.

Parameters
[in]hChannelChannel handle
[in]byValueSampling phase
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetVideoSamplingPhaseAutoAdjust()

MW_RESULT LIBMWCAPTURE_API MWSetVideoSamplingPhaseAutoAdjust ( HCHANNEL  hChannel,
BOOLEAN  bAuto 
)

Sets whether the video sampling phase is automatically adjusted according to channel handle.

Parameters
[in]hChannelChannel handle
[in]bAutoWhether the video sampling phase is automatically adjusted
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetVideoSaturation()

MW_RESULT LIBMWCAPTURE_API MWSetVideoSaturation ( HCHANNEL  hChannel,
int  nSaturation 
)

Sets the saturation of video captured according to channel handle.

Parameters
[in]hChannelChannel handle
[in]nSaturationSaturation of video captured
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetVideoTiming()

MW_RESULT LIBMWCAPTURE_API MWSetVideoTiming ( HCHANNEL  hChannel,
MWCAP_VIDEO_TIMING  videoTiming 
)

Sets the video timing according to channel handle.

Parameters
[in]hChannelChannel handle
[in]videoTimingVideo timing
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWStartAudioCapture()

MW_RESULT LIBMWCAPTURE_API MWStartAudioCapture ( HCHANNEL  hChannel)

Starts audio capturing of specified channel.

Parameters
[in]hChannelChannel handle
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWStartVideoCapture()

MW_RESULT LIBMWCAPTURE_API MWStartVideoCapture ( HCHANNEL  hChannel,
MWHANDLE  hEvent 
)

Starts video capture according to channel handle.

Parameters
[in]hChannelChannel handle
[in]hEventHandle of the event
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWStopAudioCapture()

MW_RESULT LIBMWCAPTURE_API MWStopAudioCapture ( HCHANNEL  hChannel)

Stops to capture audio according to channel handle.

Parameters
[in]hChannelChannel handle
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWStopVideoCapture()

MW_RESULT LIBMWCAPTURE_API MWStopVideoCapture ( HCHANNEL  hChannel)

Stops video capture according to channel handle.

Parameters
[in]hChannelChannel handle
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWTryWaitEvent()

int LIBMWCAPTURE_API MWTryWaitEvent ( MWCAP_PTR  hEvent)

Waits for the event.

Parameters
[in]hEventEvent
Returns
Returns 1 if succeeded

◆ MWUnpinVideoBuffer()

MW_RESULT LIBMWCAPTURE_API MWUnpinVideoBuffer ( HCHANNEL  hChannel,
LPBYTE  pbFrame 
)

Unlocks part of video buffer according to channel handle.

Parameters
[in]hChannelChannel handle
[in]pbFrameVirtual memory address
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUnregisterNotify()

MW_RESULT LIBMWCAPTURE_API MWUnregisterNotify ( HCHANNEL  hChannel,
HNOTIFY  hNotify 
)

Unregisters notification object.

Parameters
[in]hChannelChannel handle
[in]hNotifyEvent notification
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUnregisterTimer()

MW_RESULT LIBMWCAPTURE_API MWUnregisterTimer ( HCHANNEL  hChannel,
HTIMER  hTimer 
)

Unregisters timer according to the channel handle.

Parameters
[in]hChannelChannel handle
[in]hTimerTimer
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUploadImageFromPhysicalAddress()

MW_RESULT LIBMWCAPTURE_API MWUploadImageFromPhysicalAddress ( HCHANNEL  hChannel,
HOSD  hImage,
MWCAP_VIDEO_COLOR_FORMAT  cfDest,
MWCAP_VIDEO_QUANTIZATION_RANGE  quantRangeDest,
MWCAP_VIDEO_SATURATION_RANGE  satRangeDest,
WORD  xDest,
WORD  yDest,
WORD  cxDest,
WORD  cyDest,
LARGE_INTEGER  llSrcFrameAddress,
DWORD  cbSrcFrame,
DWORD  cbSrcStride,
WORD  cxSrc,
WORD  cySrc,
BOOLEAN  bSrcBottomUp,
BOOLEAN  bSrcPixelAlpha,
BOOLEAN  bSrcPixelXBGR 
)

Uploads an image from physical memory to capture device.

Parameters
[in]hChannelOpened channel handle
[in]hImageImage handle
[in]cfDestColor format of the target image
[in]quantRangeDestQuantization range of the target image
[in]satRangeDestSaturation range of the target image
[in]xDestHorizontal target position
[in]yDestVertical target position
[in]cxDestTarget width of image
[in]cyDestTarget height of image
[in]llSrcFrameAddressPhysical address that stores the source image
[in]cbSrcFrameData length of source image
[in]cbSrcStrideData step of source image
[in]cxSrcWidth of source image
[in]cySrcHeight of source image
[in]bSrcBottomUpWhether the source image is up-side-down
[in]bSrcPixelAlphaWhether there is an alpha component in the source image
[in]bSrcPixelXBGRWhether the color format of the source image is XBGR
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUploadImageFromVirtualAddress()

MW_RESULT LIBMWCAPTURE_API MWUploadImageFromVirtualAddress ( HCHANNEL  hChannel,
HOSD  hImage,
MWCAP_VIDEO_COLOR_FORMAT  cfDest,
MWCAP_VIDEO_QUANTIZATION_RANGE  quantRangeDest,
MWCAP_VIDEO_SATURATION_RANGE  satRangeDest,
WORD  xDest,
WORD  yDest,
WORD  cxDest,
WORD  cyDest,
MWCAP_PTR64  pvSrcFrame,
DWORD  cbSrcFrame,
DWORD  cbSrcStride,
WORD  cxSrc,
WORD  cySrc,
BOOLEAN  bSrcBottomUp,
BOOLEAN  bSrcPixelAlpha,
BOOLEAN  bSrcPixelXBGR 
)

Uploads images from system memory to capture device.

Parameters
[in]hChannelOpened channel handle
[in]hImageImage handle
[in]cfDestColor format of the target image
[in]quantRangeDestQuantization range of the target image
[in]satRangeDestSaturation range of the target image
[in]xDestHorizontal target position
[in]yDestVertical target position
[in]cxDestTarget width of image
[in]cyDestTarget height of image
[in]pvSrcFrameSource image
[in]cbSrcFrameData length of source image
[in]cbSrcStrideData step of source image
[in]cxSrcWidth of source image
[in]cySrcHeight of source image
[in]bSrcBottomUpWhether the source image is up-side-down
[in]bSrcPixelAlphaWhether there is an alpha component in the source image
[in]bSrcPixelXBGRWhether the color format of the source image is XBGR
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWWaitEvent()

int LIBMWCAPTURE_API MWWaitEvent ( MWCAP_PTR  hEvent,
int  nTimeout 
)

Waits for the event.

Parameters
[in]hEventEvent
[in]nTimeoutTimeout period
Returns
Returns 1 if succeeded