MWCapture SDK Linux
3.3.1.LAST_SVN_COMMIT_NUM
|
Functions | |
HCHANNEL LIBMWCAPTURE_API | MWOpenChannel (int nBoardValue, int nChannelIndex) |
Opens capture channel by the rotary number and channel number. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetDeviceTime (HCHANNEL hChannel, LONGLONG *pllTime) |
Gets time value of capture device. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetDeviceTime (HCHANNEL hChannel, LONGLONG llTime) |
Sets time of capture device. More... | |
MW_RESULT LIBMWCAPTURE_API | MWRegulateDeviceTime (HCHANNEL hChannel, LONGLONG llTime) |
Adjusts time of capture device. More... | |
HTIMER LIBMWCAPTURE_API | MWRegisterTimer (HCHANNEL hChannel, MWHANDLE hEvent) |
Registers a timer event object. More... | |
MW_RESULT LIBMWCAPTURE_API | MWUnregisterTimer (HCHANNEL hChannel, HTIMER hTimer) |
Unregisters a timer event object. More... | |
MW_RESULT LIBMWCAPTURE_API | MWScheduleTimer (HCHANNEL hChannel, HTIMER hTimer, LONGLONG llExpireTime) |
Schedules timer event objects. More... | |
HNOTIFY LIBMWCAPTURE_API | MWRegisterNotify (HCHANNEL hChannel, MWHANDLE hEvent, DWORD dwEnableBits) |
Registers an event notification. More... | |
MW_RESULT LIBMWCAPTURE_API | MWUnregisterNotify (HCHANNEL hChannel, HNOTIFY hNotify) |
Unregisters an event notification object. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetNotifyStatus (HCHANNEL hChannel, HNOTIFY hNotify, ULONGLONG *pullStatus) |
Gets current notification status. More... | |
MW_RESULT LIBMWCAPTURE_API | MWStartAudioCapture (HCHANNEL hChannel) |
Starts audio capturing of specified channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWStopAudioCapture (HCHANNEL hChannel) |
Stops audio capturing of specified channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWCaptureAudioFrame (HCHANNEL hChannel, MWCAP_AUDIO_CAPTURE_FRAME *pAudioCaptureFrame) |
Captures an audio frame. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetTemperature (HCHANNEL hChannel, unsigned int *pnTemp) |
Gets the temperature of capture card. More... | |
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.
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 MWGetDeviceTime | ( | HCHANNEL | hChannel, |
LONGLONG * | pllTime | ||
) |
Gets time value of capture device.
[in] | hChannel | Opened channel handle |
[out] | pllTime | Returns time value of capture device 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.
MW_RESULT LIBMWCAPTURE_API MWGetNotifyStatus | ( | HCHANNEL | hChannel, |
HNOTIFY | hNotify, | ||
ULONGLONG * | pullStatus | ||
) |
Gets current notification status.
[in] | hChannel | Opened channel handle |
[in] | hNotify | Handle of registerred notification event object |
[out] | pullStatus | Returns notification status. 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 get notification status.
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_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
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:
HNOTIFY LIBMWCAPTURE_API MWRegisterNotify | ( | HCHANNEL | hChannel, |
MWHANDLE | hEvent, | ||
DWORD | dwEnableBits | ||
) |
Registers an event notification.
[in] | hChannel | Opened channel handle |
[in] | hEvent | An event handle |
[in] | dwEnableBits | Type mask for notifications |
Usage:
The API is used to trigger Pro capture cards to capture video clips by notification type.
HTIMER LIBMWCAPTURE_API MWRegisterTimer | ( | HCHANNEL | hChannel, |
MWHANDLE | hEvent | ||
) |
Registers a timer event object.
[in] | hChannel | Opened channel handle |
[in] | hEvent | Event handle |
MW_RESULT LIBMWCAPTURE_API MWRegulateDeviceTime | ( | HCHANNEL | hChannel, |
LONGLONG | llTime | ||
) |
Adjusts time of capture device.
[in] | hChannel | Opened channel handle |
[in] | llTime | Adjusted 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 timer event objects.
[in] | hChannel | Opened channel handle |
[in] | hTimer | Scheduled timer event objects |
[in] | llExpireTime | Sets the time value of the scheduled timer 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 timer event object is triggered.
Related function(s): MWRegisterTimer
MW_RESULT LIBMWCAPTURE_API MWSetDeviceTime | ( | HCHANNEL | hChannel, |
LONGLONG | llTime | ||
) |
Sets time of capture device.
[in] | hChannel | Opened channel handle |
[in] | llTime | Sets the time value of the capture device clock, 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 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.
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.
The API is used together with MWStartAudioCapture.
MW_RESULT LIBMWCAPTURE_API MWUnregisterNotify | ( | HCHANNEL | hChannel, |
HNOTIFY | hNotify | ||
) |
Unregisters an event notification object.
[in] | hChannel | Channel handle |
[in] | hNotify | Event notification handle |
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 unregister event.
Related function(s): MWRegisterNotify
MW_RESULT LIBMWCAPTURE_API MWUnregisterTimer | ( | HCHANNEL | hChannel, |
HTIMER | hTimer | ||
) |
Unregisters a timer event object.
[in] | hChannel | Opened channel handle |
[in] | hTimer | Handle of timer 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.
Related function(s): MWRegisterTimer(HCHANNEL hChannel, HANDLE hEvent)