LibMWCapture  3.3.1
LibMWCapture Documentation
Macros | Functions
MWProCapture.h File Reference
#include "MWCaptureExtension.h"
#include "MWUSBCaptureExtension.h"

Go to the source code of this file.

Macros

#define LIBMWCAPTURE_API
 

Functions

HCHANNEL LIBMWCAPTURE_API MWOpenChannel (int nBoardValue, int nChannelIndex)
 Open 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, fill 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)
 captures a video frame, fills it into physical memory 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)
 Gets a video frame with OSD, fill it into virtual memory. 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)
 Gets a video frame with OSD, fills it into physical memory. 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)
 Gets a video frame with customized settings, fill it into virtual memory. 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)
 Gets a video frame with customize settings, fills it into physical memory. 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 info according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureStatus (HCHANNEL hChannel, MWCAP_VIDEO_CAPTURE_STATUS *pStatus)
 Gets video capture status according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWStartAudioCapture (HCHANNEL hChannel)
 captures audio according to channel handle 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)
 Sets reconfig delay according to channel handle. 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 image according to channel handle. 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 a OSD image from the virtual memory. 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 OSD image physical memory. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetTemperature (HCHANNEL hChannel, unsigned int *pnTemp)
 Gets temperature according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetStreamCount (HCHANNEL hChannel, int *pnCount)
 Gets the number of streams according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetStreamInfos (HCHANNEL hChannel, MWCAP_STREAM_INFO *pStreamInfos, int *pnCount)
 Gets the information of streams according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetCtrlStreamID (HCHANNEL hChannel, int nCrtlID)
 Sets the ID of controlled stream according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoConnectFormat (HCHANNEL hChannel, MWCAP_VIDEO_CONNECTION_FORMAT *pConnectFormat)
 Gets the video capture format according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoProcessSettings (HCHANNEL hChannel, MWCAP_VIDEO_PROCESS_SETTINGS *pProcessSettings)
 Gets the video capture settings according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetVideoProcessSettings (HCHANNEL hChannel, MWCAP_VIDEO_PROCESS_SETTINGS processSettings)
 Sets video capture configuration according to channel handle. 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 location according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetVideoOSDImage (HCHANNEL hChannel, MWCAP_VIDEO_OSD_IMAGE OSDImage)
 Sets OSD location 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 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 according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetCustomVideoTimingsArray (HCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING *pVideoCustomTiming, DWORD dwCount)
 Sets customized video timing 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 according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetCustomVideoResolutionsArray (HCHANNEL hChannel, MWCAP_SIZE *pResolutionSize, DWORD dwCount)
 Sets customized video resolution 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)
 trigger 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...
 

Macro Definition Documentation

◆ LIBMWCAPTURE_API

#define LIBMWCAPTURE_API

Definition at line 36 of file MWProCapture.h.

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 
)

captures a video frame, fills it into physical memory

Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS
Note
Parameters refer to MWCaptureVideoFrameToVirtualAddress()

◆ 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 
)

Gets a video frame with customize settings, fills it into physical memory.

Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS
Note
Refers to MWCaptureVideoFrameToVirtualAddressEx()

◆ 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, fill it into virtual memory

Parameters
[in]hChannelChannel handle
[in]iFramecaptured frame id
[out]pbFramepointer to the memory
[in]cbFramecapture frame size
[in]cbStridestride of the video frame
[in]bBottomUpbottom up or not
[in]pvContextpointer of user data
[in]dwFOURCCcapture color format
[in]cxwidth
[in]cyheight
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 
)

Gets a video frame with customized settings, fill it into virtual memory.

Parameters
[in]dwProcessSwitchsprocessing mask
[in]cyPartialNotifythe number of lines of each capture
[in]pOSDImagehandle of OSD image
[in]pOSDRectspointer of rectangular border of the OSD image
[in]cOSDRectstotal counts of OSD images
[in]sContrastcontrast
[in]sBrightnessbrightness
[in]sSaturationsaturation
[in]sHuehue
[in]deinterlaceModedeinterlace mode
[in]aspectRatioConvertModeconvert mode of aspect ration
[in]pRectSrcsource rect of image
[in]pRectDesttarget rect of image
[in]nAspectXwidth of aspect
[in]nAspectYheight of aspect
[in]colorFormatcolor format
[in]quantRangequantization
[in]satRangesaturation
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 
)

Gets a video frame with OSD, fills it into physical memory.

Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS
Note
Refers to MWCaptureVideoFrameWithOSDToVirtualAddress()

◆ 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 
)

Gets a video frame with OSD, fill it into virtual memory.

Parameters
[in]pOSDImagehandle of OSD image
[in]pOSDRectspointer of rectangular border of the OSD image
[in]cOSDRectstotal counts of OSD images
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS
Note
Refers to MWCaptureVideoFrameToVirtualAddress()

◆ 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]hChannelChannel handle
[in]hImagehandle of OSD image
[out]plRetreference count of OSD image
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 or MW_INVALID_PARAMS

