29 #ifndef _MWUSB_CAPTURE_H_ 30 #define _MWUSB_CAPTURE_H_ 32 #ifdef LIBMWCAPTURE_EXPORTS 33 #define LIBMWCAPTURE_API __declspec(dllexport) 34 #elif LIBMWCAPTURE_DLL 35 #define LIBMWCAPTURE_API __declspec(dllimport) 37 #define LIBMWCAPTURE_API 44 #include "MWUSBCaptureExtension.h" 58 LPFN_HOT_PLUG_CALLBACK lpfnCallback,
82 MWCAP_NOTIFY_ENABLE * pNotify
95 uint64_t * pullStatusBit
109 HUSBCHANNEL hChannel,
123 HUSBCHANNEL hChannel,
124 uint32_t * pdwAddress
138 HUSBCHANNEL hChannel,
152 HUSBCHANNEL hChannel,
166 HUSBCHANNEL hChannel,
167 MWCAP_USB_AUDIO_NODE audioNode,
168 MWCAP_AUDIO_VOLUME* pVolume
181 HUSBCHANNEL hChannel,
182 MWCAP_USB_AUDIO_NODE audioNode,
183 MWCAP_AUDIO_VOLUME* pVolume
196 HUSBCHANNEL hChannel,
197 MWCAP_VIDEO_CONNECTION_FORMAT* pConnFormat
209 HUSBCHANNEL hChannel,
210 MWCAP_VIDEO_PROCESS_SETTINGS* pProcSettings
222 HUSBCHANNEL hChannel,
223 MWCAP_VIDEO_PROCESS_SETTINGS* pProcSettings
236 HUSBCHANNEL hChannel,
237 MWCAP_VIDEO_OUTPUT_FOURCC* pOutputFourCC
249 HUSBCHANNEL hChannel,
250 MWCAP_VIDEO_OUTPUT_FOURCC* pOutputFourCC
262 HUSBCHANNEL hChannel,
263 MWCAP_VIDEO_OUTPUT_FRAME_SIZE* pFrameSize
275 HUSBCHANNEL hChannel,
276 MWCAP_VIDEO_OUTPUT_FRAME_SIZE* pFrameSize
288 HUSBCHANNEL hChannel,
289 MWCAP_VIDEO_OUTPUT_FRAME_INTERVAL* pFrameInterval
301 HUSBCHANNEL hChannel,
302 MWCAP_VIDEO_OUTPUT_FRAME_INTERVAL* pFrameInterval
315 HUSBCHANNEL hChannel,
316 MWCAP_STATUS_IMAGE_MODE * pImageMode
328 HUSBCHANNEL hChannel,
329 MWCAP_STATUS_IMAGE_MODE * pImageMode
342 HUSBCHANNEL hChannel,
343 MWCAP_DEVICE_NAME_MODE * pNameMode
355 HUSBCHANNEL hChannel,
356 MWCAP_DEVICE_NAME_MODE * pNameMode
403 HUSBCHANNEL hChannel,
404 bool_t * pbAutoHAlign
416 HUSBCHANNEL hChannel,
429 HUSBCHANNEL hChannel,
430 uint8_t * puSamplingPhase
442 HUSBCHANNEL hChannel,
443 uint8_t* puSamplingPhase
455 HUSBCHANNEL hChannel,
456 bool_t * pbAutoSamplingPhase
468 HUSBCHANNEL hChannel,
469 bool_t * pbAutoSamplingPhase
481 HUSBCHANNEL hChannel,
482 MWCAP_VIDEO_TIMING * pTiming
494 HUSBCHANNEL hChannel,
495 MWCAP_VIDEO_TIMING_ARRAY * paTimings
507 HUSBCHANNEL hChannel,
508 MWCAP_VIDEO_CUSTOM_TIMING_ARRAY * paCustomTimings
520 HUSBCHANNEL hChannel,
521 MWCAP_VIDEO_CUSTOM_TIMING_ARRAY * paCustomTimings
533 HUSBCHANNEL hChannel,
534 MWCAP_VIDEO_CUSTOM_TIMING * pCustomTiming
546 HUSBCHANNEL hChannel,
547 MWCAP_VIDEO_CUSTOM_RESOLUTION_ARRAY * paCustomResolutions
559 HUSBCHANNEL hChannel,
560 MWCAP_VIDEO_CUSTOM_RESOLUTION_ARRAY * paCustomResolutions
572 HUSBCHANNEL hChannel,
608 #endif //_MWUSB_CAPTURE_H_ MW_RESULT LIBMWCAPTURE_API MWUSBResetOptions(HUSBCHANNEL hChannel)
Reset the settings to the capture device.
MW_RESULT LIBMWCAPTURE_API MWUSBGetEDIDMode(HUSBCHANNEL hChannel, MWCAP_EDID_MODE *pMode)
get current edid mode
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.
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoCaptureProcessSettings(HUSBCHANNEL hChannel, MWCAP_VIDEO_PROCESS_SETTINGS *pProcSettings)
Get the default settings of the video capture device.
MW_RESULT LIBMWCAPTURE_API MWUSBSetEDIDMode(HUSBCHANNEL hChannel, MWCAP_EDID_MODE mode)
set the edid mode
MW_RESULT LIBMWCAPTURE_API MWUSBSetCustomVideoTimings(HUSBCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING_ARRAY *paCustomTimings)
Set customize video timing array.
MW_RESULT LIBMWCAPTURE_API MWUSBSetCustomVideoResolutions(HUSBCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_RESOLUTION_ARRAY *paCustomResolutions)
Set customize video resolutions.
MW_RESULT LIBMWCAPTURE_API MWUSBGetLoopThroughValid(HUSBCHANNEL hChannel, bool_t *pbValid)
Get the valid flag of the loopthrough.
MW_RESULT LIBMWCAPTURE_API MWUSBSetStatusImageMode(HUSBCHANNEL hChannel, MWCAP_STATUS_IMAGE_MODE *pImageMode)
Set the image mode status.
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoAutoHAlign(HUSBCHANNEL hChannel, bool_t *pbAutoHAlign)
Get whether video is horizontally aligned.
MW_RESULT LIBMWCAPTURE_API MWUSBRegisterHotPlug(LPFN_HOT_PLUG_CALLBACK lpfnCallback, void *pParam)
Registers notification event of device hot plug.
MW_RESULT LIBMWCAPTURE_API MWUSBGetEDIDLoopThrough(HUSBCHANNEL hChannel, char *pbyEDID, uint32_t *pcbEDID)
Get the loop through EDID.
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoSamplingPhase(HUSBCHANNEL hChannel, uint8_t *puSamplingPhase)
Set video sampling phase.
MW_RESULT LIBMWCAPTURE_API MWUSBGetInputSourceScanState(HUSBCHANNEL hChannel, bool_t *pbScanning)
Obtains the scan state of input source.
MW_RESULT LIBMWCAPTURE_API MWUSBGetExtensionSupported(HUSBCHANNEL hChannel, uint32_t *pdwFlag)
Get extended support.
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoOutputFrameInterval(HUSBCHANNEL hChannel, MWCAP_VIDEO_OUTPUT_FRAME_INTERVAL *pFrameInterval)
Set output frame rate.
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoSamplingPhase(HUSBCHANNEL hChannel, uint8_t *puSamplingPhase)
Get video sampling phase.
MW_RESULT LIBMWCAPTURE_API MWUSBGetNotifyStatus(HUSBCHANNEL hChannel, uint64_t *pullStatusBit)
Get the notify status.
MW_RESULT LIBMWCAPTURE_API MWUSBGetPreferredVideoTimings(HUSBCHANNEL hChannel, MWCAP_VIDEO_TIMING_ARRAY *paTimings)
Get video preferred timings.
MW_RESULT LIBMWCAPTURE_API MWUSBLoadOptions(HUSBCHANNEL hChannel)
Load the settings to the capture device.
MW_RESULT LIBMWCAPTURE_API MWUSBGetCustomVideoTimings(HUSBCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING_ARRAY *paCustomTimings)
Get customize video timing array.
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoSamplingPhaseAutoAdjust(HUSBCHANNEL hChannel, bool_t *pbAutoSamplingPhase)
Get whether video sampling phase is auto adjusted.
MW_RESULT LIBMWCAPTURE_API MWUSBGetStatusImageMode(HUSBCHANNEL hChannel, MWCAP_STATUS_IMAGE_MODE *pImageMode)
Get the image mode status.
MW_RESULT LIBMWCAPTURE_API MWUSBGetFirmwareReadAddress(HUSBCHANNEL hChannel, uint32_t *pdwAddress)
Get the firmware data address.
MW_RESULT LIBMWCAPTURE_API MWUSBSetDeviceNameMode(HUSBCHANNEL hChannel, MWCAP_DEVICE_NAME_MODE *pNameMode)
Set device name mode.
MW_RESULT LIBMWCAPTURE_API MWUSBSetNotifyEnable(HUSBCHANNEL hChannel, MWCAP_NOTIFY_ENABLE *pNotify)
Registers notification.
MW_RESULT LIBMWCAPTURE_API MWUSBGetCustomVideoResolutions(HUSBCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_RESOLUTION_ARRAY *paCustomResolutions)
Get customize video resolutions.
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.
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoOutputFOURCC(HUSBCHANNEL hChannel, MWCAP_VIDEO_OUTPUT_FOURCC *pOutputFourCC)
Set output format of the video capture device.
MW_RESULT LIBMWCAPTURE_API MWUSBSetFirmwareErase(HUSBCHANNEL hChannel, uint32_t cbOffset, uint32_t cbErase)
Erases the firmware data.
MW_RESULT LIBMWCAPTURE_API MWUSBSaveOptions(HUSBCHANNEL hChannel)
Save the options to the capture device.
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoAutoHAlign(HUSBCHANNEL hChannel, bool_t pbAutoHAlign)
Set video horizontal alignment.
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoSamplingPhaseAutoAdjust(HUSBCHANNEL hChannel, bool_t *pbAutoSamplingPhase)
Set video sampling phase auto adjust.
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoOutputFrameSize(HUSBCHANNEL hChannel, MWCAP_VIDEO_OUTPUT_FRAME_SIZE *pFrameSize)
Get output frame size.
MW_RESULT LIBMWCAPTURE_API MWUSBUnRegisterHotPlug()
UnRegister notification event of device hot plug.
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoCaptureProcessSettings(HUSBCHANNEL hChannel, MWCAP_VIDEO_PROCESS_SETTINGS *pProcSettings)
Set the default video capture format.
MW_RESULT LIBMWCAPTURE_API MWUSBSetCustomVideoTiming(HUSBCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING *pCustomTiming)
Set customize video timing.
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoOutputFOURCC(HUSBCHANNEL hChannel, MWCAP_VIDEO_OUTPUT_FOURCC *pOutputFourCC)
Get output formate supported by the video capture device.
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoTiming(HUSBCHANNEL hChannel, MWCAP_VIDEO_TIMING *pTiming)
Set default video timing.
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoCaptureConnectionFormat(HUSBCHANNEL hChannel, MWCAP_VIDEO_CONNECTION_FORMAT *pConnFormat)
Get the capture format related parameters of the video capture device.
MW_RESULT LIBMWCAPTURE_API MWUSBSetVideoOutputFrameSize(HUSBCHANNEL hChannel, MWCAP_VIDEO_OUTPUT_FRAME_SIZE *pFrameSize)
Set output frame size.
MW_RESULT LIBMWCAPTURE_API MWUSBGetDeviceNameMode(HUSBCHANNEL hChannel, MWCAP_DEVICE_NAME_MODE *pNameMode)
Get the value of device name mode.
MW_RESULT LIBMWCAPTURE_API MWUSBGetVideoOutputFrameInterval(HUSBCHANNEL hChannel, MWCAP_VIDEO_OUTPUT_FRAME_INTERVAL *pFrameInterval)
Get output frame rate.