MWCapture SDK Linux
3.3.1.LAST_SVN_COMMIT_NUM
|
Functions | |
MW_RESULT LIBMWCAPTURE_API | MWGetVersion (BYTE *pbyMaj, BYTE *pbyMin, WORD *pwBuild) |
Gets the version number of SDK. More... | |
BOOL LIBMWCAPTURE_API | MWCaptureInitInstance () |
Initializes the MWCapture interfaces. More... | |
void LIBMWCAPTURE_API | MWCaptureExitInstance () |
Quits instance. More... | |
MW_RESULT LIBMWCAPTURE_API | MWRefreshDevice () |
Refreshes device list. More... | |
int LIBMWCAPTURE_API | MWGetChannelCount () |
Gets the total number of channels. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetChannelInfoByIndex (int nIndex, MWCAP_CHANNEL_INFO *pChannelInfo) |
Gets the channel info by its index. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetFamilyInfoByIndex (int nIndex, LPVOID pFamilyInfo, DWORD dwSize) |
Gets the product family based on the index. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetDevicePath (int nIndex, char *pDevicePath) |
Gets the instance path of capture device based on the index. More... | |
HCHANNEL LIBMWCAPTURE_API | MWOpenChannelByPath (const char *pszDevicePath) |
Opens capture channel by device instance path. More... | |
void LIBMWCAPTURE_API | MWCloseChannel (HCHANNEL hChannel) |
Closes capture channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetChannelInfo (HCHANNEL hChannel, MWCAP_CHANNEL_INFO *pChannelInfo) |
Gets channel information. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetFamilyInfo (HCHANNEL hChannel, LPVOID pFamilyInfo, DWORD dwSize) |
Gets attributions of product family which the capture device belongs to. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetVideoCaps (HCHANNEL hChannel, MWCAP_VIDEO_CAPS *pVideoCaps) |
Gets video capture capability of the specified channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetAudioCaps (HCHANNEL hChannel, MWCAP_AUDIO_CAPS *pAudioCaps) |
Gets audio capture capability of the channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetVideoInputSourceArray (HCHANNEL hChannel, DWORD *pdwInputSource, DWORD *pdwInputCount) |
Gets the input video signal types supported by the channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetAudioInputSourceArray (HCHANNEL hChannel, DWORD *pdwInputSource, DWORD *pdwInputCount) |
Gets the input audio signal types supported by the channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetInputSourceScan (HCHANNEL hChannel, BOOLEAN *pbScan) |
Gets the scan state of input source. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetInputSourceScan (HCHANNEL hChannel, BOOLEAN bScan) |
Sets the scan state of input source. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetAVInputSourceLink (HCHANNEL hChannel, BOOLEAN *pbLink) |
Gets whether the input audio input source is related to video input source. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetAVInputSourceLink (HCHANNEL hChannel, BOOLEAN bLink) |
Sets whether the input video source is linked to its audio automatically. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetVideoInputSource (HCHANNEL hChannel, DWORD *pdwSource) |
Gets current video input source of the channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetVideoInputSource (HCHANNEL hChannel, DWORD dwSource) |
Sets the video input source of the specified channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetAudioInputSource (HCHANNEL hChannel, DWORD *pdwSource) |
Gets current input audio source of the specified channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetAudioInputSource (HCHANNEL hChannel, DWORD dwSource) |
Sets current audio input source of specified channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetEDID (HCHANNEL hChannel, BYTE *pbyData, ULONG *pulSize) |
Gets the EDID of specified channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetEDID (HCHANNEL hChannel, BYTE *pbyData, ULONG ulSize) |
Sets EDID of specified channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetInputSpecificStatus (HCHANNEL hChannel, MWCAP_INPUT_SPECIFIC_STATUS *pInputStatus) |
Gets the specific status of input signal. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetVideoSignalStatus (HCHANNEL hChannel, MWCAP_VIDEO_SIGNAL_STATUS *pSignalStatus) |
Gets video signal status of specified channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetAudioSignalStatus (HCHANNEL hChannel, MWCAP_AUDIO_SIGNAL_STATUS *pSignalStatus) |
Gets the audio signal status of specified channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetHDMIInfoFrameValidFlag (HCHANNEL hChannel, DWORD *pdwValidFlag) |
Gets valid flag of HDMI InfoFrame. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetHDMIInfoFramePacket (HCHANNEL hChannel, MWCAP_HDMI_INFOFRAME_ID id, HDMI_INFOFRAME_PACKET *pPacket) |
Gets HDMI InfoFrame data. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetVideoInputAspectRatio (HCHANNEL hChannel, int nAspectX, int nAspectY) |
Sets aspect ratio of input video source. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetVideoInputAspectRatio (HCHANNEL hChannel, int *pnAspectX, int *pnAspectY) |
Gets aspect ratio of input video source. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetVideoInputColorFormat (HCHANNEL hChannel, MWCAP_VIDEO_COLOR_FORMAT colorFormat) |
Sets color format of input video. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetVideoInputColorFormat (HCHANNEL hChannel, MWCAP_VIDEO_COLOR_FORMAT *pColorFormat) |
Gets color format of input video. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetVideoInputQuantizationRange (HCHANNEL hChannel, MWCAP_VIDEO_QUANTIZATION_RANGE quantRange) |
Sets quantization range of input video. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetVideoInputQuantizationRange (HCHANNEL hChannel, MWCAP_VIDEO_QUANTIZATION_RANGE *pQuantRange) |
Gets quantization range of input video. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetLEDMode (HCHANNEL hChannel, DWORD dwMode) |
Sets LED mode. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetFirmwareStorageInfo (HCHANNEL hChannel, MWCAP_FIRMWARE_STORAGE *pFirmwareStorageInfo) |
Gets firmware storage information. More... | |
MW_RESULT LIBMWCAPTURE_API | MWEraseFirmwareData (HCHANNEL hChannel, DWORD cbOffset, DWORD cbErase) |
Erases firmware data. More... | |
MW_RESULT LIBMWCAPTURE_API | MWReadFirmwareData (HCHANNEL hChannel, DWORD cbOffset, BYTE *pbyData, DWORD cbToRead, DWORD *pcbRead) |
Read firmware data from specified channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWWriteFirmwareData (HCHANNEL hChannel, DWORD cbOffset, BYTE *pbyData, DWORD cbData) |
Writes firmware data to specified channel. More... | |
HANDLE LIBMWCAPTURE_API | MWCreateVideoCapture (HCHANNEL hChannel, int nWidth, int nHeight, int nFourcc, int nFrameDuration, VIDEO_CAPTURE_CALLBACK callback, void *pParam) |
Uses the v4l function to create video capture. More... | |
MW_RESULT LIBMWCAPTURE_API | MWDestoryVideoCapture (HANDLE hVideo) |
Stops video capturing. More... | |
HANDLE LIBMWCAPTURE_API | MWCreateAudioCapture (HCHANNEL hChannel, MWCAP_AUDIO_CAPTURE_NODE captureNode, DWORD dwSamplesPerSec, WORD wBitsPerSample, WORD wChannels, AUDIO_CAPTURE_CALLBACK callback, void *pParam) |
Create audio capture using the v4l function. More... | |
MW_RESULT LIBMWCAPTURE_API | MWDestoryAudioCapture (HANDLE hAudio) |
Stops audio capturing. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetAudioVolume (HCHANNEL hChannel, MWCAP_AUDIO_NODE audioNode, MWCAP_AUDIO_VOLUME *pVolume) |
Gets the volume value of audio capture device. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetAudioVolume (HCHANNEL hChannel, MWCAP_AUDIO_NODE audioNode, MWCAP_AUDIO_VOLUME *pVolume) |
Sets the volume of audio capture device. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetVideoAutoHAlign (HCHANNEL hChannel, BOOLEAN *pbAutoHAlign) |
Gets whether to adjust horizontal alignment of the vga timing automatically. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetVideoAutoHAlign (HCHANNEL hChannel, BOOLEAN bAutoHAlign) |
Sets whether to adjust horizontal alignment of the vga timing automatically. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetVideoSamplingPhase (HCHANNEL hChannel, BYTE *puSamplingPhase) |
Gets the phase of the specified input vga timing. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetVideoSamplingPhase (HCHANNEL hChannel, BYTE puSamplingPhase) |
Sets the phase of the specified input vga timing. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetVideoSamplingPhaseAutoAdjust (HCHANNEL hChannel, BOOLEAN *pbAutoSamplingPhase) |
Gets whether to adjust the phase of the specified input vga timing automatically. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetVideoSamplingPhaseAutoAdjust (HCHANNEL hChannel, BOOLEAN bAutoSamplingPhase) |
Sets whether to automatically adjust the phase of vga timing sampling. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetVideoTiming (HCHANNEL hChannel, MWCAP_VIDEO_TIMING *pTiming) |
Sets the vga timing of specified channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetPreferredVideoTimings (HCHANNEL hChannel, MWCAP_VIDEO_TIMING_ARRAY *paTimings) |
Gets the preffered vga timing array of specified channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetCustomVideoTiming (HCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING *pCustomTiming) |
Sets the custom vga timing of specified channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetCustomVideoTimings (HCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING_ARRAY *paCustomTimings) |
Gets the custom vga timing of specified channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetCustomVideoTimings (HCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING_ARRAY *paCustomTimings) |
Sets the custom vga timing array of specified channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetCustomVideoResolutions (HCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_RESOLUTION_ARRAY *paCustomResolutions) |
Gets the custom resolutions in vga timing of specified channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetCustomVideoResolutions (HCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_RESOLUTION_ARRAY *paCustomResolutions) |
Sets the custom resolutions in vga timing of specified channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWCaptureSetSDIANCType (HCHANNEL hChannel, BYTE byIndex, BOOLEAN bHANC, BOOLEAN bVANC, BYTE byDID, BYTE bySDID) |
Sets the ANC data types to be captured for SDI signal. More... | |
MW_RESULT LIBMWCAPTURE_API | MWCaptureGetSDIANCPacket (HCHANNEL hChannel, MWCAP_SDI_ANC_PACKET *pPacket) |
Captures specified SDI ANC data. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetVideoCaptureSupportResolutionMode (HCHANNEL hChannel, MWCAP_VIDEO_RESOLUTION_MODE *pMode, int *pCount) |
Gets resolution mode supported by devices, including MWCAP_VIDEO_RESOLUTION_MODE_LIST when the resolutions are discrete values, and MWCAP_VIDEO_RESOLUTION_MODE_RANGE when the resolutions are continuous values. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetVideoCaptureSupportRangeResolution (HCHANNEL hChannel, MWCAP_VIDEO_RESOLUTION_RANGE *pRange) |
Gets resolution range supported by the device, when the return mode of MWGetVideoCaptureSupportResolutionMode is MWCAP_VIDEO_RESOLUTION_MODE_RANGE. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetVideoCaptureSupportListResolution (HCHANNEL hChannel, MWCAP_VIDEO_RESOLUTION_LIST *pList) |
Gets resolutions supported by devices when the return mode of MWGetVideoCaptureSupportResolutionMode is MWCAP_VIDEO_RESOLUTION_MODE_LIST. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetVideoCaptureSupportColorFormat (HCHANNEL hChannel, DWORD *pColorFourcc, int *nCount) |
Uses v4l2 to get the device supported color spaces. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetVideoProcParamRange (HANDLE hVideo, MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType, long *plParamValueMin, long *plParamValueMax, long *plParamValueDef) |
Gets range of video processing parameters. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetVideoProcParam (HANDLE hVideo, MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType, long *plParamValue) |
Gets current video processing settings. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetVideoProcParam (HANDLE hVideo, MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType, long lParamValue) |
Sets the specified video processing parameters. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetPostReconfig (HCHANNEL hChannel, DWORD dwDelayMS) |
Sends instructions for rereading configurations to delay the execution. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetVideoCaptureConnectionFormat (HCHANNEL hChannel, MWCAP_VIDEO_CONNECTION_FORMAT *pConnFormat) |
Gets the connection format of capture pin. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetInputSourceScanState (HCHANNEL hChannel, BOOLEAN *pbInputSourceScanning) |
Gets whether to scan the input signal source of specified channel automatically. More... | |
MW_RESULT LIBMWCAPTURE_API | MWGetVideoCaptureProcessSettings (HCHANNEL hChannel, MWCAP_VIDEO_PROCESS_SETTINGS *paProcessSettings) |
Gets the video process settings of specified channel. More... | |
MW_RESULT LIBMWCAPTURE_API | MWSetVideoCaptureProcessSettings (HCHANNEL hChannel, MWCAP_VIDEO_PROCESS_SETTINGS *paProcessSettings) |
Sets the video process parameters of specified channel. More... | |
void LIBMWCAPTURE_API MWCaptureExitInstance | ( | ) |
Quits instance.
The API is used to quit the current instance. It always used with MWCaptureInitInstance.
MW_RESULT LIBMWCAPTURE_API MWCaptureGetSDIANCPacket | ( | HCHANNEL | hChannel, |
MWCAP_SDI_ANC_PACKET * | pPacket | ||
) |
Captures specified SDI ANC data.
[in] | hChannel | Channel handle |
[in] | pPacket | ANC data packet |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets capture cc data types of SDI signal and get ANC data packet.
BOOL LIBMWCAPTURE_API MWCaptureInitInstance | ( | ) |
Initializes the MWCapture interfaces.
MW_RESULT LIBMWCAPTURE_API MWCaptureSetSDIANCType | ( | HCHANNEL | hChannel, |
BYTE | byIndex, | ||
BOOLEAN | bHANC, | ||
BOOLEAN | bVANC, | ||
BYTE | byDID, | ||
BYTE | bySDID | ||
) |
Sets the ANC data types to be captured for SDI signal.
[in] | hChannel | The opened channel handle |
[in] | byIndex | Index of ANC data types, from 0 to 3. |
[in] | bHANC | Whether it is HANC |
[in] | bVANC | Whether it is VANC |
[in] | byDID | SMPTE ANC DID |
[in] | bySDID | SMPTE ANC SDID |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets the ANC data types of SDI signal, 4 types at most.
void LIBMWCAPTURE_API MWCloseChannel | ( | HCHANNEL | hChannel | ) |
HANDLE LIBMWCAPTURE_API MWCreateAudioCapture | ( | HCHANNEL | hChannel, |
MWCAP_AUDIO_CAPTURE_NODE | captureNode, | ||
DWORD | dwSamplesPerSec, | ||
WORD | wBitsPerSample, | ||
WORD | wChannels, | ||
AUDIO_CAPTURE_CALLBACK | callback, | ||
void * | pParam | ||
) |
Create audio capture using the v4l function.
[in] | hChannel | The opened channel handle |
[in] | captureNode | Audio capture device type |
[in] | dwSamplesPerSec | Sampling rate |
[in] | wBitsPerSample | Depth |
[in] | wChannels | channels |
[in] | callback | The callback function |
[in] | pParam | The parameter passed to the callback function |
Not null | Function call succeeded. The device is ready to start to capture audio. |
NULL | Function call failed. Failed to start capturing. |
Usage:
use v4l2, just support one channel. It is supported by all capture devices.
HANDLE LIBMWCAPTURE_API MWCreateVideoCapture | ( | HCHANNEL | hChannel, |
int | nWidth, | ||
int | nHeight, | ||
int | nFourcc, | ||
int | nFrameDuration, | ||
VIDEO_CAPTURE_CALLBACK | callback, | ||
void * | pParam | ||
) |
Uses the v4l function to create video capture.
[in] | hChannel | Channel handle opened |
[in] | nWidth | Width of video capture |
[in] | nHeight | Height of video capture |
[in] | nFourcc | Color format |
[in] | nFrameDuration | Frame rate of video capture |
[in] | callback | Callback of video capture |
[in] | pParam | The parameter passed to the callback function |
Not null | Function call succeeded. The device is ready to start to capture videos. |
NULL | Function call failed. Failed to start capturing. |
Usage:
Captures videos from the specified channel.
MW_RESULT LIBMWCAPTURE_API MWDestoryAudioCapture | ( | HANDLE | hAudio | ) |
Stops audio capturing.
[in] | hAudio | Opened audio capture handle |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Works with MWCreateAudioCapture or MWCreateAudioCaptureWithStdCallBack.
MW_RESULT LIBMWCAPTURE_API MWDestoryVideoCapture | ( | HANDLE | hVideo | ) |
Stops video capturing.
[in] | hVideo | The opened video capture handle |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Stops video capturing. Works with MWCreateVideoCapture or
MWCreateVideoCaptureWithStdCallBack.
MW_RESULT LIBMWCAPTURE_API MWEraseFirmwareData | ( | HCHANNEL | hChannel, |
DWORD | cbOffset, | ||
DWORD | cbErase | ||
) |
Erases firmware data.
[in] | hChannel | The opened channel handle |
[in] | cbOffset | The starting position of the data to erase |
[in] | cbErase | The length of the data to erase |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Erases firmware data of specified channel/device. It is not recommended to call this API.
MW_RESULT LIBMWCAPTURE_API MWGetAudioCaps | ( | HCHANNEL | hChannel, |
MWCAP_AUDIO_CAPS * | pAudioCaps | ||
) |
Gets audio capture capability of the channel.
[in] | hChannel | Channel handle |
[out] | pAudioCaps | A pointer to struct MWCAP_AUDIO_CAPS, which returns audio capture capability of the channel. |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
MW_RESULT LIBMWCAPTURE_API MWGetAudioInputSource | ( | HCHANNEL | hChannel, |
DWORD * | pdwSource | ||
) |
Gets current input audio source of the specified channel.
[in] | hChannel | Channel handle |
[out] | pdwSource | Returns current input audio source. |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets current input audio of the specified channel. The definition of pdwSource refers to INPUT_TYPE.
MW_RESULT LIBMWCAPTURE_API MWGetAudioInputSourceArray | ( | HCHANNEL | hChannel, |
DWORD * | pdwInputSource, | ||
DWORD * | pdwInputCount | ||
) |
Gets the input audio signal types supported by the channel.
[in] | hChannel | Channel handle |
[out] | pdwInputSource | Returns the input audio signal types supported by the channel. When being set to NULL, pdwInputCount returns the number of audio signal types supported by the channel. |
[in,out] | pdwInputCount | As an input parameter, it indicates the size of array that pdwInputSource points to. As an output parameter, it returns the number of audio signal types supported by the channel. |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
MW_RESULT LIBMWCAPTURE_API MWGetAudioSignalStatus | ( | HCHANNEL | hChannel, |
MWCAP_AUDIO_SIGNAL_STATUS * | pSignalStatus | ||
) |
Gets the audio signal status of specified channel.
[in] | hChannel | Channel handle |
[out] | pSignalStatus | A pointer to struct MWCAP_AUDIO_SIGNAL_STATUS, which returns the audio signal status. |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets the audio signal status of specified channel.
MW_RESULT LIBMWCAPTURE_API MWGetAudioVolume | ( | HCHANNEL | hChannel, |
MWCAP_AUDIO_NODE | audioNode, | ||
MWCAP_AUDIO_VOLUME * | pVolume | ||
) |
Gets the volume value of audio capture device.
[in] | hChannel | Channel handle |
[in] | audioNode | Audio device type |
[out] | pVolume | Returns the volume of audio capture device |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets volume of audio capture device.
MW_RESULT LIBMWCAPTURE_API MWGetAVInputSourceLink | ( | HCHANNEL | hChannel, |
BOOLEAN * | pbLink | ||
) |
Gets whether the input audio input source is related to video input source.
[in] | hChannel | Channel handle |
[out] | pbLink | Returns whether the audio input source is related to the video input source |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets whether the audio input source is linked to video according to the channel handle. If it is TRUE, audio link video source is enabled by default. Which means when there are multiple input sources, the video input source will automate link its audio. If it returns FALSE, the video input would not match probably, you can use MWSetVideoInputSource and MWSetAudioInputSource to set the related link state.
int LIBMWCAPTURE_API MWGetChannelCount | ( | ) |
MW_RESULT LIBMWCAPTURE_API MWGetChannelInfo | ( | HCHANNEL | hChannel, |
MWCAP_CHANNEL_INFO * | pChannelInfo | ||
) |
Gets channel information.
[in] | hChannel | The Channel handle |
[out] | pChannelInfo | Channel information |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
MW_RESULT LIBMWCAPTURE_API MWGetChannelInfoByIndex | ( | int | nIndex, |
MWCAP_CHANNEL_INFO * | pChannelInfo | ||
) |
Gets the channel info by its index.
[in] | nIndex | Channel index, ranges from 0 to (MWGetChannelCount() - 1). |
[out] | pChannelInfo | Channel infomation |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
MW_RESULT LIBMWCAPTURE_API MWGetCustomVideoResolutions | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_CUSTOM_RESOLUTION_ARRAY * | paCustomResolutions | ||
) |
Gets the custom resolutions in vga timing of specified channel.
[in] | hChannel | Channel handle |
[out] | paCustomResolutions | Custom resolution array |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets the custom resolutions in vga timing of specified channel.
MW_RESULT LIBMWCAPTURE_API MWGetCustomVideoTimings | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_CUSTOM_TIMING_ARRAY * | paCustomTimings | ||
) |
Gets the custom vga timing of specified channel.
[in] | hChannel | Channel handle |
[out] | paCustomTimings | Custom vga timing array |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets the custom vga timing of specified channel.
MW_RESULT LIBMWCAPTURE_API MWGetDevicePath | ( | int | nIndex, |
char * | pDevicePath | ||
) |
Gets the instance path of capture device based on the index.
[in] | nIndex | Channel index, from 0 to (MWGetChannelCount() - 1) |
[out] | pDevicePath | Path of the device |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets the instance path of capture device on its index
MW_RESULT LIBMWCAPTURE_API MWGetEDID | ( | HCHANNEL | hChannel, |
BYTE * | pbyData, | ||
ULONG * | pulSize | ||
) |
Gets the EDID of specified channel.
[in] | hChannel | Channel handle |
[out] | pbyData | Returns EDID |
[in,out] | pulSize | As input parameter, it indicates the memory size that pbyData points to. As output parameter, it returns the data length of EDID. |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets the EDID of specified channel.
EDID is supplied by HDMI capture device. It is invalid for other capture devices.
MW_RESULT LIBMWCAPTURE_API MWGetFamilyInfo | ( | HCHANNEL | hChannel, |
LPVOID | pFamilyInfo, | ||
DWORD | dwSize | ||
) |
Gets attributions of product family which the capture device belongs to.
[in] | hChannel | Channel handle |
[out] | pFamilyInfo | Returns attributions of product family which the capture device belongs to. |
[in] | dwSize | The size of the struct which pFamilyInfo points to. |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets attributions of product family which the capture device belongs to, according to its channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetFamilyInfoByIndex | ( | int | nIndex, |
LPVOID | pFamilyInfo, | ||
DWORD | dwSize | ||
) |
Gets the product family based on the index.
[in] | nIndex | Channel index, from 0 to (MWGetChannelCount() - 1) |
[out] | pFamilyInfo | A pointer to the struct of MWCAP_PRO_CAPTURE_INFO, MWCAP_ECO_CAPTURE_INFO or MWUSBCAP_CAPTURE_INFO that returns the product family of your device. |
[in] | dwSize | The size of the struct that the pFamilyInfo points to. |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets the product family of the device based on the index.
It is supported by the Pro/Eco/USB family.
Code for Pro capture family:
Code for Eco capture family:
Code for USB capture family:
MW_RESULT LIBMWCAPTURE_API MWGetFirmwareStorageInfo | ( | HCHANNEL | hChannel, |
MWCAP_FIRMWARE_STORAGE * | pFirmwareStorageInfo | ||
) |
Gets firmware storage information.
[in] | hChannel | The opened channel handle |
[out] | pFirmwareStorageInfo | A pointer to MWCAP_FIRMWARE_STORAGE, which returns firmware storage information |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets firmware storage information of specified channel.
MW_RESULT LIBMWCAPTURE_API MWGetHDMIInfoFramePacket | ( | HCHANNEL | hChannel, |
MWCAP_HDMI_INFOFRAME_ID | id, | ||
HDMI_INFOFRAME_PACKET * | pPacket | ||
) |
Gets HDMI InfoFrame data.
[in] | hChannel | Channel handle |
[in] | id | HDMI InfoFrame ID |
[out] | pPacket | A pointer to struct HDMI_INFOFRAME_PACKET, which returns HDMI InfoFrame data. |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets data of HDMI InfoFrame.
MW_RESULT LIBMWCAPTURE_API MWGetHDMIInfoFrameValidFlag | ( | HCHANNEL | hChannel, |
DWORD * | pdwValidFlag | ||
) |
Gets valid flag of HDMI InfoFrame.
[in] | hChannel | Channel handle |
[out] | pdwValidFlag | Returns valid flag of HDMI InfoFrame |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets valid flag of HDMI InfoFrame. Only supported by HDMI capture devices, other devices are not supported.
The value of pdwValidFlag refers to MWCAP_HDMI_INFOFRAME_MASK.
MW_RESULT LIBMWCAPTURE_API MWGetInputSourceScan | ( | HCHANNEL | hChannel, |
BOOLEAN * | pbScan | ||
) |
Gets the scan state of input source.
[in] | hChannel | Channel handle |
[out] | pbScan | The return value indicates whether it is in scanning. 1 indicates true, AutoScan; 0 indicates false, not Autoscan. |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets the scan state of input source. That is whether the input source is automatically scanned. If multiple sources are connected, the device will automatically capture the valid one.
MW_RESULT LIBMWCAPTURE_API MWGetInputSourceScanState | ( | HCHANNEL | hChannel, |
BOOLEAN * | pbInputSourceScanning | ||
) |
Gets whether to scan the input signal source of specified channel automatically.
[in] | hChannel | Channel handle |
[out] | pbInputSourceScanning | Whether to scan the input signal resource |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets whether to scan the input signal resources of specified channel automatically.
MW_RESULT LIBMWCAPTURE_API MWGetInputSpecificStatus | ( | HCHANNEL | hChannel, |
MWCAP_INPUT_SPECIFIC_STATUS * | pInputStatus | ||
) |
Gets the specific status of input signal.
[in] | hChannel | Channel handle |
[out] | pInputStatus | A pointer to struct MWCAP_INPUT_SPECIFIC_STATUS, which returns the input signal state. |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets the detailed state of specified input source.
MW_RESULT LIBMWCAPTURE_API MWGetPreferredVideoTimings | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_TIMING_ARRAY * | paTimings | ||
) |
Gets the preffered vga timing array of specified channel.
[in] | hChannel | Channel handle |
[out] | paTimings | Timing array |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets the preffered vga timing array of specified channel.
MW_RESULT LIBMWCAPTURE_API MWGetVersion | ( | BYTE * | pbyMaj, |
BYTE * | pbyMin, | ||
WORD * | pwBuild | ||
) |
Gets the version number of SDK.
[out] | pbyMaj | Major version number |
[out] | pbyMin | Minor version number |
[out] | pwBuild | Build version number |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Calls the API wherever you need, even before the MWCaptureInitInstance().
MW_RESULT LIBMWCAPTURE_API MWGetVideoAutoHAlign | ( | HCHANNEL | hChannel, |
BOOLEAN * | pbAutoHAlign | ||
) |
Gets whether to adjust horizontal alignment of the vga timing automatically.
[in] | hChannel | Channel handle |
[out] | pbAutoHAlign | Whether to adjust horizontal automatically |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets whether to adjust horizontal alignment of the vga timing automatically.
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaps | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_CAPS * | pVideoCaps | ||
) |
Gets video capture capability of the specified channel.
[in] | hChannel | Channel handle |
[out] | pVideoCaps | A pointer to struct MWCAP_VIDEO_CAPS, which returns video capture capability of the channel |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureConnectionFormat | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_CONNECTION_FORMAT * | pConnFormat | ||
) |
Gets the connection format of capture pin.
[in] | hChannel | Channel handle |
[out] | paConnectionFormat | Connection format |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureProcessSettings | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_PROCESS_SETTINGS * | paProcessSettings | ||
) |
Gets the video process settings of specified channel.
[in] | hChannel | Channel handle |
[out] | paProcessSettings | Video process settings |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets the video process parameters of specified channel.
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureSupportColorFormat | ( | HCHANNEL | hChannel, |
DWORD * | pColorFourcc, | ||
int * | nCount | ||
) |
Uses v4l2 to get the device supported color spaces.
[in] | hChannel | The opened channel handle |
[out] | pColorFourcc | Returns the device supported color spaces. For details, see MWFOURCC.h. When being set to NULL, the returned value is the number of device supported color spaces. |
[out] | nCount | The number of color formats supported by the capture device. |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets capture formats supported by devices.
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureSupportListResolution | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_RESOLUTION_LIST * | pList | ||
) |
Gets resolutions supported by devices when the return mode of MWGetVideoCaptureSupportResolutionMode is MWCAP_VIDEO_RESOLUTION_MODE_LIST.
[in] | hChannel | The opened channel handle |
[out] | pList | Supported discrete resolution values |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureSupportRangeResolution | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_RESOLUTION_RANGE * | pRange | ||
) |
Gets resolution range supported by the device, when the return mode of MWGetVideoCaptureSupportResolutionMode is MWCAP_VIDEO_RESOLUTION_MODE_RANGE.
[in] | hChannel | The opened channel handle |
[out] | pRange | Supported resolution range |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureSupportResolutionMode | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_RESOLUTION_MODE * | pMode, | ||
int * | pCount | ||
) |
Gets resolution mode supported by devices, including MWCAP_VIDEO_RESOLUTION_MODE_LIST when the resolutions are discrete values, and MWCAP_VIDEO_RESOLUTION_MODE_RANGE when the resolutions are continuous values.
[in] | hChannel | The opened channel handle |
[out] | pMode | Returns the device supported resolution mode: MWCAP_VIDEO_RESOLUTION_MODE_LIST, MWCAP_VIDEO_RESOLUTION_MODE_RANGE. |
[out] | pCount | Only available when the mode is MWCAP_VIDEO_RESOLUTION_MODE_LIST, indicates the device supported number of resolutions. |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputAspectRatio | ( | HCHANNEL | hChannel, |
int * | pnAspectX, | ||
int * | pnAspectY | ||
) |
Gets aspect ratio of input video source.
[in] | hChannel | The opened channel handle |
[out] | pnAspectX | The returned width of aspect ratio |
[out] | pnAspectY | The returned height of aspect ratio |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets aspect ratio of specified input video source.
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputColorFormat | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_COLOR_FORMAT * | pColorFormat | ||
) |
Gets color format of input video.
[in] | hChannel | The opened channel handle |
[out] | pColorFormat | A pointer to MWCAP_VIDEO_COLOR_FORMAT, which returns color format value |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets color format of specified input channel.
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputQuantizationRange | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_QUANTIZATION_RANGE * | pQuantRange | ||
) |
Gets quantization range of input video.
[in] | hChannel | The opened channel handle |
[out] | pQuantRange | A pointer to MWCAP_VIDEO_QUANTIZATION_RANGE, which returns the quantization range value |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets quantization range of specified input channel.
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputSource | ( | HCHANNEL | hChannel, |
DWORD * | pdwSource | ||
) |
Gets current video input source of the channel.
[in] | hChannel | Channel handle |
[out] | pdwSource | Returns current video input source |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets current video input source of the channel.
The definition of pdwSource refers to MWCAP_VIDEO_INPUT_TYPE.
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputSourceArray | ( | HCHANNEL | hChannel, |
DWORD * | pdwInputSource, | ||
DWORD * | pdwInputCount | ||
) |
Gets the input video signal types supported by the channel.
[in] | hChannel | Channel handle |
[out] | pdwInputSource | Returns the input video signal types supported by the channel. When being set to NULL, pdwInputCount returns the number of video signal types supported by the channel. |
[in,out] | pdwInputCount | As an input parameter, it indicates the size of array that pdwInputSource points to. As an output parameter, it returns the number of video signal types supported by the channel. |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
MW_RESULT LIBMWCAPTURE_API MWGetVideoProcParam | ( | HANDLE | hVideo, |
MWCAP_VIDEO_PROC_PARAM_TYPE | videoProcParamType, | ||
long * | plParamValue | ||
) |
Gets current video processing settings.
[in] | hVideo | Opened video capture channel handle |
[in] | videoProcParamType | Video processing parameters, including brightness, contrast, hue, saturation. |
[out] | plParamValue | The returned default value |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
MW_RESULT LIBMWCAPTURE_API MWGetVideoProcParamRange | ( | HANDLE | hVideo, |
MWCAP_VIDEO_PROC_PARAM_TYPE | videoProcParamType, | ||
long * | plParamValueMin, | ||
long * | plParamValueMax, | ||
long * | plParamValueDef | ||
) |
Gets range of video processing parameters.
[in] | hVideo | The opened video capture handle |
[in] | videoProcParamType | Video processing parameter type, including brightness, contrast, hue, saturation. |
[out] | plParamValueMin | The returned minimum value |
[out] | plParamValueMax | The returned maximum value |
[out] | plParamValueDef | The returned default value |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
MW_RESULT LIBMWCAPTURE_API MWGetVideoSamplingPhase | ( | HCHANNEL | hChannel, |
BYTE * | puSamplingPhase | ||
) |
Gets the phase of the specified input vga timing.
[in] | hChannel | The opened channel handle |
[out] | puSamplingPhase | Phase |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets the phase of the specified input vga timing.
MW_RESULT LIBMWCAPTURE_API MWGetVideoSamplingPhaseAutoAdjust | ( | HCHANNEL | hChannel, |
BOOLEAN * | pbAutoSamplingPhase | ||
) |
Gets whether to adjust the phase of the specified input vga timing automatically.
[in] | hChannel | Channel handle |
[out] | pbAutoSamplingPhase | Returns whether to automatically adjust the phase of vga timing sampling |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets whether to adjust the phase of the specified vga timing automatically.
MW_RESULT LIBMWCAPTURE_API MWGetVideoSignalStatus | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_SIGNAL_STATUS * | pSignalStatus | ||
) |
Gets video signal status of specified channel.
[in] | hChannel | Channel handle |
[out] | pSignalStatus | A pointer to struct MWCAP_VIDEO_SIGNAL_STATUS, which returns video signal status. |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Gets the video signal status of specified channel.
HCHANNEL LIBMWCAPTURE_API MWOpenChannelByPath | ( | const char * | pszDevicePath | ) |
Opens capture channel by device instance path.
[in] | pszDevicePath | Device instance path |
Usage:
Opens capture channel according to device instance path. Gets ready for work.
MW_RESULT LIBMWCAPTURE_API MWReadFirmwareData | ( | HCHANNEL | hChannel, |
DWORD | cbOffset, | ||
BYTE * | pbyData, | ||
DWORD | cbToRead, | ||
DWORD * | pcbRead | ||
) |
Read firmware data from specified channel.
[in] | hChannel | The opened channel handle |
[in] | cbOffset | The starting position of the data to read |
[out] | pbyData | Returns the read data |
[in] | cbToRead | The data length to read |
[out] | pcbRead | Returns the actual length of the read data |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Reads the firmware data from specified channel.
MW_RESULT LIBMWCAPTURE_API MWRefreshDevice | ( | ) |
Refreshes device list.
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Calls the API to refresh device list when the connected devices changed.
MW_RESULT LIBMWCAPTURE_API MWSetAudioInputSource | ( | HCHANNEL | hChannel, |
DWORD | dwSource | ||
) |
Sets current audio input source of specified channel.
[in] | hChannel | Channel handle |
[in] | dwSource | Sets current audio input source |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets current audio input source of specified channel.
The definition of dwSource refers to INPUT_TYPE.
MW_RESULT LIBMWCAPTURE_API MWSetAudioVolume | ( | HCHANNEL | hChannel, |
MWCAP_AUDIO_NODE | audioNode, | ||
MWCAP_AUDIO_VOLUME * | pVolume | ||
) |
Sets the volume of audio capture device.
[in] | hChannel | Channel handle |
[in] | audioNode | Audio device type |
[in] | pVolume | The volume of audio capture device |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets the volume of audio capture device.
MW_RESULT LIBMWCAPTURE_API MWSetAVInputSourceLink | ( | HCHANNEL | hChannel, |
BOOLEAN | bLink | ||
) |
Sets whether the input video source is linked to its audio automatically.
[in] | hChannel | Channel handle |
[in] | bLink | Sets whether the audio input source link the video input source |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets whether the audio input source link the video input source automatically.
MW_RESULT LIBMWCAPTURE_API MWSetCustomVideoResolutions | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_CUSTOM_RESOLUTION_ARRAY * | paCustomResolutions | ||
) |
Sets the custom resolutions in vga timing of specified channel.
[in] | hChannel | Channel handle |
[in] | paCustomResolutions | Custom resolution array |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets the custom resolutions in vga timing of specified channel.
MW_RESULT LIBMWCAPTURE_API MWSetCustomVideoTiming | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_CUSTOM_TIMING * | pCustomTiming | ||
) |
Sets the custom vga timing of specified channel.
[in] | hChannel | Channel handle |
[in] | pCustomTiming | Custom timing |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets the custom vga timing of specified channel.
MW_RESULT LIBMWCAPTURE_API MWSetCustomVideoTimings | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_CUSTOM_TIMING_ARRAY * | paCustomTimings | ||
) |
Sets the custom vga timing array of specified channel.
[in] | hChannel | Channel handle |
[out] | paCustomTimings | Custom timings array |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets the custom vga timing array of specified channel.
MW_RESULT LIBMWCAPTURE_API MWSetEDID | ( | HCHANNEL | hChannel, |
BYTE * | pbyData, | ||
ULONG | ulSize | ||
) |
Sets EDID of specified channel.
[in] | hChannel | Channel handle |
[in] | pbyData | New EDID |
[in] | ulSize | Data length of EDID |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
EDID is supplied by HDMI capture device. The API is invalid for other capture devices when being called.
Make sure you are familiar with EDID when you use this API. Otherwise we do not recommend you to use it.
MW_RESULT LIBMWCAPTURE_API MWSetInputSourceScan | ( | HCHANNEL | hChannel, |
BOOLEAN | bScan | ||
) |
Sets the scan state of input source.
[in] | hChannel | Channel handle |
[in] | bScan | Indicates the scanned states. 1 indicates true, AutoScan; 0 indicates false, not Autoscans. |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets whether to automatically scan the input interface captured channel.
MW_RESULT LIBMWCAPTURE_API MWSetLEDMode | ( | HCHANNEL | hChannel, |
DWORD | dwMode | ||
) |
Sets LED mode.
[in] | hChannel | The opened channel handle |
[in] | dwMode | LED mode. For details, see MWCAP_LED_MODE. |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets LED flash mode of specified channel.
For detailed information of dwMode value, see MWCAP_LED_MODE.
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_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Rereads configurations
Be cautious when using it.
MW_RESULT LIBMWCAPTURE_API MWSetVideoAutoHAlign | ( | HCHANNEL | hChannel, |
BOOLEAN | bAutoHAlign | ||
) |
Sets whether to adjust horizontal alignment of the vga timing automatically.
[in] | hChannel | Channel handle |
[in] | bAutoHAlign | Whether to adjust horizontal alignment of the vga timing automatically |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets whether to adjust horizontal alignment of the vga timing automatically.
MW_RESULT LIBMWCAPTURE_API MWSetVideoCaptureProcessSettings | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_PROCESS_SETTINGS * | paProcessSettings | ||
) |
Sets the video process parameters of specified channel.
[in] | hChannel | Channel handle |
[in] | paProcessSettings | Video process parameters |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets the video process parameters of specified channel.
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputAspectRatio | ( | HCHANNEL | hChannel, |
int | nAspectX, | ||
int | nAspectY | ||
) |
Sets aspect ratio of input video source.
[in] | hChannel | The opened channel handle |
[in] | nAspectX | width |
[in] | nAspectY | Height |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets aspect ratio of specified input video source. It works with the other video processing parameters.
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputColorFormat | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_COLOR_FORMAT | colorFormat | ||
) |
Sets color format of input video.
[in] | hChannel | The opened channel handle |
[in] | colorFormat | Color format |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets color format of specified input channel.
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputQuantizationRange | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_QUANTIZATION_RANGE | quantRange | ||
) |
Sets quantization range of input video.
[in] | hChannel | The opened channel handle |
[in] | quantRange | Quantization range |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets quantization range of specified input channel
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputSource | ( | HCHANNEL | hChannel, |
DWORD | dwSource | ||
) |
Sets the video input source of the specified channel.
[in] | hChannel | Channel handle |
[in] | dwSource | Sets current video input source |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets the video input source of the specified channel.
MW_RESULT LIBMWCAPTURE_API MWSetVideoProcParam | ( | HANDLE | hVideo, |
MWCAP_VIDEO_PROC_PARAM_TYPE | videoProcParamType, | ||
long | lParamValue | ||
) |
Sets the specified video processing parameters.
[in] | hVideo | The opened video channel handle |
[in] | videoProcParamType | Video processing parameter type, including brightness, contrast, hue, saturation. |
[in] | lParamValue | The set value, which should be within the range of parameters. |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
MW_RESULT LIBMWCAPTURE_API MWSetVideoSamplingPhase | ( | HCHANNEL | hChannel, |
BYTE | puSamplingPhase | ||
) |
Sets the phase of the specified input vga timing.
[in] | hChannel | Channel handle |
[in] | puSamplingPhase | Phase |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets the phase of the specified input vga timing.
MW_RESULT LIBMWCAPTURE_API MWSetVideoSamplingPhaseAutoAdjust | ( | HCHANNEL | hChannel, |
BOOLEAN | bAutoSamplingPhase | ||
) |
Sets whether to automatically adjust the phase of vga timing sampling.
[in] | hChannel | Channel handle |
[in] | bAutoSamplingPhase | Whether to adjust the phase of the specified vga timing automatically |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets whether to automatically adjust the phase of vga timing sampling.
MW_RESULT LIBMWCAPTURE_API MWSetVideoTiming | ( | HCHANNEL | hChannel, |
MWCAP_VIDEO_TIMING * | pTiming | ||
) |
Sets the vga timing of specified channel.
[in] | hChannel | Channel handle |
[in] | pTiming | Timing |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Sets the vga timing of specified channel.
MW_RESULT LIBMWCAPTURE_API MWWriteFirmwareData | ( | HCHANNEL | hChannel, |
DWORD | cbOffset, | ||
BYTE * | pbyData, | ||
DWORD | cbData | ||
) |
Writes firmware data to specified channel.
[in] | hChannel | The opened channel handle |
[in] | cbOffset | The starting position of the data to write |
[in] | pbyData | The data to write |
[in] | cbData | The data length to write |
MW_SUCCEEDED | Function call succeeded. |
MW_FAILED | Function call failed. |
MW_INVALID_PARAMS | Input invalid value(s). |
Usage:
Writes firmware data to specified channel(device). We do not recommend you to call this API.