LibMWCapture  3.3.1
LibMWCapture Documentation
Macros | Functions
MWUSBCapture.h File Reference
#include <stdint.h>
#include "MWUSBCaptureExtension.h"

Go to the source code of this file.

Macros

#define LIBMWCAPTURE_API
 

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 ()
 UnRegister 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)
 Get the notify status. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetFirmwareErase (HUSBCHANNEL hChannel, uint32_t cbOffset, uint32_t cbErase)
 Erases the firmware data. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetFirmwareReadAddress (HUSBCHANNEL hChannel, uint32_t *pdwAddress)
 Get the firmware data address. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetEDIDLoopThrough (HUSBCHANNEL hChannel, char *pbyEDID, uint32_t *pcbEDID)
 Get the loop through EDID. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetLoopThroughValid (HUSBCHANNEL hChannel, bool_t *pbValid)
 Get the valid flag of the loopthrough. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetAudioVolume (HUSBCHANNEL hChannel, MWCAP_USB_AUDIO_NODE audioNode, MWCAP_AUDIO_VOLUME *pVolume)
 Get the volume value of the USB audio device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetAudioVolume (HUSBCHANNEL hChannel, MWCAP_USB_AUDIO_NODE audioNode, MWCAP_AUDIO_VOLUME *pVolume)
 Set the volume value to the 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 default settings of the video capture device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoCaptureProcessSettings (HUSBCHANNEL hChannel, MWCAP_VIDEO_PROCESS_SETTINGS *pProcSettings)
 Set the default video capture format. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoOutputFOURCC (HUSBCHANNEL hChannel, MWCAP_VIDEO_OUTPUT_FOURCC *pOutputFourCC)
 Get output formate supported by the video capture device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoOutputFOURCC (HUSBCHANNEL hChannel, MWCAP_VIDEO_OUTPUT_FOURCC *pOutputFourCC)
 Set output format of the video capture device. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoOutputFrameSize (HUSBCHANNEL hChannel, MWCAP_VIDEO_OUTPUT_FRAME_SIZE *pFrameSize)
 Get output frame size. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoOutputFrameSize (HUSBCHANNEL hChannel, MWCAP_VIDEO_OUTPUT_FRAME_SIZE *pFrameSize)
 Set output frame size. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoOutputFrameInterval (HUSBCHANNEL hChannel, MWCAP_VIDEO_OUTPUT_FRAME_INTERVAL *pFrameInterval)
 Get output frame rate. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoOutputFrameInterval (HUSBCHANNEL hChannel, MWCAP_VIDEO_OUTPUT_FRAME_INTERVAL *pFrameInterval)
 Set output frame rate. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetStatusImageMode (HUSBCHANNEL hChannel, MWCAP_STATUS_IMAGE_MODE *pImageMode)
 Get the image mode status. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetStatusImageMode (HUSBCHANNEL hChannel, MWCAP_STATUS_IMAGE_MODE *pImageMode)
 Set the image mode status. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetDeviceNameMode (HUSBCHANNEL hChannel, MWCAP_DEVICE_NAME_MODE *pNameMode)
 Get the value of device name mode. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetDeviceNameMode (HUSBCHANNEL hChannel, MWCAP_DEVICE_NAME_MODE *pNameMode)
 Set device name mode. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSaveOptions (HUSBCHANNEL hChannel)
 Save the options to the capture device. 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)
 Get whether video is horizontally aligned. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoAutoHAlign (HUSBCHANNEL hChannel, bool_t pbAutoHAlign)
 Set video horizontal alignment. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoSamplingPhase (HUSBCHANNEL hChannel, uint8_t *puSamplingPhase)
 Get video sampling phase. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoSamplingPhase (HUSBCHANNEL hChannel, uint8_t *puSamplingPhase)
 Set video sampling phase. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoSamplingPhaseAutoAdjust (HUSBCHANNEL hChannel, bool_t *pbAutoSamplingPhase)
 Get whether video sampling phase is auto adjusted. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoSamplingPhaseAutoAdjust (HUSBCHANNEL hChannel, bool_t *pbAutoSamplingPhase)
 Set video sampling phase auto adjust. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoTiming (HUSBCHANNEL hChannel, MWCAP_VIDEO_TIMING *pTiming)
 Set default video timing. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetPreferredVideoTimings (HUSBCHANNEL hChannel, MWCAP_VIDEO_TIMING_ARRAY *paTimings)
 Get video preferred timings. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetCustomVideoTimings (HUSBCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING_ARRAY *paCustomTimings)
 Get customize video timing array. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetCustomVideoTimings (HUSBCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING_ARRAY *paCustomTimings)
 Set customize video timing array. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetCustomVideoTiming (HUSBCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING *pCustomTiming)
 Set customize video timing. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetCustomVideoResolutions (HUSBCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_RESOLUTION_ARRAY *paCustomResolutions)
 Get customize video resolutions. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetCustomVideoResolutions (HUSBCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_RESOLUTION_ARRAY *paCustomResolutions)
 Set customize video resolutions. More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBGetExtensionSupported (HUSBCHANNEL hChannel, uint32_t *pdwFlag)
 Get 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)
 get current edid mode More...
 
