MWCapture SDK Mac  3.3.0.12920
Functions
USB Capture Family Functions

Functions

MW_RESULT LIBMWCAPTURE_API MWUSBRegisterHotPlug (LPFN_HOT_PLUG_CALLBACK lpfnCallback, void *pParam)
 Registers notification event of device hot plug. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBUnRegisterHotPlug ()
 UnRegisters notification event of device hot plug. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetNotifyEnable (HUSBCHANNEL hChannel, MWCAP_NOTIFY_ENABLE *pNotify)
 Registers notification. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetNotifyStatus (HUSBCHANNEL hChannel, uint64_t *pullStatusBit)
 Gets notification status of USB specified channel. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetFirmwareErase (HUSBCHANNEL hChannel, uint32_t cbOffset, uint32_t cbErase)
 Erases firmware data from USB device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetFirmwareReadAddress (HUSBCHANNEL hChannel, uint32_t *pdwAddress)
 Gets read address of USB device firmware. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetEDIDLoopThrough (HUSBCHANNEL hChannel, char *pbyEDID, uint32_t *pcbEDID)
 Gets EDID of the loopthrough interface in the USB device, only supported by devices with loopthrough interface. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetLoopThroughValid (HUSBCHANNEL hChannel, bool_t *pbValid)
 Gets whether the loopthrough interface in the USB device is valid. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetAudioVolume (HUSBCHANNEL hChannel, MWCAP_USB_AUDIO_NODE audioNode, MWCAP_AUDIO_VOLUME *pVolume)
 Gets the volume of USB audio device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetAudioVolume (HUSBCHANNEL hChannel, MWCAP_USB_AUDIO_NODE audioNode, MWCAP_AUDIO_VOLUME *pVolume)
 Sets the volume of USB audio device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoCaptureConnectionFormat (HUSBCHANNEL hChannel, MWCAP_VIDEO_CONNECTION_FORMAT *pConnFormat)
 Get the capture format related parameters of the video capture device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoCaptureProcessSettings (HUSBCHANNEL hChannel, MWCAP_VIDEO_PROCESS_SETTINGS *pProcSettings)
 Get the video process settings of the video capture device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoCaptureProcessSettings (HUSBCHANNEL hChannel, MWCAP_VIDEO_PROCESS_SETTINGS *pProcSettings)
 Sets the video process settings of the video capture device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoOutputFOURCC (HUSBCHANNEL hChannel, MWCAP_VIDEO_OUTPUT_FOURCC *pOutputFourCC)
 Gets output video format of the video capture device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoOutputFOURCC (HUSBCHANNEL hChannel, MWCAP_VIDEO_OUTPUT_FOURCC *pOutputFourCC)
 Sets output format of the video capture device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoOutputFrameSize (HUSBCHANNEL hChannel, MWCAP_VIDEO_OUTPUT_FRAME_SIZE *pFrameSize)
 Gets resolutions of captured images supported by the USB device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoOutputFrameSize (HUSBCHANNEL hChannel, MWCAP_VIDEO_OUTPUT_FRAME_SIZE *pFrameSize)
 Sets resolutions supported by the USB device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoOutputFrameInterval (HUSBCHANNEL hChannel, MWCAP_VIDEO_OUTPUT_FRAME_INTERVAL *pFrameInterval)
 Gets capture intervals supported by USB device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoOutputFrameInterval (HUSBCHANNEL hChannel, MWCAP_VIDEO_OUTPUT_FRAME_INTERVAL *pFrameInterval)
 Sets capture intervals supported by USB device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetStatusImageMode (HUSBCHANNEL hChannel, MWCAP_STATUS_IMAGE_MODE *pImageMode)
 Gets the image pattern showed when there is not a valid input signal. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetStatusImageMode (HUSBCHANNEL hChannel, MWCAP_STATUS_IMAGE_MODE *pImageMode)
 Sets the image pattern showed when there is not a valid input signal. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetDeviceNameMode (HUSBCHANNEL hChannel, MWCAP_DEVICE_NAME_MODE *pNameMode)
 Gets device name pattern of USB device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetDeviceNameMode (HUSBCHANNEL hChannel, MWCAP_DEVICE_NAME_MODE *pNameMode)
 Sets device name pattern of USB device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSaveOptions (HUSBCHANNEL hChannel)
 Saves configurations. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBLoadOptions (HUSBCHANNEL hChannel)
 Load the settings to the capture device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBResetOptions (HUSBCHANNEL hChannel)
 Reset the settings to the capture device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoAutoHAlign (HUSBCHANNEL hChannel, bool_t *pbAutoHAlign)
 Gets whether video is horizontally aligned. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoAutoHAlign (HUSBCHANNEL hChannel, bool_t pbAutoHAlign)
 Sets video horizontal alignment. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoSamplingPhase (HUSBCHANNEL hChannel, uint8_t *puSamplingPhase)
 Gets video sampling phase. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoSamplingPhase (HUSBCHANNEL hChannel, uint8_t *puSamplingPhase)
 Sets video sampling phase. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoSamplingPhaseAutoAdjust (HUSBCHANNEL hChannel, bool_t *pbAutoSamplingPhase)
 Gets whether video sampling phase is auto adjusted. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoSamplingPhaseAutoAdjust (HUSBCHANNEL hChannel, bool_t *pbAutoSamplingPhase)
 Sets video sampling phase auto adjust. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoTiming (HUSBCHANNEL hChannel, MWCAP_VIDEO_TIMING *pTiming)
 Sets default video timing. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetPreferredVideoTimings (HUSBCHANNEL hChannel, MWCAP_VIDEO_TIMING_ARRAY *paTimings)
 Gets video preferred timings. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetCustomVideoTimings (HUSBCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING_ARRAY *paCustomTimings)
 Gets customize video timing array. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetCustomVideoTimings (HUSBCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING_ARRAY *paCustomTimings)
 Sets customize video timing array. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetCustomVideoTiming (HUSBCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING *pCustomTiming)
 Sets customize video timing. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetCustomVideoResolutions (HUSBCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_RESOLUTION_ARRAY *paCustomResolutions)
 Gets customize video resolutions. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetCustomVideoResolutions (HUSBCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_RESOLUTION_ARRAY *paCustomResolutions)
 Sets customize video resolutions. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetExtensionSupported (HUSBCHANNEL hChannel, uint32_t *pdwFlag)
 Gets extended support. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetInputSourceScanState (HUSBCHANNEL hChannel, bool_t *pbScanning)
 Obtains the scan state of input source. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetEDIDMode (HUSBCHANNEL hChannel, MWCAP_EDID_MODE *pMode)
 Gets current edid mode. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetEDIDMode (HUSBCHANNEL hChannel, MWCAP_EDID_MODE mode)
 Sets the edid mode. More...
 