◆ MWCreateImage()

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

Creates OSD image according to channel handle.

Parameters
[in]hChannelchannel handle
[in]cxwidth
[in]cyheight
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 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 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

◆ MWGetStreamCount()

MW_RESULT LIBMWCAPTURE_API MWGetStreamCount ( HCHANNEL  hChannel,
int *  pnCount 
)

Gets the number of streams according to channel handle.

Parameters
[in]hChannelchannel handle
[in]pnCountthe number of streams
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetStreamInfos()

MW_RESULT LIBMWCAPTURE_API MWGetStreamInfos ( HCHANNEL  hChannel,
MWCAP_STREAM_INFO *  pStreamInfos,
int *  pnCount 
)

Gets the information of streams according to channel handle.

Parameters
[in]hChannelchannel handle
[in]pStreamInfosinformation of streams
[in]pnCountthe number of streams
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 temperature according to channel handle.

Parameters
[in]hChannelchannel handle
[out]pnTemppointer of 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]hChannelchannel handle
[out]pVideoBufferInfopointer of video buffer info
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 status according to channel handle.

Parameters
[in]hChannelchannel handle
[out]pStatusvideo capture status
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoConnectFormat()

MW_RESULT LIBMWCAPTURE_API MWGetVideoConnectFormat ( HCHANNEL  hChannel,
MWCAP_VIDEO_CONNECTION_FORMAT *  pConnectFormat 
)

Gets the video capture format according to channel handle.

Parameters
[in]hChannelchannel handle
[out]pConnectFormatvideo capture format
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 info according to channel handle.

Parameters
[in]hChannelChannel handle
[in]iframe index
[out]pVideoFrameInfovideo frame info
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 location 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 according to channel handle.

Parameters
[in]hChannelchannel handle
[out]pVideoTimingpreset video timing
[out]plCount时序个数
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoProcessSettings()

MW_RESULT LIBMWCAPTURE_API MWGetVideoProcessSettings ( HCHANNEL  hChannel,
MWCAP_VIDEO_PROCESS_SETTINGS *  pProcessSettings 
)

Gets the video capture settings according to channel handle.

Parameters
[in]hChannelchannel handle
[out]pProcessSettingsvideo capture settings
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, otherwise return FALSE

◆ MWOpenChannel()

HCHANNEL LIBMWCAPTURE_API MWOpenChannel ( int  nBoardValue,
int  nChannelIndex 
)

Open 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 -1
Note
Refers to MWGetChannel()

◆ MWOpenImage()

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

Opens image according to channel handle.

Parameters
[in]hChannelchannel handle
[in]hImagehandle of OSD image
[out]plRetreference count of OSD image
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]pbFramepoint of virtual memory
[in]cbFramesize of virtual memory
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

◆ MWSetCtrlStreamID()

MW_RESULT LIBMWCAPTURE_API MWSetCtrlStreamID ( HCHANNEL  hChannel,
int  nCrtlID 
)

Sets the ID of controlled stream according to channel handle.

Parameters
[in]hChannelchannel handle
[in]nCrtlIDID of control stream
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 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 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)

trigger 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 
)

Sets reconfig delay according to channel handle.

Parameters
[in]hChannelchannel handle
[in]dwDelayMStime of delay
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 location 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

◆ MWSetVideoProcessSettings()

MW_RESULT LIBMWCAPTURE_API MWSetVideoProcessSettings ( HCHANNEL  hChannel,
MWCAP_VIDEO_PROCESS_SETTINGS  processSettings 
)

Sets video capture configuration according to channel handle.

Parameters
[in]hChannelchannel handle
[in]processSettingsvideo capture settings
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)

captures audio according to channel handle

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 TRUE if succeeded, otherwise returns FALSE

◆ MWUnpinVideoBuffer()

MW_RESULT LIBMWCAPTURE_API MWUnpinVideoBuffer ( HCHANNEL  hChannel,
LPBYTE  pbFrame 
)

Unlocks part of video buffer according to channel handle.

Parameters
[in]hChannelchannel handle
[in]pbFramepointer of virtual memory
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 notice
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 OSD image physical memory.

Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS
Note
Refers to MWUploadImageFromVirtualAddress()

◆ 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 a OSD image from the virtual memory.

Parameters
[in]hChannelChannel handle
[in]hImagehandle of OSD image
[in]cfDestcolor format of the target image
[in]quantRangeDestquantization of the target image
[in]satRangeDestsaturation of the target image
[in]xDestx
[in]yDesty
[in]cxDesttarget width
[in]cyDesttarget height
[in]pvSrcFramepointer of source image
[in]cbSrcFramesize of source image
[in]cbSrcStridestride of source image
[in]cxSrcsource width
[in]cySrcsource height
[in]bSrcBottomUpbottom up or not
[in]bSrcPixelAlphawith alpha or not
[in]bSrcPixelXBGRXBGR or not
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 TRUE if succeeded, otherwise returns FALSE