31 #ifdef LIBMWCAPTURE_EXPORTS 32 #define LIBMWCAPTURE_API __declspec(dllexport) 33 #elif LIBMWCAPTURE_DLL 34 #define LIBMWCAPTURE_API __declspec(dllimport) 36 #define LIBMWCAPTURE_API 42 #include "MWCaptureExtension.h" 44 #include "MWUSBCaptureExtension.h" 113 MWCAP_CHANNEL_INFO * pChannelInfo
153 const char* pszDevicePath
176 MWCAP_CHANNEL_INFO * pChannelInfo
204 MWCAP_VIDEO_CAPS* pVideoCaps
217 MWCAP_AUDIO_CAPS* pAudioCaps
231 DWORD* pdwInputSource,
246 DWORD* pdwInputSource,
397 MWCAP_INPUT_SPECIFIC_STATUS * pInputStatus
410 MWCAP_VIDEO_SIGNAL_STATUS * pSignalStatus
423 MWCAP_AUDIO_SIGNAL_STATUS * pSignalStatus
451 MWCAP_HDMI_INFOFRAME_ID
id,
452 HDMI_INFOFRAME_PACKET* pPacket
496 MWCAP_VIDEO_COLOR_FORMAT colorFormat
509 MWCAP_VIDEO_COLOR_FORMAT * pColorFormat
522 MWCAP_VIDEO_QUANTIZATION_RANGE quantRange
535 MWCAP_VIDEO_QUANTIZATION_RANGE* pQuantRange
563 MWCAP_FIRMWARE_STORAGE * pFirmwareStorageInfo
637 VIDEO_CAPTURE_CALLBACK callback,
663 MWCAP_AUDIO_CAPTURE_NODE captureNode,
664 DWORD dwSamplesPerSec,
667 AUDIO_CAPTURE_CALLBACK callback,
693 MWCAP_AUDIO_NODE audioNode,
694 MWCAP_AUDIO_VOLUME* pVolume
708 MWCAP_AUDIO_NODE audioNode,
709 MWCAP_AUDIO_VOLUME* pVolume
747 MWCAP_SDI_ANC_PACKET* pPacket
MW_RESULT LIBMWCAPTURE_API MWGetChannelInfo(HCHANNEL hChannel, MWCAP_CHANNEL_INFO *pChannelInfo)
Gets the channel information based on the channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetAVInputSourceLink(HCHANNEL hChannel, BOOLEAN *pbLink)
Sets whether the audio input source Linked with video according to the channel handle.
int LIBMWCAPTURE_API MWGetChannelCount()
Gets the number of devices.
void LIBMWCAPTURE_API MWCaptureExitInstance()
Quits MWCapture.
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...
void LIBMWCAPTURE_API MWCloseChannel(HCHANNEL hChannel)
Closes the device channel.
MW_RESULT LIBMWCAPTURE_API MWGetInputSourceScan(HCHANNEL hChannel, BOOLEAN *pbScan)
Gets whether the input source is automatically scanned 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.
MW_RESULT LIBMWCAPTURE_API MWGetHDMIInfoFrameValidFlag(HCHANNEL hChannel, DWORD *pdwValidFlag)
Gets the HDMI infoframe valid flag according to the channel handle.
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 MWDestoryAudioCapture(HANDLE hAudio)
End of audio capture.
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputSource(HCHANNEL hChannel, DWORD dwSource)
Sets the video input source according to the channel handle.
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 DShow function
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputAspectRatio(HCHANNEL hChannel, int nAspectX, int nAspectY)
Sets 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.
HANDLE LIBMWCAPTURE_API MWCreateVideoCapture(HCHANNEL hChannel, int nWidth, int nHeight, int nFourcc, int nFrameDuration, VIDEO_CAPTURE_CALLBACK callback, void *pParam)
Uses the DShow function to create video capture.
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaps(HCHANNEL hChannel, MWCAP_VIDEO_CAPS *pVideoCaps)
Obtains channel video capability information based on the channel handle.
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 MWGetEDID(HCHANNEL hChannel, BYTE *pbyData, ULONG *pulSize)
Gets EDID according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetChannelInfoByIndex(int nIndex, MWCAP_CHANNEL_INFO *pChannelInfo)
Gets the channel information based on the enum.
MW_RESULT LIBMWCAPTURE_API MWGetFirmwareStorageInfo(HCHANNEL hChannel, MWCAP_FIRMWARE_STORAGE *pFirmwareStorageInfo)
Gets firmware storage information according to channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputSource(HCHANNEL hChannel, DWORD *pdwSource)
Gets the video input source according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWRefreshDevice()
Refreshes device list.
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 MWWriteFirmwareData(HCHANNEL hChannel, DWORD cbOffset, BYTE *pbyData, DWORD cbData)
Writes the firmware data according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetFamilyInfoByIndex(int nIndex, LPVOID pFamilyInfo, DWORD dwSize)
Gets the family information of the channel based on the enumeration value.
MW_RESULT LIBMWCAPTURE_API MWGetVideoSignalStatus(HCHANNEL hChannel, MWCAP_VIDEO_SIGNAL_STATUS *pSignalStatus)
Gets the video signal status according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetDevicePath(int nIndex, char *pDevicePath)
Gets the path of the device.
MW_RESULT LIBMWCAPTURE_API MWSetInputSourceScan(HCHANNEL hChannel, BOOLEAN bScan)
Gets whether automatically scans the input signals according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWSetEDID(HCHANNEL hChannel, BYTE *pbyData, ULONG ulSize)
Sets edid according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWCaptureGetSDIANCPacket(HCHANNEL hChannel, MWCAP_SDI_ANC_PACKET *pPacket)
Get ANC Packet.
MW_RESULT LIBMWCAPTURE_API MWDestoryVideoCapture(HANDLE hVideo)
End of video capture.
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 MWGetAudioVolume(HCHANNEL hChannel, MWCAP_AUDIO_NODE audioNode, MWCAP_AUDIO_VOLUME *pVolume)
Obtains audio attribute value of the audio device.
MW_RESULT LIBMWCAPTURE_API MWSetLEDMode(HCHANNEL hChannel, DWORD dwMode)
Sets the led mode according to the 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 MWGetFamilyInfo(HCHANNEL hChannel, LPVOID pFamilyInfo, DWORD dwSize)
Gets the channel family information based on the channel handle.
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputQuantizationRange(HCHANNEL hChannel, MWCAP_VIDEO_QUANTIZATION_RANGE quantRange)
Sets the video input quantization range according to the channel handle.
BOOL LIBMWCAPTURE_API MWCaptureInitInstance()
Initializes MWCapture.
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 MWSetAudioInputSource(HCHANNEL hChannel, DWORD dwSource)
Sets the audio input source according to the channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputSourceArray(HCHANNEL hChannel, DWORD *pdwInputSource, DWORD *pdwInputCount)
Obtains channel video capability information based on channel handle.
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 MWSetVideoInputColorFormat(HCHANNEL hChannel, MWCAP_VIDEO_COLOR_FORMAT colorFormat)
Sets the video input color format 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.
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 MWGetInputSpecificStatus(HCHANNEL hChannel, MWCAP_INPUT_SPECIFIC_STATUS *pInputStatus)
Gets the input specific status value based on the channel handle.
HCHANNEL LIBMWCAPTURE_API MWOpenChannelByPath(const char *pszDevicePath)
Opens the device channel according to the path.
MW_RESULT LIBMWCAPTURE_API MWGetAudioInputSource(HCHANNEL hChannel, DWORD *pdwSource)
Gets the audio input source from the channel handle.
MW_RESULT LIBMWCAPTURE_API MWGetVersion(BYTE *pbyMaj, BYTE *pbyMin, WORD *pwBuild)
get the version of SDK