Detailed Description

Function Documentation

◆ MWUSBGetAudioVolume()

MW_RESULT LIBMWCAPTURE_API MWUSBGetAudioVolume ( HUSBCHANNEL  hChannel,
MWCAP_USB_AUDIO_NODE  audioNode,
MWCAP_AUDIO_VOLUME pVolume 
)

Gets the volume of USB audio device.

Parameters
[in]hChannelChannel handle of USB device
[in]audioNodeAudio device
[out]pVolumeVolume of USB audio device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBGetCustomVideoResolutions()

MW_RESULT LIBMWCAPTURE_API MWUSBGetCustomVideoResolutions ( HUSBCHANNEL  hChannel,
MWCAP_VIDEO_CUSTOM_RESOLUTION_ARRAY paCustomResolutions 
)

Gets customize video resolutions.

Parameters
[in]hChannelChannel handle of USB device
[out]paCustomResolutionsThe customize resolutions of the capture device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBGetCustomVideoTimings()

MW_RESULT LIBMWCAPTURE_API MWUSBGetCustomVideoTimings ( HUSBCHANNEL  hChannel,
MWCAP_VIDEO_CUSTOM_TIMING_ARRAY paCustomTimings 
)

Gets customize video timing array.

Parameters
[in]hChannelChannel handle of USB device
[out]paCustomTimingsThe customize video timing of the capture device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBGetDeviceNameMode()

MW_RESULT LIBMWCAPTURE_API MWUSBGetDeviceNameMode ( HUSBCHANNEL  hChannel,
MWCAP_DEVICE_NAME_MODE *  pNameMode 
)

Gets device name pattern of USB device.

Parameters
[in]hChannelChannel handle of USB device
[out]pNameModeDevice name pattern
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBGetEDIDLoopThrough()

MW_RESULT LIBMWCAPTURE_API MWUSBGetEDIDLoopThrough ( HUSBCHANNEL  hChannel,
char *  pbyEDID,
uint32_t *  pcbEDID 
)

Gets EDID of the loopthrough interface in the USB device, only supported by devices with loopthrough interface.

Parameters
[in]hChannelChannel handle of USB device
[out]pbyEDIDEDID
[in,out]pcbEDIDAs an input parameter, it indicates the size of the area which is pointed by the pbyEDID. As an output parameter, it indicates the the size of the returned EDID.
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBGetEDIDMode()

