|
MWCapture SDK Mac
3.4.62314
|
Functions | |
| HCHANNEL LIBMWCAPTURE_API | MWOpenChannel (int nBoardValue, int nChannelIndex) |
| Opens capture channel by the rotary number and channel number. | |
| MW_RESULT LIBMWCAPTURE_API | MWGetDeviceTime (HCHANNEL hChannel, LONGLONG *pllTime) |
| Gets time of capture channel. | |
| MW_RESULT LIBMWCAPTURE_API | MWSetDeviceTime (HCHANNEL hChannel, LONGLONG llTime) |
| Sets time of capture channel. | |
| MW_RESULT LIBMWCAPTURE_API | MWRegulateDeviceTime (HCHANNEL hChannel, LONGLONG llTime) |
| Adjusts time of capture channel. | |
| HTIMER LIBMWCAPTURE_API | MWRegisterTimer (HCHANNEL hChannel, MWHANDLE hEvent) |
| Registers a time event object. | |
| MW_RESULT LIBMWCAPTURE_API | MWUnregisterTimer (HCHANNEL hChannel, HTIMER hTimer) |
| Unregisters a time event object. | |
| MW_RESULT LIBMWCAPTURE_API | MWScheduleTimer (HCHANNEL hChannel, HTIMER hTimer, LONGLONG llExpireTime) |
| Schedules time event objects. | |
| HNOTIFY LIBMWCAPTURE_API | MWRegisterNotify (HCHANNEL hChannel, MWHANDLE hEvent, DWORD dwEnableBits) |
| Registers an event notification. | |
| MW_RESULT LIBMWCAPTURE_API | MWUnregisterNotify (HCHANNEL hChannel, HNOTIFY hNotify) |
| Unregisters an event notification object. | |
| MW_RESULT LIBMWCAPTURE_API | MWGetNotifyStatus (HCHANNEL hChannel, HNOTIFY hNotify, ULONGLONG *pullStatus) |
| Gets current notification type. | |
| MW_RESULT LIBMWCAPTURE_API | MWStartVideoCapture (HCHANNEL hChannel, MWHANDLE hEvent) |
| Starts video capture. | |
| MW_RESULT LIBMWCAPTURE_API | MWStopVideoCapture (HCHANNEL hChannel) |
| Stops the video capture. | |
| 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) |
| ** | |
| 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) |
| ** | |
| MW_RESULT LIBMWCAPTURE_API | MWGetVideoBufferInfo (HCHANNEL hChannel, MWCAP_VIDEO_BUFFER_INFO *pVideoBufferInfo) |
| ** | |
| MW_RESULT LIBMWCAPTURE_API | MWGetVideoFrameInfo (HCHANNEL hChannel, BYTE i, MWCAP_VIDEO_FRAME_INFO *pVideoFrameInfo) |
| Gets video frame information. | |
| MW_RESULT LIBMWCAPTURE_API | MWGetVideoCaptureStatus (HCHANNEL hChannel, MWCAP_VIDEO_CAPTURE_STATUS *pStatus) |
| Gets video capture state, and frees up system storage. | |
| MW_RESULT LIBMWCAPTURE_API | MWStartAudioCapture (HCHANNEL hChannel) |
| Starts audio capturing of specified channel. | |
| MW_RESULT LIBMWCAPTURE_API | MWStopAudioCapture (HCHANNEL hChannel) |
| Stops audio capturing of specified channel. | |
| MW_RESULT LIBMWCAPTURE_API | MWCaptureAudioFrame (HCHANNEL hChannel, MWCAP_AUDIO_CAPTURE_FRAME *pAudioCaptureFrame) |
| Captures an audio frame. | |
| MW_RESULT LIBMWCAPTURE_API | MWSetPostReconfig (HCHANNEL hChannel, DWORD dwDelayMS) |
| Sends instructions for rereading configurations to delay the execution. | |
| MW_RESULT LIBMWCAPTURE_API | MWGetTemperature (HCHANNEL hChannel, unsigned int *pnTemp) |
| ** | |
| MW_RESULT LIBMWCAPTURE_API | MWGetVideoAutoHAlign (HCHANNEL hChannel, BOOLEAN *pbAuto) |
| ** | |
| MW_RESULT LIBMWCAPTURE_API | MWSetVideoAutoHAlign (HCHANNEL hChannel, BOOLEAN bAuto) |
| Sets whether the horizontal direction of the video is automatically adjusted according to channel handle. | |
| MW_RESULT LIBMWCAPTURE_API | MWGetVideoSamplingPhase (HCHANNEL hChannel, BYTE *pbyValue) |
| Gets the sampling phase according to channel handle. | |
| MW_RESULT LIBMWCAPTURE_API | MWSetVideoSamplingPhase (HCHANNEL hChannel, BYTE byValue) |
| Sets the sampling phase according to channel handle. | |
| MW_RESULT LIBMWCAPTURE_API | MWGetVideoSamplingPhaseAutoAdjust (HCHANNEL hChannel, BOOLEAN *pbAuto) |
| Gets whether the video sampling phase is automatically adjusted according to channel handle. | |
| MW_RESULT LIBMWCAPTURE_API | MWSetVideoSamplingPhaseAutoAdjust (HCHANNEL hChannel, BOOLEAN bAuto) |
| Sets whether the video sampling phase is automatically adjusted according to channel handle. | |
| MW_RESULT LIBMWCAPTURE_API | MWSetVideoTiming (HCHANNEL hChannel, MWCAP_VIDEO_TIMING videoTiming) |
| Sets the video timing according to channel handle. | |
| MW_RESULT LIBMWCAPTURE_API | MWGetVideoPreferredTimingArray (HCHANNEL hChannel, MWCAP_VIDEO_TIMING *pVideoTiming, long *plCount) |
| Gets the preset video timing array according to channel handle. | |
| MW_RESULT LIBMWCAPTURE_API | MWSetCustomVideoTiming (HCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING videoTiming) |
| Sets the customized video timing according to channel handle. | |
| MW_RESULT LIBMWCAPTURE_API | MWGetCustomVideoTimingsCount (HCHANNEL hChannel, DWORD *pdwCount) |
| Gets the number of customized video timing according to channel handle. | |
| MW_RESULT LIBMWCAPTURE_API | MWGetCustomVideoTimingsArray (HCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING *pVideoCustomTiming, DWORD *pdwCount) |
| Gets customized video timing array according to channel handle. | |
| MW_RESULT LIBMWCAPTURE_API | MWSetCustomVideoTimingsArray (HCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING *pVideoCustomTiming, DWORD dwCount) |
| Sets customized video timing array according to channel handle. | |
| MW_RESULT LIBMWCAPTURE_API | MWGetCustomVideoResolutionsCount (HCHANNEL hChannel, DWORD *pdwCount) |
| Gets the number of customized video resolution according to channel handle. | |
| MW_RESULT LIBMWCAPTURE_API | MWGetCustomVideoResolutionsArray (HCHANNEL hChannel, MWCAP_SIZE *pResolutionSize, DWORD *pdwCount) |
| Gets customized video resolution array according to channel handle. | |
| MW_RESULT LIBMWCAPTURE_API | MWSetCustomVideoResolutionsArray (HCHANNEL hChannel, MWCAP_SIZE *pResolutionSize, DWORD dwCount) |
| Sets customized video resolution array according to channel handle. | |
| MWCAP_PTR LIBMWCAPTURE_API | MWCreateEvent () |
| Creates events. | |
| MW_RESULT LIBMWCAPTURE_API | MWCloseEvent (MWCAP_PTR hEvent) |
| Destroys the event. | |
| MW_RESULT LIBMWCAPTURE_API | MWSetEvent (MWCAP_PTR hEvent) |
| Triggers the event. | |
| MW_RESULT LIBMWCAPTURE_API | MWClearEvent (MWCAP_PTR hEvent) |
| Resets the event. | |
| BOOLEAN LIBMWCAPTURE_API | MWIsSetEvent (MWCAP_PTR hEvent) |
| Querys whether the event is triggered. | |
| int LIBMWCAPTURE_API | MWTryWaitEvent (MWCAP_PTR hEvent) |
| Waits for the event. | |
| int LIBMWCAPTURE_API | MWWaitEvent (MWCAP_PTR hEvent, int nTimeout) |
| Waits for the event. | |
| DWORD LIBMWCAPTURE_API | MWMultiWaitEvent (MWCAP_PTR *hEvents, int nCount, int nTimeout) |
| Waits for the events. | |
| MW_RESULT LIBMWCAPTURE_API MWCaptureAudioFrame | ( | HCHANNEL | hChannel, |
| MWCAP_AUDIO_CAPTURE_FRAME * | pAudioCaptureFrame | ||
| ) |
Captures an audio frame.
| [in] | hChannel | Channel handle of opened audio capture |
| [out] | pAudioCaptureFrame | Returns an audio frame |
| MW_SUCCEEDED | Function call succeeded. |
| MW_FAILED | Function call failed. |
| MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Captures audio frames.
The usage of the API refers to example AudioCapture.
Related function(s): MWStartAudioCapture
For LPCM to capture up to 8 channel data, the channel correspondence are 0L, 1L, 2L, 3L, 0R, 1R, 2R, 3R.
| 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 system memory.
| [in] | hChannel | Opened video capture channel handle |
| [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 pointers |
| [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:
Detailed usage refers to the related examples: CaptureByInput, CaptureByTimer.
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 system memory. It is the extended MWCaptureVideoFrameToVirtualAddress.
| [in] | hChannel | Video channel handle that has started video capturing |
| [in] | iFrame | Video frame number to be captured |
| [out] | pbFrame | 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 pointers |
| [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 geted using MWCreateImage. |
| [in] | pOSDRects | Target area of OSD image |
| [in] | cOSDRects | Number of OSD image target areas |
| [in] | sContrast | Contrast [50,200] |
| [in] | sBrightness | Brightness [-100,100] |
| [in] | sSaturation | Saturation [0,200] |
| [in] | sHue | Hue [-90,90] |
| [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 system memory. The extended version of MWCaptureVideoFrameToVirtualAddress which has more parameters for controlling.
Related example: AVCapture.
| 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 |
| MWCAP_PTR LIBMWCAPTURE_API MWCreateEvent | ( | ) |
Creates events.
| MW_RESULT LIBMWCAPTURE_API MWGetCustomVideoResolutionsArray | ( | HCHANNEL | hChannel, |
| MWCAP_SIZE * | pResolutionSize, | ||
| DWORD * | pdwCount | ||
| ) |
Gets customized video resolution array 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 array 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 time of capture channel.
| [in] | hChannel | Opened video channel handle |
| [out] | pllTime | Returns time of capture channel in 100ns |
| MW_SUCCEEDED | Function call succeeded. |
| MW_FAILED | Function call failed. |
| MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets device time, uses the same clock for different channels on the same capture device.
It is used by most examples.
| MW_RESULT LIBMWCAPTURE_API MWGetNotifyStatus | ( | HCHANNEL | hChannel, |
| HNOTIFY | hNotify, | ||
| ULONGLONG * | pullStatus | ||
| ) |
Gets current notification type.
| [in] | hChannel | Opened video channel handle |
| [in] | hNotify | Handle of registerred notify event object |
| [out] | pullStatus | Returns notification type. The value refers to the note of MWRegisterNotify |
| MW_SUCCEEDED | Function call succeeded. |
| MW_FAILED | Function call failed. |
| MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
The function is used for Pro capture cards to capture video clips by notification type.
The detailed usage refers to example CaptureByInput.
Related function(s): MWRegisterNotify
| MW_RESULT LIBMWCAPTURE_API MWGetTemperature | ( | HCHANNEL | hChannel, |
| unsigned int * | pnTemp | ||
| ) |
**
** ** ** **
Gets the temperature of capture card.
| [in] | hChannel | Opened channel handle |
| [out] | pnTemp | Capture card 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 MWGetVideoBufferInfo | ( | HCHANNEL | hChannel, |
| MWCAP_VIDEO_BUFFER_INFO * | pVideoBufferInfo | ||
| ) |
**
Gets video bufferring information
| [in] | hChannel | Video 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.
Detailed usage refers to the related examples: CaptureByInput, CaptureByTimer.
Related function(s): MWRegisterNotify
MWRegisterTimer
| MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureStatus | ( | HCHANNEL | hChannel, |
| MWCAP_VIDEO_CAPTURE_STATUS * | pStatus | ||
| ) |
Gets video capture state, and frees up system storage.
| [in] | hChannel | Video 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.
Detailed usage refers to the related examples: CaptureByInput, CaptureByTimer.
Related function(s): MWRegisterNotify
MWRegisterTimer
| 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.
Detailed usage refers to the related examples: CaptureByInput, CaptureByTimer.
Related function(s): MWRegisterNotify
MWRegisterTimer
| MW_RESULT LIBMWCAPTURE_API MWGetVideoPreferredTimingArray | ( | HCHANNEL | hChannel, |
| MWCAP_VIDEO_TIMING * | pVideoTiming, | ||
| long * | plCount | ||
| ) |
Gets the preset video timing array according to channel handle.
| [in] | hChannel | Channel handle |
| [out] | pVideoTiming | Preset video timing array |
| [out] | plCount | Count |
| 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 |
| 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 | ||
| ) |
Opens capture channel by the rotary number and channel number.
| [in] | nBoardValue | Rotary number on the capture device, 0 to f |
| [in] | nChannelIndex | Channel index, starts from 0 |
Usage:
It is used by all examples.
| HNOTIFY LIBMWCAPTURE_API MWRegisterNotify | ( | HCHANNEL | hChannel, |
| MWHANDLE | hEvent, | ||
| DWORD | dwEnableBits | ||
| ) |
Registers an event notification.
| [in] | hChannel | Opened video channel handle |
| [in] | hEvent | An event handle, created by the function MWCreateEvent() |
| [in] | dwEnableBits | Type mask for notifications |
Usage:
The API is used to trigger Pro capture cards to capture video clips by notification type.
Detailed usage refers to example CaptureByInput.
| HTIMER LIBMWCAPTURE_API MWRegisterTimer | ( | HCHANNEL | hChannel, |
| MWHANDLE | hEvent | ||
| ) |
Registers a time event object.
| [in] | hChannel | Opened video channel handle |
| [in] | hEvent | Event handle, creates with MWCreateEvent() |
The API is used for pro capture cards to specify the capture interval between adjacent video frames
Detailed usage refers to example CaptureByTimer.
| MW_RESULT LIBMWCAPTURE_API MWRegulateDeviceTime | ( | HCHANNEL | hChannel, |
| LONGLONG | llTime | ||
| ) |
Adjusts time of capture channel.
| [in] | hChannel | Opened video channel handle |
| [in] | llTime | Adjusts time in 100ns. |
| MW_SUCCEEDED | Function call succeeded. |
| MW_FAILED | Function call failed. |
| MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Adjusts device time.
| MW_RESULT LIBMWCAPTURE_API MWScheduleTimer | ( | HCHANNEL | hChannel, |
| HTIMER | hTimer, | ||
| LONGLONG | llExpireTime | ||
| ) |
Schedules time event objects.
| [in] | hChannel | Opened video channel handle |
| [in] | hTimer | Scheduled time event objects |
| [in] | llExpireTime | Sets the time value of the scheduled time event, which is the absolute value of the capture device's clock. |
| MW_SUCCEEDED | Function call succeeded. |
| MW_FAILED | Function call failed. |
| MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
The API is used for pro capture cards to set the time when the time event object is triggered.
Detailed usage refers to example CaptureByTimer.
Related function(s): MWRegisterTimer
| MW_RESULT LIBMWCAPTURE_API MWSetCustomVideoResolutionsArray | ( | HCHANNEL | hChannel, |
| MWCAP_SIZE * | pResolutionSize, | ||
| DWORD | dwCount | ||
| ) |
Sets customized video resolution array 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 array 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 | ||
| ) |
Sets time of capture channel.
| [in] | hChannel | Opened video channel handle |
| [in] | llTime | Sets the time of the capture channel, which is in 100 nanoseconds |
| MW_SUCCEEDED | Function call succeeded. |
| MW_FAILED | Function call failed. |
| MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets the clock of capture device.
| MW_RESULT LIBMWCAPTURE_API MWSetEvent | ( | MWCAP_PTR | hEvent | ) |
Triggers the event.
| [in] | hEvent | Event |
| MW_RESULT LIBMWCAPTURE_API MWSetPostReconfig | ( | HCHANNEL | hChannel, |
| DWORD | dwDelayMS | ||
| ) |
Sends instructions for rereading configurations to delay the execution.
| [in] | hChannel | Opened channel handle |
| [in] | dwDelayMS | Delay time in milliseconds |
| 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 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 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 | ) |
Starts audio capturing of specified channel.
| [in] | hChannel | Opened channel handle |
| MW_SUCCEEDED | Function call succeeded. |
| MW_FAILED | Function call failed. |
| MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Starts audio capturing of specified channel.
The usage of the API refers to example AudioCapture.
| MW_RESULT LIBMWCAPTURE_API MWStartVideoCapture | ( | HCHANNEL | hChannel, |
| MWHANDLE | hEvent | ||
| ) |
Starts video capture.
| [in] | hChannel | Opened video channel handle |
| [in] | hEvent | An event handle, which is created by MWCreateEvent(). |
| MW_SUCCEEDED | Function call succeeded. |
| MW_FAILED | Function call failed. |
| MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
It is uses for Pro capture cards.
Detailed usage refers to the related examples: CaptureByInput, CaptureByTimer.
Related function(s): MWRegisterNotify
MWRegisterTimer
| MW_RESULT LIBMWCAPTURE_API MWStopAudioCapture | ( | HCHANNEL | hChannel | ) |
Stops audio capturing of specified channel.
| [in] | hChannel | channel handle of opened audio capture |
| MW_SUCCEEDED | Function call succeeded. |
| MW_FAILED | Function call failed. |
| MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Stops audio capturing of specified channel.
Usage:\nRelated example: AudioCapture
The API is used together with MWStartAudioCapture.
| MW_RESULT LIBMWCAPTURE_API MWStopVideoCapture | ( | HCHANNEL | hChannel | ) |
Stops the video capture.
| [in] | hChannel | Opened handle of video capture channel |
| MW_SUCCEEDED | Function call succeeded. |
| MW_FAILED | Function call failed. |
| MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Detailed usage refers to the related examples: CaptureByInput, CaptureByTimer.
Related function(s): MWRegisterNotify
MWRegisterTimer
| int LIBMWCAPTURE_API MWTryWaitEvent | ( | MWCAP_PTR | hEvent | ) |
Waits for the event.
| [in] | hEvent | Event |
| MW_RESULT LIBMWCAPTURE_API MWUnregisterNotify | ( | HCHANNEL | hChannel, |
| HNOTIFY | hNotify | ||
| ) |
Unregisters an event notification object.
| [in] | hChannel | Channel handle |
| [in] | hNotify | Event notification |
| MW_SUCCEEDED | Function call succeeded. |
| MW_FAILED | Function call failed. |
| MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
The API is used for Pro capture cards to capture by the notification type.
Detailed usage refers to example CaptureByInput.
Related function(s): MWRegisterNotify
| MW_RESULT LIBMWCAPTURE_API MWUnregisterTimer | ( | HCHANNEL | hChannel, |
| HTIMER | hTimer | ||
| ) |
Unregisters a time event object.
| [in] | hChannel | Opened video channel handle |
| [in] | hTimer | Handle of time event object that has been registered |
| MW_SUCCEEDED | Function call succeeded. |
| MW_FAILED | Function call failed. |
| MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
The API is used for pro capture cards that specify the capture interval between adjacent video frames.
Detailed usage refers to example CapturebyTimer.
Related function(s): MWRegisterTimer(HCHANNEL hChannel, HANDLE hEvent)
| int LIBMWCAPTURE_API MWWaitEvent | ( | MWCAP_PTR | hEvent, |
| int | nTimeout | ||
| ) |
Waits for the event.
| [in] | hEvent | Event |
| [in] | nTimeout | Timeout period |