31 #ifdef LIBMWCAPTURE_EXPORTS
32 #define LIBMWCAPTURE_API __declspec(dllexport)
33 #elif LIBMWCAPTURE_DLL
34 #define LIBMWCAPTURE_API __declspec(dllimport)
36 #define LIBMWCAPTURE_API
41 #include "MWProCapture.h"
42 #include "MWCaptureExtension.h"
43 #include "MWUSBCapture.h"
44 #include "MWUSBCaptureExtension.h"
163 const char* pszDevicePath
247 DWORD* pdwInputSource,
263 DWORD* pdwInputSource,
665 char *pszVideoDevicePath
683 char *pszVideoDevicePath,
717 DWORD dwSamplesPerSec,
818 MWCAP_VIDEO_RESOLUTION_MODE *pMode,
886 MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType,
887 long * plParamValueMin,
888 long * plParamValueMax,
889 long * plParamValueDef
904 MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType,
921 MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType,
HDMI_INFOFRAME_PACKET.
Definition: MWHDMIPackets.h:361
MW_RESULT LIBMWCAPTURE_API MWGetHDMIInfoFrameValidFlag(HCHANNEL hChannel, DWORD *pdwValidFlag)
Gets the HDMI infoframe valid flag according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWSetAudioVolume(HCHANNEL hChannel, MWCAP_AUDIO_NODE audioNode, MWCAP_AUDIO_VOLUME *pVolume)
Sets the audio attribute value of audio device.
MWCAP_VIDEO_SIGNAL_STATUS.
Definition: MWCaptureExtension.h:742
MW_RESULT LIBMWCAPTURE_API MWReadFirmwareData(HCHANNEL hChannel, DWORD cbOffset, BYTE *pbyData, DWORD cbToRead, DWORD *pcbRead)
Obtains the firmware data according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetEDID(HCHANNEL hChannel, BYTE *pbyData, ULONG *pulSize)
Gets EDID according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureSupportResolutionMode(HCHANNEL hChannel, MWCAP_VIDEO_RESOLUTION_MODE *pMode, int *pCount)
Get the mode of resolutions supported by the device.
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureSupportListResolution(HCHANNEL hChannel, MWCAP_VIDEO_RESOLUTION_LIST *pList)
Get the list of resolutions supported by the device while the mode of resolutions supported by the de...
MWCAP_AUDIO_SIGNAL_STATUS.
Definition: MWCaptureExtension.h:769
MWCAP_CHANNEL_INFO.
Definition: MWCaptureExtension.h:410
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputSource(HCHANNEL hChannel, DWORD *pdwSource)
Gets the video input source according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWSetLEDMode(HCHANNEL hChannel, DWORD dwMode)
Sets LED mode.
void LIBMWCAPTURE_API MWCaptureExitInstance()
Quits MWCapture.
MW_RESULT LIBMWCAPTURE_API MWGetVersion(BYTE *pbyMaj, BYTE *pbyMin, WORD *pwBuild)
get the version of SDK
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputQuantizationRange(HCHANNEL hChannel, MWCAP_VIDEO_QUANTIZATION_RANGE quantRange)
Sets the video input quantization range according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaps(HCHANNEL hChannel, MWCAP_VIDEO_CAPS *pVideoCaps)
Obtains channel video capability information based on the channel handle.
MWCAP_FIRMWARE_STORAGE.
Definition: MWCaptureExtension.h:559
MW_RESULT LIBMWCAPTURE_API MWGetVideoProcParamRange(HANDLE hVideo, MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType, long *plParamValueMin, long *plParamValueMax, long *plParamValueDef)
Gets the range of the video processing parameter.
MW_RESULT LIBMWCAPTURE_API MWGetChannelInfoByIndex(int nIndex, MWCAP_CHANNEL_INFO *pChannelInfo)
Gets the channel info by its index.
enum _MWCAP_VIDEO_QUANTIZATION_RANGE MWCAP_VIDEO_QUANTIZATION_RANGE
MWCAP_VIDEO_QUANTIZATION_RANGE.
MWCAP_AUDIO_CAPS.
Definition: MWCaptureExtension.h:515
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputColorFormat(HCHANNEL hChannel, MWCAP_VIDEO_COLOR_FORMAT colorFormat)
Sets the video input color format according to the channel handle.
MW_RESULT MWGetVideoDevicePathByChannel(HCHANNEL hChannel, char *pszVideoDevicePath)
Gets video device path.
MWCAP_VIDEO_CAPS.
Definition: MWCaptureExtension.h:470
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputAspectRatio(HCHANNEL hChannel, int *pnAspectX, int *pnAspectY)
Gets the video input aspect ratio according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWEraseFirmwareData(HCHANNEL hChannel, DWORD cbOffset, DWORD cbErase)
Erases the firmware data according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetInputSourceScan(HCHANNEL hChannel, BOOLEAN *pbScan)
Gets the scan state of input source.
enum _MWCAP_AUDIO_CAPTURE_NODE MWCAP_AUDIO_CAPTURE_NODE
MWCAP_AUDIO_CAPTURE_NODE.
MW_RESULT LIBMWCAPTURE_API MWSetAudioInputSource(HCHANNEL hChannel, DWORD dwSource)
Sets current audio input source of specified channel.
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputAspectRatio(HCHANNEL hChannel, int nAspectX, int nAspectY)
Sets the video input aspect ratio according to the channel handle.
Definition: MWCaptureExtension.h:1494
enum _MWCAP_AUDIO_NODE MWCAP_AUDIO_NODE
MWCAP_AUDIO_NODE.
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.
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureSupportRangeResolution(HCHANNEL hChannel, MWCAP_VIDEO_RESOLUTION_RANGE *pRange)
Get the range of resolutions supported by the device while the mode of resolutions supported by the d...
MW_RESULT LIBMWCAPTURE_API MWSetEDID(HCHANNEL hChannel, BYTE *pbyData, ULONG ulSize)
Sets edid according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetInputSpecificStatus(HCHANNEL hChannel, MWCAP_INPUT_SPECIFIC_STATUS *pInputStatus)
Gets the input specific status value based on the channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetFamilyInfoByIndex(int nIndex, LPVOID pFamilyInfo, DWORD dwSize)
Gets the product family based on the index.
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputSource(HCHANNEL hChannel, DWORD dwSource)
Sets the video input source according to the channel handle.
MWCAP_INPUT_SPECIFIC_STATUS.
Definition: MWCaptureExtension.h:712
MW_RESULT LIBMWCAPTURE_API MWGetAudioSignalStatus(HCHANNEL hChannel, MWCAP_AUDIO_SIGNAL_STATUS *pSignalStatus)
Gets the audio signal status according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetFirmwareStorageInfo(HCHANNEL hChannel, MWCAP_FIRMWARE_STORAGE *pFirmwareStorageInfo)
Gets firmware storage information according to channel handle.
MW_RESULT LIBMWCAPTURE_API MWCaptureSetSDIANCType(HCHANNEL hChannel, BYTE byIndex, BOOLEAN bHANC, BOOLEAN bVANC, BYTE byDID, BYTE bySDID)
Set the type of ANC packet to capture.
MW_RESULT LIBMWCAPTURE_API MWSetVideoProcParam(HANDLE hVideo, MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType, long lParamValue)
Set the current value of the video processing parameter.
enum _MWCAP_VIDEO_COLOR_FORMAT MWCAP_VIDEO_COLOR_FORMAT
MWCAP_VIDEO_COLOR_FORMAT.
MWCAP_SDI_ANC_PACKET.
Definition: MWCaptureExtension.h:1667
MW_RESULT LIBMWCAPTURE_API MWCaptureGetSDIANCPacket(HCHANNEL hChannel, MWCAP_SDI_ANC_PACKET *pPacket)
Captures the specified type of ANC data.
MW_RESULT LIBMWCAPTURE_API MWGetDevicePath(int nIndex, char *pDevicePath)
Gets the path of the device.
enum _MWCAP_HDMI_INFOFRAME_ID MWCAP_HDMI_INFOFRAME_ID
MWCAP_HDMI_INFOFRAME_ID.
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputSourceArray(HCHANNEL hChannel, DWORD *pdwInputSource, DWORD *pdwInputCount)
Obtains channel video capability information based on channel handle.
BOOL LIBMWCAPTURE_API MWCaptureInitInstance()
Initializes MWCapture.
MW_RESULT LIBMWCAPTURE_API MWSetInputSourceScan(HCHANNEL hChannel, BOOLEAN bScan)
Sets the states of scanned input video source.
MW_RESULT LIBMWCAPTURE_API MWDestoryVideoCapture(HANDLE hVideo)
End of video capture.
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureSupportColorFormat(HCHANNEL hChannel, DWORD *pColorFourcc, int *nCount)
Obtains the video capture color format supported by the device.
MW_RESULT LIBMWCAPTURE_API MWGetAudioInputSource(HCHANNEL hChannel, DWORD *pdwSource)
Gets current input audio of the specified channel.
MW_RESULT LIBMWCAPTURE_API MWGetAVInputSourceLink(HCHANNEL hChannel, BOOLEAN *pbLink)
Gets the states of input audio/video sources.
int LIBMWCAPTURE_API MWGetChannelCount()
Gets the total number of channels.
HCHANNEL LIBMWCAPTURE_API MWOpenChannelByPath(const char *pszDevicePath)
Opens the device channel according to the path.
MW_RESULT LIBMWCAPTURE_API MWGetAudioVolume(HCHANNEL hChannel, MWCAP_AUDIO_NODE audioNode, MWCAP_AUDIO_VOLUME *pVolume)
Obtains audio attribute value of the audio device.
MW_RESULT LIBMWCAPTURE_API MWWriteFirmwareData(HCHANNEL hChannel, DWORD cbOffset, BYTE *pbyData, DWORD cbData)
Writes the firmware data according to the channel handle.
Definition: MWCaptureExtension.h:1501
MW_RESULT LIBMWCAPTURE_API MWRefreshDevice()
Refreshes device list.
MW_RESULT LIBMWCAPTURE_API MWSetAVInputSourceLink(HCHANNEL hChannel, BOOLEAN bLink)
Sets whether the audio input source follows the video input source according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetAudioCaps(HCHANNEL hChannel, MWCAP_AUDIO_CAPS *pAudioCaps)
Obtains channel audio capability information based on the channel handle.
void(* AUDIO_CAPTURE_CALLBACK)(const BYTE *pbFrame, int cbFrame, uint64_t u64TimeStamp, void *pParam)
Callback function of audio capture.
Definition: MWCaptureExtension.h:1643
MW_RESULT LIBMWCAPTURE_API MWDestoryAudioCapture(HANDLE hAudio)
End of audio capture.
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputQuantizationRange(HCHANNEL hChannel, MWCAP_VIDEO_QUANTIZATION_RANGE *pQuantRange)
Gets the video input quantization range according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetFamilyInfo(HCHANNEL hChannel, LPVOID pFamilyInfo, DWORD dwSize)
Gets the channel family information based on the channel handle.
void LIBMWCAPTURE_API MWCloseChannel(HCHANNEL hChannel)
Closes the device channel.
Definition: MWUSBCaptureExtension.h:173
HANDLE LIBMWCAPTURE_API MWCreateVideoCapture(char *pszVideoDevicePath, int nWidth, int nHeight, int nFourcc, int nFrameDuration, VIDEO_CAPTURE_CALLBACK callback, void *pParam)
Create video capture.
MW_RESULT LIBMWCAPTURE_API MWGetVideoProcParam(HANDLE hVideo, MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType, long *plParamValue)
Get the current value of the video processing parameter.
MW_RESULT LIBMWCAPTURE_API MWGetHDMIInfoFramePacket(HCHANNEL hChannel, MWCAP_HDMI_INFOFRAME_ID id, HDMI_INFOFRAME_PACKET *pPacket)
Gets the HDMI infoframe data according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetChannelInfo(HCHANNEL hChannel, MWCAP_CHANNEL_INFO *pChannelInfo)
Gets the channel information based on the channel handle.
void(* VIDEO_CAPTURE_CALLBACK)(BYTE *pBuffer, long iBufferLen, long stride, void *pParam)
Callback function of video capture.
Definition: MWCaptureExtension.h:1635
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputColorFormat(HCHANNEL hChannel, MWCAP_VIDEO_COLOR_FORMAT *pColorFormat)
Gets the video input color format according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetAudioInputSourceArray(HCHANNEL hChannel, DWORD *pdwInputSource, DWORD *pdwInputCount)
Obtains an audio input array based on the channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetVideoSignalStatus(HCHANNEL hChannel, MWCAP_VIDEO_SIGNAL_STATUS *pSignalStatus)
Gets the video signal status according to the channel handle.