MW_RESULT LIBMWCAPTURE_API MWUSBGetEDIDMode ( HUSBCHANNEL  hChannel,
MWCAP_EDID_MODE *  pMode 
)

Gets current edid mode.

Parameters
[in]hChannelChannel handle of USB device
[out]pModeThe edid mode of device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or NW_INVALID_PARAMS

◆ MWUSBGetExtensionSupported()

MW_RESULT LIBMWCAPTURE_API MWUSBGetExtensionSupported ( HUSBCHANNEL  hChannel,
uint32_t *  pdwFlag 
)

Gets extended support.

Parameters
[in]hChannelChannel handle of USB device
[out]pdwFlagThe extended supported flag of the capture device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBGetFirmwareReadAddress()

MW_RESULT LIBMWCAPTURE_API MWUSBGetFirmwareReadAddress ( HUSBCHANNEL  hChannel,
uint32_t *  pdwAddress 
)

Gets read address of USB device firmware.

Parameters
[in]hChannelChannel handle of USB device
[out]pdwAddressRead address of firmware
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBGetInputSourceScanState()

MW_RESULT LIBMWCAPTURE_API MWUSBGetInputSourceScanState ( HUSBCHANNEL  hChannel,
bool_t *  pbScanning 
)

Obtains the scan state of input source.

Parameters
[in]hChannelChannel handle of USB device
[out]pbScanningScan state of input source
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or NW_INVALID_PARAMS

◆ MWUSBGetLoopThroughValid()

MW_RESULT LIBMWCAPTURE_API MWUSBGetLoopThroughValid ( HUSBCHANNEL  hChannel,
bool_t *  pbValid 
)

Gets whether the loopthrough interface in the USB device is valid.

Parameters
[in]hChannelChannel handle of USB device
[out]pbValidWhether there is a loopthrough interface
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBGetNotifyStatus()

MW_RESULT LIBMWCAPTURE_API MWUSBGetNotifyStatus ( HUSBCHANNEL  hChannel,
uint64_t *  pullStatusBit 
)

Gets notification status of USB specified channel.

Parameters
[in]hChannelChannel handle of USB device
[out]pullStatusBitNotification mask
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBGetPreferredVideoTimings()

MW_RESULT LIBMWCAPTURE_API MWUSBGetPreferredVideoTimings ( HUSBCHANNEL  hChannel,
MWCAP_VIDEO_TIMING_ARRAY paTimings 
)

Gets video preferred timings.

Parameters
[in]hChannelChannel handle of USB device
[out]paTimingsThe preferred video timing of the capture device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBGetStatusImageMode()

MW_RESULT LIBMWCAPTURE_API MWUSBGetStatusImageMode ( HUSBCHANNEL  hChannel,
MWCAP_STATUS_IMAGE_MODE *  pImageMode 
)

Gets the image pattern showed when there is not a valid input signal.

Parameters
[in]hChannelChannel handle of USB device
[out]pImageModeThe image pattern showed when there is not a valid input signal
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBGetVideoAutoHAlign()

MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoAutoHAlign ( HUSBCHANNEL  hChannel,
bool_t *  pbAutoHAlign 
)

Gets whether video is horizontally aligned.

Parameters
[in]hChannelChannel handle of USB device
[out]pbAutoHAlignThe flag auto align horizontally
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBGetVideoCaptureConnectionFormat()

MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoCaptureConnectionFormat ( HUSBCHANNEL  hChannel,
MWCAP_VIDEO_CONNECTION_FORMAT pConnFormat 
)

Get the capture format related parameters of the video capture device.

Parameters
[in]hChannelInput the opened channel handle
[out]pConnFormatThe video connection format information
Returns
Returns MW_SUCCEED if succeeded, otherwise return MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBGetVideoCaptureProcessSettings()

MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoCaptureProcessSettings ( HUSBCHANNEL  hChannel,
MWCAP_VIDEO_PROCESS_SETTINGS pProcSettings 
)

Get the video process settings of the video capture device.

Parameters
[in]hChannelInput the opened channel handle
[out]pProcSettingsOutput the video process settings
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBGetVideoOutputFOURCC()

MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoOutputFOURCC ( HUSBCHANNEL  hChannel,
MWCAP_VIDEO_OUTPUT_FOURCC pOutputFourCC 
)

Gets output video format of the video capture device.

Parameters
[in]hChannelInput the opened channel handle
[out]pOutputFourCCThe output color format
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBGetVideoOutputFrameInterval()

MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoOutputFrameInterval ( HUSBCHANNEL  hChannel,
MWCAP_VIDEO_OUTPUT_FRAME_INTERVAL pFrameInterval 
)

Gets capture intervals supported by USB device.

Parameters
[in]hChannelChannel handle of USB device
[out]pFrameIntervalCapture intervals supported by USB device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBGetVideoOutputFrameSize()

MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoOutputFrameSize ( HUSBCHANNEL  hChannel,
MWCAP_VIDEO_OUTPUT_FRAME_SIZE pFrameSize 
)

Gets resolutions of captured images supported by the USB device.

Parameters
[in]hChannelChannel handle of USB device
[out]pFrameSizeResolutions of captured images supported by the USB device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBGetVideoSamplingPhase()

MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoSamplingPhase ( HUSBCHANNEL  hChannel,
uint8_t *  puSamplingPhase 
)

Gets video sampling phase.

Parameters
[in]hChannelChannel handle of USB device
[out]puSamplingPhaseThe value of the sampling phase of the capture device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBGetVideoSamplingPhaseAutoAdjust()

MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoSamplingPhaseAutoAdjust ( HUSBCHANNEL  hChannel,
bool_t *  pbAutoSamplingPhase 
)

Gets whether video sampling phase is auto adjusted.

Parameters
[in]hChannelChannel handle of USB device
[out]pbAutoSamplingPhaseThe automatic adjustment flag of the sample phase
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBLoadOptions()

MW_RESULT LIBMWCAPTURE_API MWUSBLoadOptions ( HUSBCHANNEL  hChannel)

Load the settings to the capture device.

Parameters
[in]hChannelChannel handle of USB device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBRegisterHotPlug()

MW_RESULT LIBMWCAPTURE_API MWUSBRegisterHotPlug ( LPFN_HOT_PLUG_CALLBACK  lpfnCallback,
void *  pParam 
)

Registers notification event of device hot plug.

Parameters
[in]lpfnCallbackCallback function of device hot plug notification
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBResetOptions()

MW_RESULT LIBMWCAPTURE_API MWUSBResetOptions ( HUSBCHANNEL  hChannel)

Reset the settings to the capture device.

Parameters
[in]hChannelChannel handle of USB device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBSaveOptions()

MW_RESULT LIBMWCAPTURE_API MWUSBSaveOptions ( HUSBCHANNEL  hChannel)

Saves configurations.

Parameters
[in]hChannelChannel handle of USB device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBSetAudioVolume()

MW_RESULT LIBMWCAPTURE_API MWUSBSetAudioVolume ( HUSBCHANNEL  hChannel,
MWCAP_USB_AUDIO_NODE  audioNode,
MWCAP_AUDIO_VOLUME pVolume 
)

Sets the volume of USB audio device.

Parameters
[in]hChannelChannel handle of USB device
[in]audioNodeAudio device
[in]pVolumeAudio device volume
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBSetCustomVideoResolutions()

MW_RESULT LIBMWCAPTURE_API MWUSBSetCustomVideoResolutions ( HUSBCHANNEL  hChannel,
MWCAP_VIDEO_CUSTOM_RESOLUTION_ARRAY paCustomResolutions 
)

Sets customize video resolutions.

Parameters
[in]hChannelChannel handle of USB device
[in]paCustomResolutionsThe customize resolutions set to the capture device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBSetCustomVideoTiming()

MW_RESULT LIBMWCAPTURE_API MWUSBSetCustomVideoTiming ( HUSBCHANNEL  hChannel,
MWCAP_VIDEO_CUSTOM_TIMING pCustomTiming 
)

Sets customize video timing.

Parameters
[in]hChannelChannel handle of USB device
[in]pCustomTimingThe customize video timing set to the capture device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBSetCustomVideoTimings()

MW_RESULT LIBMWCAPTURE_API MWUSBSetCustomVideoTimings ( HUSBCHANNEL  hChannel,
MWCAP_VIDEO_CUSTOM_TIMING_ARRAY paCustomTimings 
)

Sets customize video timing array.

Parameters
[in]hChannelChannel handle of USB device
[in]paCustomTimingsThe customize video timing set to the capture device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBSetDeviceNameMode()

MW_RESULT LIBMWCAPTURE_API MWUSBSetDeviceNameMode ( HUSBCHANNEL  hChannel,
MWCAP_DEVICE_NAME_MODE *  pNameMode 
)

Sets device name pattern of USB device.

