MWCapture SDK Linux  3.3.1.LAST_SVN_COMMIT_NUM
Functions
Eco Capture Family Functions

Functions

MW_RESULT LIBMWCAPTURE_API MWStartVideoEcoCapture (HCHANNEL hChannel, MWCAP_VIDEO_ECO_CAPTURE_OPEN *pEcoCaptureOpen)
 Starts video capturing for Eco Capture device. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetVideoEcoCaptureSettings (HCHANNEL hChannel, MWCAP_VIDEO_ECO_CAPTURE_SETTINGS *pSettings)
 Sets capture parameters for Eco capture card. More...
 
MW_RESULT LIBMWCAPTURE_API MWCaptureSetVideoEcoFrame (HCHANNEL hChannel, MWCAP_VIDEO_ECO_CAPTURE_FRAME *pFrame)
 Sets storage frames for Eco to capture video frames. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoEcoCaptureStatus (HCHANNEL hChannel, MWCAP_VIDEO_ECO_CAPTURE_STATUS *pStatus)
 Gets status of Eco capture card, gets captured video frames. More...
 
MW_RESULT LIBMWCAPTURE_API MWStopVideoEcoCapture (HCHANNEL hChannel)
 Stops Eco capture. More...
 

Detailed Description

Function Documentation

MW_RESULT LIBMWCAPTURE_API MWCaptureSetVideoEcoFrame ( HCHANNEL  hChannel,
MWCAP_VIDEO_ECO_CAPTURE_FRAME pFrame 
)

Sets storage frames for Eco to capture video frames.

Parameters
[in]hChannelOpened channel handle
[in]pFrameStorage frames of Eco to capture video frame
Returns
Function return values are as follows:
MW_SUCCEEDED Function call succeeded.
MW_FAILED Function call failed.
MW_INVALID_PARAMS Input invalid value(s).
It always works with MWStartVideoEcoCapture.
MW_RESULT LIBMWCAPTURE_API MWGetVideoEcoCaptureStatus ( HCHANNEL  hChannel,
MWCAP_VIDEO_ECO_CAPTURE_STATUS pStatus 
)

Gets status of Eco capture card, gets captured video frames.

Parameters
[in]hChannelOpened channel handle
[out]pStatusEco capture status
Returns
Function return values are as follows:
MW_SUCCEEDED Function call succeeded.
MW_FAILED Function call failed.
MW_INVALID_PARAMS Input invalid value(s).
It always works with MWStartVideoEcoCapture
MW_RESULT LIBMWCAPTURE_API MWSetVideoEcoCaptureSettings ( HCHANNEL  hChannel,
MWCAP_VIDEO_ECO_CAPTURE_SETTINGS pSettings 
)

Sets capture parameters for Eco capture card.

Parameters
[in]hChannelOpened channel handle
[in]pSettingsEco capture parameters
Returns
Function return values are as follows:
MW_SUCCEEDED Function call succeeded.
MW_FAILED Function call failed.
MW_INVALID_PARAMS Input invalid value(s).
1 char pDevicePath[128] = {0};
2 mr = MWGetDevicePath(i, pDevicePath);
3  ...
4 HCHANNEL hChannel = MWOpenChannelByPath(pDevicePath);
5 ...
6 MWCAP_VIDEO_ECO_CAPTURE_SETTINGS t_setting;
7 t_setting.xx=...;
8 ...
9 MWSetVideoEcoCaptureSettings(hChannel ,& t_setting);
10 ...
11 MWCloseChannel(hChannel);
MW_RESULT LIBMWCAPTURE_API MWStartVideoEcoCapture ( HCHANNEL  hChannel,
MWCAP_VIDEO_ECO_CAPTURE_OPEN pEcoCaptureOpen 
)

Starts video capturing for Eco Capture device.

Parameters
[in]hChannelOpened channel handle
[in]pEcoCaptureOpenEco video capture parameters
Returns
Function return values are as follows:
MW_SUCCEEDED Function call succeeded.
MW_FAILED Function call failed.
MW_INVALID_PARAMS Input invalid value(s).

Usage:

MW_RESULT LIBMWCAPTURE_API MWStopVideoEcoCapture ( HCHANNEL  hChannel)

Stops Eco capture.

Parameters
[in]hChannelOpened channel handle
Returns
Function return values are as follows:
MW_SUCCEEDED Function call succeeded.
MW_FAILED Function call failed.
MW_INVALID_PARAMS Input invalid value(s).
It always works with MWStartVideoEcoCapture