MWCapture SDK Linux
3.3.1.LAST_SVN_COMMIT_NUM
|
Functions | |
MW_RESULT LIBMWCAPTURE_API | MWStartVideoCapture (HCHANNEL hChannel, MWHANDLE hEvent) |
Starts video capture. More... | |
MW_RESULT LIBMWCAPTURE_API | MWStopVideoCapture (HCHANNEL hChannel) |
Stops the video capture. More... | |
MW_RESULT LIBMWCAPTURE_API | MWPinVideoBuffer (HCHANNEL hChannel, MWCAP_PTR pbFrame, DWORD cbFrame) |
Locks a segment of virtual memory to reduce CPU load when capturing video data to that memory. More... | |
MW_RESULT LIBMWCAPTURE_API | MWUnpinVideoBuffer (HCHANNEL hChannel, LPBYTE pbFrame) |
Unlocks a segment of virtual memory. 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 and saves video frames to 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 adds 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 virtual 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 bufferring information. 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... | |
HOSD LIBMWCAPTURE_API | MWCreateImage (HCHANNEL hChannel, int cx, int cy) |
Creates OSD image. 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) |
Turns off the OSD image. 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 virtual 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 | MWGetCustomVideoTimingsCount (HCHANNEL hChannel, DWORD *dwCount) |
Gets number of custom video timings. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetCustomVideoResolutionsCount (HCHANNEL hChannel, DWORD *dwCount) |
Gets number of custom video resolutions. 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 informations 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 | MWGetVideoCaptureOSDSettings (HCHANNEL hChannel, MWCAP_VIDEO_OSD_SETTINGS *paOSDSettings) |
Gets OSD settings. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetVideoCaptureOSDSettings (HCHANNEL hChannel, MWCAP_VIDEO_OSD_SETTINGS *paOSDSettings) |
Sets OSD configurations. 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... | |
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... | |
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.
[in] | hChannel | channel handle that has started video capturing |
[in] | iFrame | Video frame number to be captured |
[in] | llFrameAddress | Physical addresses that store the captured video frames |
[in] | cbFrame | Byte length of memory that stores the captured data |
[in] | cbStride | Step of memory that stores the captured data |
[in] | bBottomUp | Whether to store the captured video frames from bottom to top |
[in] | pvContext | Custom context pointer |
[in] | dwFOURCC | Color format of captured video frames, see MWFOURCC.h. |
[in] | cx | Width of captured video frames |
[in] | cy | Height of captured video frames |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
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.
[in] | hChannel | channel handle that has started video capturing |
[in] | iFrame | Video frame number to be captured |
[in] | llFrameAddress | Physical addresses that store the captured video frames |
[in] | cbFrame | Byte length of memory that stores the captured data |
[in] | cbStride | Step of memory that stores the captured data |
[in] | bBottomUp | Whether to store the captured video frames from bottom to top |
[in] | pvContext | Custom context pointer |
[in] | dwFOURCC | Color format of captured video frames, see MWFOURCC.h. |
[in] | cx | width of captured video frames |
[in] | cy | Height of captured video frames |
[in] | dwProcessSwitchs | Mask of video processing refers to MWCAP_VIDEO_PROCESS_xx |
[in] | cyParitalNotify | The number of lines when capturing by lines |
[in] | hOSDImage | OSD image handle which is got by using MWCreateImage(HCHANNEL hChannel,int cx,int cy) |
[in] | pOSDRects | Target areas of OSD image |
[in] | cOSDRects | Number of OSD image target areas |
[in] | sContrast | Contrast |
[in] | sBrightness | Brightness |
[in] | sSaturation | Saturation |
[in] | sHue | Hue |
[in] | deinterlaceMode | Deinterlace Mode |
[in] | aspectRatioConvertMode | Aspect Ratio Convert Mode |
[in] | pRectSrc | The source area of the image to capture |
[in] | pRectDest | The destination area of the image to capture |
[in] | nAspectX | Width of the aspect ratio |
[in] | nAspectY | Height of the aspect ratio |
[in] | colorFormat | Color Format |
[in] | quantRange | Quantization Range |
[in] | satRange | Saturation Range |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Be cautious when using it.
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 and saves video frames to virtual memory.
[in] | hChannel | channel handle that has started video capturing |
[in] | iFrame | Video frame number to be captured |
[out] | pbFrame | Stores virtual memory pointers for captured data |
[in] | cbFrame | Byte length of memory that stores the captured data |
[in] | cbStride | Step of memory that stores the captured data |
[in] | bBottomUp | Whether to store the captured video frames from bottom to top |
[in] | pvContext | Custom context pointer |
[in] | dwFOURCC | Color format of captured video frames, see MWFOURCC.h. |
[in] | cx | Width of captured video frames |
[in] | cy | Height of captured video frames |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Related function(s): MWRegisterNotify
MWRegisterTimer
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 virtual memory. It is the extended MWCaptureVideoFrameToVirtualAddress.
[in] | hChannel | channel handle that has started video capturing |
[in] | iFrame | Video frame number to be captured |
[out] | pbFrame | Virtual addresses that store the captured video frames |
[in] | cbFrame | Byte length of memory that stores the captured data |
[in] | cbStride | Step of memory that stores the captured data |
[in] | bBottomUp | Whether to store the captured video frames from bottom to top |
[in] | pvContext | Custom context pointer |
[in] | dwFOURCC | Color format of captured video frames, see MWFOURCC.h. |
[in] | cx | width of captured video frames |
[in] | cy | Height of captured video frames |
[in] | dwProcessSwitchs | Image processing mask. Refers to MWCAP_VIDEO_PROCESS_xx |
[in] | cyParitalNotify | Number of rows captured by lines |
[in] | hOSDImage | OSD image handle which is got by using MWCreateImage. |
[in] | pOSDRects | Target areas of OSD image |
[in] | cOSDRects | Number of OSD image target areas |
[in] | sContrast | Contrast |
[in] | sBrightness | Brightness |
[in] | sSaturation | Saturation |
[in] | sHue | Hue |
[in] | deinterlaceMode | Deinterlace Mode |
[in] | aspectRatioConvertMode | Aspect Ratio Convert Mode |
[in] | pRectSrc | The source area of the image to capture |
[in] | pRectDest | The destination area of the image to capture |
[in] | nAspectX | Width of the aspect ratio |
[in] | nAspectY | Height of the aspect ratio |
[in] | colorFormat | Color Format |
[in] | quantRange | Quantization Range |
[in] | satRange | Saturation Range |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Captures video frames and saves the data to virtual memory. The extended version of MWCaptureVideoFrameToVirtualAddress but has more parameters for controlling.
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 adds OSD.
[in] | hChannel | channel handle that has started video capturing |
[in] | iFrame | Video frame number to be captured |
[in] | llFrameAddress | Physical addresses that store the captured video frames |
[in] | cbFrame | Byte length of memory that stores the captured data |
[in] | cbStride | Step of memory that stores the captured data |
[in] | bBottomUp | Whether to store the captured video frames from bottom to top |
[in] | pvContext | Custom context pointer |
[in] | dwFOURCC | Color format of captured video frames, see MWFOURCC.h. |
[in] | cx | width of captured video frames |
[in] | cy | Height of captured video frames |
[in] | hOSDImage | handle of OSD image which is got by using MWCreateImage. |
[in] | pOSDRects | Target areas of OSD image |
[in] | cOSDRects | Number of OSD image target areas |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Be cautious when using it.
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.
[in] | hChannel | channel handle that has started video capturing |
[in] | iFrame | Video frame number to be captured |
[out] | pbFrame | virtual addresses that store the captured video frames |
[in] | cbFrame | Byte length of memory that stores the captured data |
[in] | cbStride | Step of memory that stores the captured data |
[in] | bBottomUp | Whether to store the captured video frames from bottom to top |
[in] | pvContext | Custom context pointer |
[in] | dwFOURCC | Color format of captured video frames, see MWFOURCC.h. |
[in] | cx | Width of captured video frames |
[in] | cy | Height of captured video frames |
[in] | hOSDImage | Handle of OSD image which is got by using MWCreateImage |
[in] | pOSDRects | Target areas of OSD image |
[in] | cOSDRects | Number of OSD image target areas |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Saves the captured video frame to virtual memory, and adds OSD.
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 | ||
) |
Turns off the OSD image.
[in] | hChannel | Opened channel handle |
[in] | hImage | Image handle |
[out] | plRet | Returns counts of the image being called |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Turns off the OSD image and frees the OSD occupied resources.
Related function(s): MWOpenImage
Using MWCreateImage needs to call MWCloseImage.
Using MWOpenImage needs to call MWCloseImage.
MWCAP_PTR LIBMWCAPTURE_API MWCreateEvent | ( | ) |
Creates events.
HOSD LIBMWCAPTURE_API MWCreateImage | ( | HCHANNEL | hChannel, |
int | cx, | ||
int | cy | ||
) |
Creates OSD image.
[in] | hChannel | Opened channel handle |
[in] | cx | Width of image |
[in] | cy | Height of image |
Usage:
Creates OSD image.
Related function(s): MWCaptureVideoFrameWithOSDToVirtualAddress
MW_RESULT LIBMWCAPTURE_API MWGetCustomVideoResolutionsCount | ( | HCHANNEL | hChannel, |
DWORD * | dwCount | ||
) |
Gets number of custom video resolutions.
[in] | hChannel | Opened channel handle |
[out] | dwCount | Number of custom video resolutions |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
MW_RESULT LIBMWCAPTURE_API MWGetCustomVideoTimingsCount | ( | HCHANNEL | hChannel, |
DWORD * | dwCount | ||
) |
Gets number of custom video timings.
[in] | hChannel | Opened channel handle |
[out] | dwCount | Number of custom video timings |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
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 informations 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 MWGetVideoBrightness | ( | HCHANNEL | hChannel, |
int * | pnBrightness | ||
) |
Gets the brightness of video captured according to channel handle.
[in] | hChannel | Channel handle |
[out] | pnBrightness | Brightness of video captured |
MW_RESULT LIBMWCAPTURE_API MWGetVideoBufferInfo | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_BUFFER_INFO * | pVideoBufferInfo | ||
) |
Gets video bufferring information.
[in] | hChannel | channel handle that has started video capturing |
[out] | pVideoBufferInfo | Video bufferring information |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets video buffer on-board storage information that gives you the current number of video buffer frames and the frame id being cached.
Related function(s): MWRegisterNotify
MWRegisterTimer
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureOSDSettings | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_OSD_SETTINGS * | paOSDSettings | ||
) |
Gets OSD settings.
[in] | hChannel | Opened channel handle |
[out] | paOSDSettings | OSD settings |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Only png and rgba images are supported.
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureStatus | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_CAPTURE_STATUS * | pStatus | ||
) |
Gets video capture state, and frees up system storage.
[in] | hChannel | channel handle that has started video capturing |
[out] | pStatus | Returns video capture state |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets video capture state. After the capture function call is completed, call the function, which gets the capture state while cleaning up the occupied system storage.
Related function(s): MWRegisterNotify
MWRegisterTimer
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 information.
[in] | hChannel | Video channel handle that has started video capturing |
[in] | i | Video frame index |
[out] | pVideoFrameInfo | Returns video frame information |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets video frame information, including bufferring start and end time with time code.
Related function(s): MWRegisterNotify
MWRegisterTimer
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 according to channel handle.
[in] | hChannel | Channel handle |
[out] | pOSDImage | OSD image |
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 |
MW_RESULT LIBMWCAPTURE_API MWOpenImage | ( | HCHANNEL | hChannel, |
HOSD | hImage, | ||
LONG * | plRet | ||
) |
Opens OSD images.
[in] | hChannel | Opened channel handle |
[in] | hImage | Image handle |
[out] | plRet | Returns counts of the image being called |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Opens OSD image, and loads it to specified channel.
MW_RESULT LIBMWCAPTURE_API MWPinVideoBuffer | ( | HCHANNEL | hChannel, |
MWCAP_PTR | pbFrame, | ||
DWORD | cbFrame | ||
) |
Locks a segment of virtual memory to reduce CPU load when capturing video data to that memory.
[in] | hChannel | Opened channel handle |
[in] | pbFrame | Virtual memory address |
[in] | cbFrame | Virtual memory size |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Locks a segment of virtual memory to reduce the CPU usage when storing the captured video clips to that memory.
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 MWSetCtrlStreamID | ( | HCHANNEL | hChannel, |
int | nCrtlID | ||
) |
Sets the ID of controlled stream according to channel handle.
[in] | hChannel | channel handle |
[in] | nCrtlID | ID of controlled stream |
MW_RESULT LIBMWCAPTURE_API MWSetEvent | ( | MWCAP_PTR | hEvent | ) |
Triggers the event.
[in] | hEvent | Event |
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 MWSetVideoCaptureOSDSettings | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_OSD_SETTINGS * | paOSDSettings | ||
) |
Sets OSD configurations.
[in] | hChannel | Opened channel handle |
[out] | paOSDSettings | OSD configurations |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
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 according to channel handle.
[in] | hChannel | Channel handle |
[in] | OSGImage | OSD image |
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 MWStartVideoCapture | ( | HCHANNEL | hChannel, |
MWHANDLE | hEvent | ||
) |
Starts video capture.
[in] | hChannel | Opened channel handle |
[in] | hEvent | An event handle |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
It is used for Pro capture cards.
Related function(s): MWRegisterNotify
MWRegisterTimer
MW_RESULT LIBMWCAPTURE_API MWStopVideoCapture | ( | HCHANNEL | hChannel | ) |
Stops the video capture.
[in] | hChannel | Opened channel handle |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Related function(s): MWRegisterNotify
MWRegisterTimer
int LIBMWCAPTURE_API MWTryWaitEvent | ( | MWCAP_PTR | hEvent | ) |
Waits for the event.
[in] | hEvent | Event |
MW_RESULT LIBMWCAPTURE_API MWUnpinVideoBuffer | ( | HCHANNEL | hChannel, |
LPBYTE | pbFrame | ||
) |
Unlocks a segment of virtual memory.
[in] | hChannel | Opened channel handle |
[in] | pbFrame | Virtual memory address |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Unlocks a segment of virtual memory, and works with MWPinVideoBuffer.
Related function(s): MWPinVideoBuffer
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.
[in] | hChannel | Opened channel handle |
[in] | hImage | Image handle |
[in] | cfDest | Color format of the target image |
[in] | quantRangeDest | Quantization range of the target image |
[in] | satRangeDest | Saturation range of the target image |
[in] | xDest | Horizontal target position |
[in] | yDest | Vertical target position |
[in] | cxDest | Target width of image |
[in] | cyDest | Target height of image |
[in] | llSrcFrameAddress | Physical address that stores the source image |
[in] | cbSrcFrame | Data length of source image |
[in] | cbSrcStride | Data step of source image |
[in] | cxSrc | Width of source image |
[in] | cySrc | Height of source image |
[in] | bSrcBottomUp | Whether the source image is up-side-down |
[in] | bSrcPixelAlpha | Whether there is an alpha component in the source image |
[in] | bSrcPixelXBGR | Whether the color format of the source image is XBGR |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Uploads an image from physical memory to capture device.
Be cautious when using it.
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 virtual memory to capture device.
[in] | hChannel | Opened channel handle |
[in] | hImage | Image handle |
[in] | cfDest | Color format of the target image |
[in] | quantRangeDest | Quantization range of the target image |
[in] | satRangeDest | Saturation range of the target image |
[in] | xDest | Horizontal target position |
[in] | yDest | Vertical target position |
[in] | cxDest | Target width of image |
[in] | cyDest | Target height of image |
[in] | pvSrcFrame | Source image |
[in] | cbSrcFrame | Data length of source image |
[in] | cbSrcStride | Data step of source image |
[in] | cxSrc | Width of source image |
[in] | cySrc | Height of source image |
[in] | bSrcBottomUp | Whether the source image is up-side-down |
[in] | bSrcPixelAlpha | Whether there is an alpha component in the source image |
[in] | bSrcPixelXBGR | Whether the color format of the source image is XBGR |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Uploads images from system memory to capture device.
int LIBMWCAPTURE_API MWWaitEvent | ( | MWCAP_PTR | hEvent, |
int | nTimeout | ||
) |
Waits for the event.
[in] | hEvent | Event |
[in] | nTimeout | Timeout period |