Parameters
[in]hChannelChannel handle of USB device
[in]pNameModeDevice name pattern
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBSetEDIDMode()

MW_RESULT LIBMWCAPTURE_API MWUSBSetEDIDMode ( HUSBCHANNEL  hChannel,
MWCAP_EDID_MODE  mode 
)

Sets the edid mode.

Parameters
[in]hChannelChannel handle of USB device
[out]modeThe edid mode set to device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or NW_INVALID_PARAMS

◆ MWUSBSetFirmwareErase()

MW_RESULT LIBMWCAPTURE_API MWUSBSetFirmwareErase ( HUSBCHANNEL  hChannel,
uint32_t  cbOffset,
uint32_t  cbErase 
)

Erases firmware data from USB device.

Parameters
[in]hChannelChannel handle of USB device
[in]cbOffsetAddress offset
[in]cbEraseErased size
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBSetNotifyEnable()

MW_RESULT LIBMWCAPTURE_API MWUSBSetNotifyEnable ( HUSBCHANNEL  hChannel,
MWCAP_NOTIFY_ENABLE pNotify 
)

Registers notification.

Parameters
[in]hChannelInput the opened channel handle
[in]pNotifyNotification type
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBSetStatusImageMode()

MW_RESULT LIBMWCAPTURE_API MWUSBSetStatusImageMode ( HUSBCHANNEL  hChannel,
MWCAP_STATUS_IMAGE_MODE *  pImageMode 
)

Sets the image pattern showed when there is not a valid input signal.

Parameters
[in]hChannelChannel handle of USB device
[in]pImageModeThe image pattern showed when there is not a valid input signal
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBSetVideoAutoHAlign()

MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoAutoHAlign ( HUSBCHANNEL  hChannel,
bool_t  pbAutoHAlign 
)

Sets video horizontal alignment.

Parameters
[in]hChannelChannel handle of USB device
[out]pbAutoHAlignThe flag of the auto horizontal aligned set to the capture device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBSetVideoCaptureProcessSettings()

MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoCaptureProcessSettings ( HUSBCHANNEL  hChannel,
MWCAP_VIDEO_PROCESS_SETTINGS pProcSettings 
)

Sets the video process settings of the video capture device.

Parameters
[in]hChannelInput the opened channel handle
[in]pProcSettingsThe video process settings information
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBSetVideoOutputFOURCC()

MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoOutputFOURCC ( HUSBCHANNEL  hChannel,
MWCAP_VIDEO_OUTPUT_FOURCC pOutputFourCC 
)

Sets output format of the video capture device.

Parameters
[in]hChannelInput the opened channel handle
[in]pOutputFourCCThe value of output format set to the capture device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBSetVideoOutputFrameInterval()

MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoOutputFrameInterval ( HUSBCHANNEL  hChannel,
MWCAP_VIDEO_OUTPUT_FRAME_INTERVAL pFrameInterval 
)

Sets capture intervals supported by USB device.

Parameters
[in]hChannelChannel handle of USB device
[in]pFrameIntervalCapture intervals
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBSetVideoOutputFrameSize()

MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoOutputFrameSize ( HUSBCHANNEL  hChannel,
MWCAP_VIDEO_OUTPUT_FRAME_SIZE pFrameSize 
)

Sets resolutions supported by the USB device.

Parameters
[in]hChannelChannel handle of USB device
[in]pFrameSizeResolutions supported by the USB device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBSetVideoSamplingPhase()

MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoSamplingPhase ( HUSBCHANNEL  hChannel,
uint8_t *  puSamplingPhase 
)

Sets video sampling phase.

Parameters
[in]hChannelChannel handle of USB device
[in]puSamplingPhaseThe value of the sampling phase set to the capture device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBSetVideoSamplingPhaseAutoAdjust()

MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoSamplingPhaseAutoAdjust ( HUSBCHANNEL  hChannel,
bool_t *  pbAutoSamplingPhase 
)

Sets video sampling phase auto adjust.

Parameters
[in]hChannelChannel handle of USB device
[in]pbAutoSamplingPhaseThe automatic adjustment flag of the sample phase set to the capture device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBSetVideoTiming()

MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoTiming ( HUSBCHANNEL  hChannel,
MWCAP_VIDEO_TIMING pTiming 
)

Sets default video timing.

Parameters
[in]hChannelChannel handle of USB device
[in]pTimingThe video timing set to the capture device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWUSBUnRegisterHotPlug()

MW_RESULT LIBMWCAPTURE_API MWUSBUnRegisterHotPlug ( )

UnRegisters notification event of device hot plug.

Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS