LibMWCapture
3.3.1
LibMWCapture Documentation
|
#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... | |
#define LIBMWCAPTURE_API |
Definition at line 36 of file MWProCapture.h.
MW_RESULT LIBMWCAPTURE_API MWCaptureAudioFrame | ( | HCHANNEL | hChannel, |
MWCAP_AUDIO_CAPTURE_FRAME * | pAudioCaptureFrame | ||
) |
Captures audio frame according to channel handle.
[in] | hChannel | Channel handle |
[out] | pAudioCaptureFrame | Captured audio frame |
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
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.
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
[in] | hChannel | Channel handle |
[in] | iFrame | captured frame id |
[out] | pbFrame | pointer to the memory |
[in] | cbFrame | capture frame size |
[in] | cbStride | stride of the video frame |
[in] | bBottomUp | bottom up or not |
[in] | pvContext | pointer of user data |
[in] | dwFOURCC | capture color format |
[in] | cx | width |
[in] | cy | height |
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.
[in] | dwProcessSwitchs | processing mask |
[in] | cyPartialNotify | the number of lines of each capture |
[in] | pOSDImage | handle of OSD image |
[in] | pOSDRects | pointer of rectangular border of the OSD image |
[in] | cOSDRects | total counts of OSD images |
[in] | sContrast | contrast |
[in] | sBrightness | brightness |
[in] | sSaturation | saturation |
[in] | sHue | hue |
[in] | deinterlaceMode | deinterlace mode |
[in] | aspectRatioConvertMode | convert mode of aspect ration |
[in] | pRectSrc | source rect of image |
[in] | pRectDest | target rect of image |
[in] | nAspectX | width of aspect |
[in] | nAspectY | height of aspect |
[in] | colorFormat | color format |
[in] | quantRange | quantization |
[in] | satRange | saturation |
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.
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.
[in] | pOSDImage | handle of OSD image |
[in] | pOSDRects | pointer of rectangular border of the OSD image |
[in] | cOSDRects | total counts of OSD images |
MW_RESULT LIBMWCAPTURE_API MWClearEvent | ( | MWCAP_PTR | hEvent | ) |
Resets the event.
[in] | hEvent | event |
MW_RESULT LIBMWCAPTURE_API MWCloseEvent | ( | MWCAP_PTR | hEvent | ) |
Destroys the event.
[in] | hEvent | event handle |
MW_RESULT LIBMWCAPTURE_API MWCloseImage | ( | HCHANNEL | hChannel, |
HOSD | hImage, | ||
LONG * | plRet | ||
) |
Closes image according to channel handle.
[in] | hChannel | Channel handle |
[in] | hImage | handle of OSD image |
[out] | plRet | reference count of OSD image |
MWCAP_PTR LIBMWCAPTURE_API MWCreateEvent | ( | ) |
Creates events.
HOSD LIBMWCAPTURE_API MWCreateImage | ( | HCHANNEL | hChannel, |
int | cx, | ||
int | cy | ||
) |
Creates OSD image according to channel handle.
[in] | hChannel | channel handle |
[in] | cx | width |
[in] | cy | height |
MW_RESULT LIBMWCAPTURE_API MWGetCustomVideoResolutionsArray | ( | HCHANNEL | hChannel, |
MWCAP_SIZE * | pResolutionSize, | ||
DWORD * | pdwCount | ||
) |
Gets customized video resolution according to channel handle.
[in] | hChannel | channel handle |
[out] | pResolutionSize | customized video resolution |
[out] | pdwCount | the number of customized video resolution |
MW_RESULT LIBMWCAPTURE_API MWGetCustomVideoResolutionsCount | ( | HCHANNEL | hChannel, |
DWORD * | pdwCount | ||
) |
Gets the number of customized video resolution according to channel handle.
[in] | hChannel | channel handle |
[out] | pdwCount | the number of customized video resolution |
MW_RESULT LIBMWCAPTURE_API MWGetCustomVideoTimingsArray | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_CUSTOM_TIMING * | pVideoCustomTiming, | ||
DWORD * | pdwCount | ||
) |
Gets customized video timing according to channel handle.
[in] | hChannel | channel handle |
[out] | pVideoCustomTiming | customized video timing |
[out] | pdwCount | the number of customized video timing |
MW_RESULT LIBMWCAPTURE_API MWGetCustomVideoTimingsCount | ( | HCHANNEL | hChannel, |
DWORD * | pdwCount | ||
) |
Gets the number of customized video timing according to channel handle.
[in] | hChannel | channel handle |
[out] | pdwCount | the number of customized video timing |
MW_RESULT LIBMWCAPTURE_API MWGetDeviceTime | ( | HCHANNEL | hChannel, |
LONGLONG * | pllTime | ||
) |
Gets Device clock according to the channel handle.
[in] | hChannel | Channel handle |
[out] | pllTime | time |
MW_RESULT LIBMWCAPTURE_API MWGetNotifyStatus | ( | HCHANNEL | hChannel, |
HNOTIFY | hNotify, | ||
ULONGLONG * | pullStatus | ||
) |
Gets notify status according to channel handle.
[in] | hChannel | channel handle |
[in] | hNotify | handle of notify object |
[out] | pullStatus | notify status |
MW_RESULT LIBMWCAPTURE_API MWGetStreamCount | ( | HCHANNEL | hChannel, |
int * | pnCount | ||
) |
Gets the number of streams according to channel handle.
[in] | hChannel | channel handle |
[in] | pnCount | the number of streams |
MW_RESULT LIBMWCAPTURE_API MWGetStreamInfos | ( | HCHANNEL | hChannel, |
MWCAP_STREAM_INFO * | pStreamInfos, | ||
int * | pnCount | ||
) |
Gets the information of streams according to channel handle.
[in] | hChannel | channel handle |
[in] | pStreamInfos | information of streams |
[in] | pnCount | the number of streams |
MW_RESULT LIBMWCAPTURE_API MWGetTemperature | ( | HCHANNEL | hChannel, |
unsigned int * | pnTemp | ||
) |
Gets temperature according to channel handle.
[in] | hChannel | channel handle |
[out] | pnTemp | pointer of temperature |
MW_RESULT LIBMWCAPTURE_API MWGetVideoAutoHAlign | ( | HCHANNEL | hChannel, |
BOOLEAN * | pbAuto | ||
) |
Gets whether the horizontal direction of the video is automatically adjusted according to channel handle.
[in] | hChannel | channel handle |
[out] | pbAuto | whether the horizontal direction of the video is automatically adjusted |
MW_RESULT LIBMWCAPTURE_API MWGetVideoBrightness | ( | HCHANNEL | hChannel, |
int * | pnBrightness | ||
) |
Gets the brightness of video captured according to channel handle.
[in] | hChannel | channel handle |
[out] | pnBrightness | brightness of video capture |
MW_RESULT LIBMWCAPTURE_API MWGetVideoBufferInfo | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_BUFFER_INFO * | pVideoBufferInfo | ||
) |
Gets video buffered in the pro capture card according to channel handle.
[in] | hChannel | channel handle |
[out] | pVideoBufferInfo | pointer of video buffer info |
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureStatus | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_CAPTURE_STATUS * | pStatus | ||
) |
Gets video capture status according to channel handle.
[in] | hChannel | channel handle |
[out] | pStatus | video capture status |
MW_RESULT LIBMWCAPTURE_API MWGetVideoConnectFormat | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_CONNECTION_FORMAT * | pConnectFormat | ||
) |
Gets the video capture format according to channel handle.
[in] | hChannel | channel handle |
[out] | pConnectFormat | video capture format |
MW_RESULT LIBMWCAPTURE_API MWGetVideoContrast | ( | HCHANNEL | hChannel, |
int * | pnContrast | ||
) |
Gets the contrast of video captured according to channel handle.
[in] | hChannel | channel handle |
[out] | pnContrast | contrast of video captured |
MW_RESULT LIBMWCAPTURE_API MWGetVideoFrameInfo | ( | HCHANNEL | hChannel, |
BYTE | i, | ||
MWCAP_VIDEO_FRAME_INFO * | pVideoFrameInfo | ||
) |
Gets video frame info according to channel handle.
[in] | hChannel | Channel handle |
[in] | i | frame index |
[out] | pVideoFrameInfo | video frame info |
MW_RESULT LIBMWCAPTURE_API MWGetVideoHue | ( | HCHANNEL | hChannel, |
int * | pnHue | ||
) |
Gets the hue of video captured according to channel handle.
[in] | hChannel | channel handle |
[in] | pnHue | hue of video captured |
MW_RESULT LIBMWCAPTURE_API MWGetVideoOSDImage | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_OSD_IMAGE * | pOSDImage | ||
) |
Gets OSD location according to channel handle.
[in] | hChannel | channel handle |
[out] | pOSDImage | OSD image |
MW_RESULT LIBMWCAPTURE_API MWGetVideoOSDSettings | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_OSD_SETTINGS * | pOSDSettings | ||
) |
Gets OSD settings according to channel handle.
[in] | hChannel | channel handle |
[out] | pOSDSettings | OSD settings of video capture |
MW_RESULT LIBMWCAPTURE_API MWGetVideoPreferredTimingArray | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_TIMING * | pVideoTiming, | ||
long * | plCount | ||
) |
Gets the preset video timing according to channel handle.
[in] | hChannel | channel handle |
[out] | pVideoTiming | preset video timing |
[out] | plCount | 时序个数 |
MW_RESULT LIBMWCAPTURE_API MWGetVideoProcessSettings | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_PROCESS_SETTINGS * | pProcessSettings | ||
) |
Gets the video capture settings according to channel handle.
[in] | hChannel | channel handle |
[out] | pProcessSettings | video capture settings |
MW_RESULT LIBMWCAPTURE_API MWGetVideoSamplingPhase | ( | HCHANNEL | hChannel, |
BYTE * | pbyValue | ||
) |
Gets the sampling phase according to channel handle.
[in] | hChannel | channel handle |
[out] | pbyValue | sampling phase |
MW_RESULT LIBMWCAPTURE_API MWGetVideoSamplingPhaseAutoAdjust | ( | HCHANNEL | hChannel, |
BOOLEAN * | pbAuto | ||
) |
Gets whether the video sampling phase is automatically adjusted according to channel handle.
[in] | hChannel | channel handle |
[out] | pbAuto | whether the video sampling phase is automatically adjusted |
MW_RESULT LIBMWCAPTURE_API MWGetVideoSaturation | ( | HCHANNEL | hChannel, |
int * | pnSaturation | ||
) |
Gets the saturation of video captured according to channel handle.
[in] | hChannel | channel handle |
[out] | pnSaturation | saturation of video captured |
BOOLEAN LIBMWCAPTURE_API MWIsSetEvent | ( | MWCAP_PTR | hEvent | ) |
Querys whether the event is triggered.
[in] | hEvent | event |
DWORD LIBMWCAPTURE_API MWMultiWaitEvent | ( | MWCAP_PTR * | hEvents, |
int | nCount, | ||
int | nTimeout | ||
) |
Waits for the events.
[in] | hEvents | events |
[in] | nCount | the number of event objects |
[in] | nTimeout | timeout period |
HCHANNEL LIBMWCAPTURE_API MWOpenChannel | ( | int | nBoardValue, |
int | nChannelIndex | ||
) |
Open channel according to the nBoardValue and nChannelIndex.
[in] | nBoardValue | The board value of channel, DIP value |
[in] | nChannelIndex | Index of channel |
MW_RESULT LIBMWCAPTURE_API MWOpenImage | ( | HCHANNEL | hChannel, |
HOSD | hImage, | ||
LONG * | plRet | ||
) |
Opens image according to channel handle.
[in] | hChannel | channel handle |
[in] | hImage | handle of OSD image |
[out] | plRet | reference count of OSD image |
MW_RESULT LIBMWCAPTURE_API MWPinVideoBuffer | ( | HCHANNEL | hChannel, |
MWCAP_PTR | pbFrame, | ||
DWORD | cbFrame | ||
) |
Pins a video buffer according to channel handle.
[in] | hChannel | Channel handle |
[in] | pbFrame | point of virtual memory |
[in] | cbFrame | size of virtual memory |
HNOTIFY LIBMWCAPTURE_API MWRegisterNotify | ( | HCHANNEL | hChannel, |
MWHANDLE | hEvent, | ||
DWORD | dwEnableBits | ||
) |
Registers notification object according to channel handle.
[in] | hChannel | channel handle |
[in] | hEvent | handle of the event object |
[in] | dwEnableBits | event bits mask |
HTIMER LIBMWCAPTURE_API MWRegisterTimer | ( | HCHANNEL | hChannel, |
MWHANDLE | hEvent | ||
) |
Registers timer according to the channel handle.
[in] | hChannel | Channel handle |
[in] | hEvent | event |
MW_RESULT LIBMWCAPTURE_API MWRegulateDeviceTime | ( | HCHANNEL | hChannel, |
LONGLONG | llTime | ||
) |
Calibration of the device time with the channel handle.
[in] | hChannel | Channel handle |
[in] | llTime | time |
MW_RESULT LIBMWCAPTURE_API MWReloadPreset | ( | HCHANNEL | hChannel | ) |
Reloads the presetting configurations of video capture according to channel handle.
[in] | hChannel | channel handle |
MW_RESULT LIBMWCAPTURE_API MWSaveSettingsAsPreset | ( | HCHANNEL | hChannel | ) |
Saves the presetting configurations of video capture according to channel handle.
[in] | hChannel | channel handle |
MW_RESULT LIBMWCAPTURE_API MWScheduleTimer | ( | HCHANNEL | hChannel, |
HTIMER | hTimer, | ||
LONGLONG | llExpireTime | ||
) |
Schedules timer object according to channel handle.
[in] | hChannel | Channel handle |
[in] | hTimer | handle of timer object |
[in] | llExpireTime | expire time |
MW_RESULT LIBMWCAPTURE_API MWSetCtrlStreamID | ( | HCHANNEL | hChannel, |
int | nCrtlID | ||
) |
Sets the ID of controlled stream according to channel handle.
[in] | hChannel | channel handle |
[in] | nCrtlID | ID of control stream |
MW_RESULT LIBMWCAPTURE_API MWSetCustomVideoResolutionsArray | ( | HCHANNEL | hChannel, |
MWCAP_SIZE * | pResolutionSize, | ||
DWORD | dwCount | ||
) |
Sets customized video resolution according to channel handle.
[in] | hChannel | channel handle |
[in] | pResolutionSize | customized video resolution |
[in] | dwCount | the number of customized video resolution |
MW_RESULT LIBMWCAPTURE_API MWSetCustomVideoTiming | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_CUSTOM_TIMING | videoTiming | ||
) |
Sets the customized video timing according to channel handle.
[in] | hChannel | channel handle |
[in] | videoTiming | customized video timing |
MW_RESULT LIBMWCAPTURE_API MWSetCustomVideoTimingsArray | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_CUSTOM_TIMING * | pVideoCustomTiming, | ||
DWORD | dwCount | ||
) |
Sets customized video timing according to channel handle.
[in] | hChannel | channel handle |
[in] | pVideoCustomTiming | customized video timing |
[in] | dwCount | the number of customized video timing |
MW_RESULT LIBMWCAPTURE_API MWSetDeviceTime | ( | HCHANNEL | hChannel, |
LONGLONG | llTime | ||
) |
Set Device time according to the channel handle.
[in] | hChannel | Channel handle |
[in] | llTime | time |
MW_RESULT LIBMWCAPTURE_API MWSetEvent | ( | MWCAP_PTR | hEvent | ) |
trigger the event
[in] | hEvent | event |
MW_RESULT LIBMWCAPTURE_API MWSetPostReconfig | ( | HCHANNEL | hChannel, |
DWORD | dwDelayMS | ||
) |
Sets reconfig delay according to channel handle.
[in] | hChannel | channel handle |
[in] | dwDelayMS | time of delay |
MW_RESULT LIBMWCAPTURE_API MWSetVideoAutoHAlign | ( | HCHANNEL | hChannel, |
BOOLEAN | bAuto | ||
) |
Sets whether the horizontal direction of the video is automatically adjusted according to channel handle.
[in] | hChannel | channel handle |
[in] | bAuto | whether the horizontal direction of the video is automatically adjusted |
MW_RESULT LIBMWCAPTURE_API MWSetVideoBrightness | ( | HCHANNEL | hChannel, |
int | nBrightness | ||
) |
Sets the brightness of video captured according to channel handle.
[in] | hChannel | channel handle |
[in] | nBrightness | brightness of video captured |
MW_RESULT LIBMWCAPTURE_API MWSetVideoContrast | ( | HCHANNEL | hChannel, |
int | nContrast | ||
) |
Sets the contrast of video captured according to channel handle.
[in] | hChannel | channel handle |
[in] | nContrast | contrast of video captured |
MW_RESULT LIBMWCAPTURE_API MWSetVideoHue | ( | HCHANNEL | hChannel, |
int | nHue | ||
) |
Sets the hue of video captured according to channel handle.
[in] | hChannel | channel handle |
[in] | nHue | hue of video captured |
MW_RESULT LIBMWCAPTURE_API MWSetVideoOSDImage | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_OSD_IMAGE | OSDImage | ||
) |
Sets OSD location according to channel handle.
[in] | hChannel | channel handle |
[in] | OSGImage | OSD image |
MW_RESULT LIBMWCAPTURE_API MWSetVideoOSDSettings | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_OSD_SETTINGS | OSDSettings | ||
) |
Sets OSD settings according to channel handle.
[in] | hChannel | channel handle |
[in] | OSDSettings | OSD settings of video capture |
MW_RESULT LIBMWCAPTURE_API MWSetVideoProcessSettings | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_PROCESS_SETTINGS | processSettings | ||
) |
Sets video capture configuration according to channel handle.
[in] | hChannel | channel handle |
[in] | processSettings | video capture settings |
MW_RESULT LIBMWCAPTURE_API MWSetVideoSamplingPhase | ( | HCHANNEL | hChannel, |
BYTE | byValue | ||
) |
Sets the sampling phase according to channel handle.
[in] | hChannel | channel handle |
[in] | byValue | sampling phase |
MW_RESULT LIBMWCAPTURE_API MWSetVideoSamplingPhaseAutoAdjust | ( | HCHANNEL | hChannel, |
BOOLEAN | bAuto | ||
) |
Sets whether the video sampling phase is automatically adjusted according to channel handle.
[in] | hChannel | channel handle |
[in] | bAuto | whether the video sampling phase is automatically adjusted |
MW_RESULT LIBMWCAPTURE_API MWSetVideoSaturation | ( | HCHANNEL | hChannel, |
int | nSaturation | ||
) |
Sets the saturation of video captured according to channel handle.
[in] | hChannel | channel handle |
[in] | nSaturation | saturation of video captured |
MW_RESULT LIBMWCAPTURE_API MWSetVideoTiming | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_TIMING | videoTiming | ||
) |
Sets the video timing according to channel handle.
[in] | hChannel | channel handle |
[in] | videoTiming | video timing |
MW_RESULT LIBMWCAPTURE_API MWStartAudioCapture | ( | HCHANNEL | hChannel | ) |
captures audio according to channel handle
[in] | hChannel | Channel handle |
MW_RESULT LIBMWCAPTURE_API MWStartVideoCapture | ( | HCHANNEL | hChannel, |
MWHANDLE | hEvent | ||
) |
Starts video capture according to channel handle.
[in] | hChannel | channel handle |
[in] | hEvent | handle of the event |
MW_RESULT LIBMWCAPTURE_API MWStopAudioCapture | ( | HCHANNEL | hChannel | ) |
Stops to capture audio according to channel handle.
[in] | hChannel | Channel handle |
MW_RESULT LIBMWCAPTURE_API MWStopVideoCapture | ( | HCHANNEL | hChannel | ) |
Stops video capture according to channel handle.
[in] | hChannel | Channel handle |
int LIBMWCAPTURE_API MWTryWaitEvent | ( | MWCAP_PTR | hEvent | ) |
Waits for the event.
[in] | hEvent | event |
MW_RESULT LIBMWCAPTURE_API MWUnpinVideoBuffer | ( | HCHANNEL | hChannel, |
LPBYTE | pbFrame | ||
) |
Unlocks part of video buffer according to channel handle.
[in] | hChannel | channel handle |
[in] | pbFrame | pointer of virtual memory |
MW_RESULT LIBMWCAPTURE_API MWUnregisterNotify | ( | HCHANNEL | hChannel, |
HNOTIFY | hNotify | ||
) |
Unregisters notification object.
[in] | hChannel | channel handle |
[in] | hNotify | event notice |
MW_RESULT LIBMWCAPTURE_API MWUnregisterTimer | ( | HCHANNEL | hChannel, |
HTIMER | hTimer | ||
) |
Unregisters timer according to the channel handle.
[in] | hChannel | Channel handle |
[in] | hTimer | timer |
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.
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.
[in] | hChannel | Channel handle |
[in] | hImage | handle of OSD image |
[in] | cfDest | color format of the target image |
[in] | quantRangeDest | quantization of the target image |
[in] | satRangeDest | saturation of the target image |
[in] | xDest | x |
[in] | yDest | y |
[in] | cxDest | target width |
[in] | cyDest | target height |
[in] | pvSrcFrame | pointer of source image |
[in] | cbSrcFrame | size of source image |
[in] | cbSrcStride | stride of source image |
[in] | cxSrc | source width |
[in] | cySrc | source height |
[in] | bSrcBottomUp | bottom up or not |
[in] | bSrcPixelAlpha | with alpha or not |
[in] | bSrcPixelXBGR | XBGR or not |
int LIBMWCAPTURE_API MWWaitEvent | ( | MWCAP_PTR | hEvent, |
int | nTimeout | ||
) |
Waits for the event.
[in] | hEvent | event |
[in] | nTimeout | timeout period |