MW_RESULT LIBMWCAPTURE_API MWUSBSetEDIDMode (HUSBCHANNEL hChannel, MWCAP_EDID_MODE mode)
 set the edid mode More...
 

Macro Definition Documentation

◆ LIBMWCAPTURE_API

#define LIBMWCAPTURE_API

Definition at line 37 of file MWUSBCapture.h.

Function Documentation

◆ MWUSBGetAudioVolume()

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

Get the volume value of the USB audio device.

Parameters
[in]hChannelInput the opened channel handle
[in]audioNodeThe type of audio device
[out]pVolumeThe volume value
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 
)

Get customize video resolutions.

Parameters
[in]hChannelInput the opened channel handle
[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 
)

Get customize video timing array.

Parameters
[in]hChannelInput the opened channel handle
[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 
)

Get the value of device name mode.

Parameters
[in]hChannelInput the opened channel handle
[out]pNameModeOutput the value of the capture device device name mode
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 
)

Get the loop through EDID.

Parameters
[in]hChannelInput the opened channel handle
[out]pbyEDIDThe buffer address to save edid value
[out]pcbEDIDThe size of edid data that have been read
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 
)

get current edid mode

Parameters
[in]hChannelInput the opened channel handle
[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 
)

Get extended support.

Parameters
[in]hChannelInput the opened channel handle
[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 
)

Get the firmware data address.

Parameters
[in]hChannelInput the opened channel handle
[out]pdwAddressThe address of the firmware data that has been read
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]hChannelInput the opened channel handle
[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 
)

Get the valid flag of the loopthrough.

Parameters
[in]hChannelInput the opened channel handle
[out]pbValidThe valid flag of loopthrough
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 
)

Get the notify status.

Parameters
[in]hChannelInput the opened channel handle
[out]pullStatusBitThe flag bits of notification
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 
)

Get video preferred timings.

Parameters
[in]hChannelInput the opened channel handle
[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 
)

Get the image mode status.

Parameters
[in]hChannelInput the opened channel handle
[out]pImageModeThe image mode of the capture device
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 
)

Get whether video is horizontally aligned.

Parameters
[in]hChannelInput the opened channel handle
[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
return 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 default 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 
)

Get output formate supported by the video capture device.

Parameters
[in]hChannelInput the opened channel handle
[out]pOutputFourCCThe output color space format supported
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 
)

Get output frame rate.

Parameters
[in]hChannelInput the opened channel handle
[out]pFrameIntervalThe video output frame interval supported
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 
)

Get output frame size.

Parameters
[in]hChannelInput the opened channel handle
[out]pFrameSizeThe output frame size supported
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 
)

Get video sampling phase.

Parameters
[in]hChannelInput the opened channel handle
[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 
)

Get whether video sampling phase is auto adjusted.

Parameters
[in]hChannelInput the opened channel handle
[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]hChannelInput the opened channel handle
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

◆ MWUSBResetOptions()

MW_RESULT LIBMWCAPTURE_API MWUSBResetOptions ( HUSBCHANNEL  hChannel)

Reset the settings to the capture device.

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

◆ MWUSBSaveOptions()

MW_RESULT LIBMWCAPTURE_API MWUSBSaveOptions ( HUSBCHANNEL  hChannel)

Save the options to the capture device.

Parameters
[in]hChannelInput the opened channel handle
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 
)

Set the volume value to the usb audio device.

Parameters
[in]hChannelInput the opened channel handle
[in]audioNodeThe type of audio device
[in]pVolumeSet volume value
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 
)

Set customize video resolutions.

Parameters
[in]hChannelInput the opened channel handle
[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 
)

Set customize video timing.

Parameters
[in]hChannelInput the opened channel handle
[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 
)

Set customize video timing array.

Parameters
[in]hChannelInput the opened channel handle
[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 
)

Set device name mode.

Parameters
[in]hChannelInput the opened channel handle
[in]pNameModeThe name mode set to the capture device
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 
)

set the edid mode

Parameters
[in]hChannelInput the opened channel handle
[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 the firmware data.

Parameters
[in]hChannelInput the opened channel handle
[in]cbOffsetThe offset of address erased
[in]cbEraseThe size of the data erased
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 
)

Set the image mode status.

Parameters
[in]hChannelInput the opened channel handle
[in]pImageModeThe value of image mode set to the capture device
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 
)

Set video horizontal alignment.

Parameters
[in]hChannelInput the opened channel handle
[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 
)

Set the default video capture format.

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 
)

Set 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 
)

Set output frame rate.

Parameters
[in]hChannelInput the opened channel handle
[in]pFrameIntervalThe value of output frame interval set to the capture device
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 
)

Set output frame size.

Parameters
[in]hChannelInput the opened channel handle
[in]pFrameSizeThe value of output frame size set to the capture 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 
)

Set video sampling phase.

Parameters
[in]hChannelInput the opened channel handle
[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 
)

Set video sampling phase auto adjust.

Parameters
[in]hChannelInput the opened channel handle
[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 
)

Set default video timing.

Parameters
[in]hChannelInput the opened channel handle
[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 ( )

UnRegister notification event of device hot plug.

Returns
return MW_SUCCEED