31#ifdef LIBMWCAPTURE_EXPORTS
32#define LIBMWCAPTURE_API __declspec(dllexport)
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"
289 const char* pszDevicePath
530 DWORD* pdwInputSource,
584 DWORD* pdwInputSource,
1621 char *pszVideoDevicePath
1667 char *pszVideoDevicePath,
1771 DWORD dwSamplesPerSec,
1772 WORD wBitsPerSample,
2045 MWCAP_VIDEO_RESOLUTION_MODE *pMode,
2182 DWORD* pColorFourcc,
void(* VIDEO_CAPTURE_CALLBACK)(BYTE *pBuffer, long iBufferLen, long stride, void *pParam)
Callback function of video capture.
Definition: MWCaptureExtension.h:1610
void(* AUDIO_CAPTURE_CALLBACK)(const BYTE *pbFrame, int cbFrame, uint64_t u64TimeStamp, void *pParam)
Callback function of audio capture.
Definition: MWCaptureExtension.h:1618
MW_RESULT LIBMWCAPTURE_API MWGetHDMIInfoFramePacket(HCHANNEL hChannel, MWCAP_HDMI_INFOFRAME_ID id, HDMI_INFOFRAME_PACKET *pPacket)
Gets HDMI InfoFrame data.
MW_RESULT LIBMWCAPTURE_API MWGetAudioInputSourceArray(HCHANNEL hChannel, DWORD *pdwInputSource, DWORD *pdwInputCount)
Gets the input audio signal types supported by the channel.
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputQuantizationRange(HCHANNEL hChannel, MWCAP_VIDEO_QUANTIZATION_RANGE *pQuantRange)
Gets quantization range of input video.
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputColorFormat(HCHANNEL hChannel, MWCAP_VIDEO_COLOR_FORMAT *pColorFormat)
Gets color format of input video.
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputSource(HCHANNEL hChannel, DWORD dwSource)
Sets the video input source of the specified channel.
MW_RESULT LIBMWCAPTURE_API MWGetAVInputSourceLink(HCHANNEL hChannel, BOOLEAN *pbLink)
Gets the states of input audio/video sources.
MW_RESULT LIBMWCAPTURE_API MWGetChannelInfoByIndex(int nIndex, MWCAP_CHANNEL_INFO *pChannelInfo)
Gets the channel info by its index.
MW_RESULT LIBMWCAPTURE_API MWDestoryAudioCapture(HANDLE hAudio)
Stops to capture audio.
HCHANNEL LIBMWCAPTURE_API MWOpenChannelByPath(const char *pszDevicePath)
Opens capture channel by device instance path.
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputAspectRatio(HCHANNEL hChannel, int *pnAspectX, int *pnAspectY)
Gets aspect ratio of input video.
HANDLE LIBMWCAPTURE_API MWCreateVideoCapture(char *pszVideoDevicePath, int nWidth, int nHeight, int nFourcc, int nFrameDuration, VIDEO_CAPTURE_CALLBACK callback, void *pParam)
Captures videos using dshow. Supports all capture devices.
MW_RESULT LIBMWCAPTURE_API MWSetAudioVolume(HCHANNEL hChannel, MWCAP_AUDIO_NODE audioNode, MWCAP_AUDIO_VOLUME *pVolume)
Sets the volume of audio capture device.
HANDLE LIBMWCAPTURE_API MWCreateAudioCapture(HCHANNEL hChannel, MWCAP_AUDIO_CAPTURE_NODE captureNode, DWORD dwSamplesPerSec, WORD wBitsPerSample, WORD wChannels, AUDIO_CAPTURE_CALLBACK callback, void *pParam)
Captures audio data for all capture devices.
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputSource(HCHANNEL hChannel, DWORD *pdwSource)
Gets current video input source of the channel.
void LIBMWCAPTURE_API MWCaptureExitInstance()
Quits instance.
MW_RESULT LIBMWCAPTURE_API MWGetInputSourceScan(HCHANNEL hChannel, BOOLEAN *pbScan)
Gets the scan state of input source.
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureSupportColorFormat(HCHANNEL hChannel, DWORD *pColorFourcc, int *nCount)
Uses DShow to get the device supported color spaces.
MW_RESULT LIBMWCAPTURE_API MWGetInputSpecificStatus(HCHANNEL hChannel, MWCAP_INPUT_SPECIFIC_STATUS *pInputStatus)
Gets the specific status of input signal.
MW_RESULT MWGetVideoDevicePathByChannel(HCHANNEL hChannel, char *pszVideoDevicePath)
**
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputColorFormat(HCHANNEL hChannel, MWCAP_VIDEO_COLOR_FORMAT colorFormat)
Sets color format of input video.
MW_RESULT LIBMWCAPTURE_API MWCaptureSetSDIANCType(HCHANNEL hChannel, BYTE byIndex, BOOLEAN bHANC, BOOLEAN bVANC, BYTE byDID, BYTE bySDID)
Sets the ANC data types to be captured for SDI signal.
MW_RESULT LIBMWCAPTURE_API MWGetAudioVolume(HCHANNEL hChannel, MWCAP_AUDIO_NODE audioNode, MWCAP_AUDIO_VOLUME *pVolume)
Gets the volume value of audio capture device.
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputAspectRatio(HCHANNEL hChannel, int nAspectX, int nAspectY)
Sets aspect ratio of input video.
MW_RESULT LIBMWCAPTURE_API MWSetAVInputSourceLink(HCHANNEL hChannel, BOOLEAN bLink)
Sets whether the input video source is linked to its audio automatically.
MW_RESULT LIBMWCAPTURE_API MWGetAudioSignalStatus(HCHANNEL hChannel, MWCAP_AUDIO_SIGNAL_STATUS *pSignalStatus)
Gets the audio signal status of specified channel.
int LIBMWCAPTURE_API MWGetChannelCount()
Gets the total number of channels.
MW_RESULT LIBMWCAPTURE_API MWDestoryVideoCapture(HANDLE hVideo)
Stops to capture video.
MW_RESULT LIBMWCAPTURE_API MWSetEDID(HCHANNEL hChannel, BYTE *pbyData, ULONG ulSize)
Sets EDID of specified channel.
MW_RESULT LIBMWCAPTURE_API MWGetVideoSignalStatus(HCHANNEL hChannel, MWCAP_VIDEO_SIGNAL_STATUS *pSignalStatus)
Gets video signal status of specified channel.
MW_RESULT LIBMWCAPTURE_API MWSetAudioInputSource(HCHANNEL hChannel, DWORD dwSource)
Sets current audio input source of specified channel.
MW_RESULT LIBMWCAPTURE_API MWGetAudioInputSource(HCHANNEL hChannel, DWORD *pdwSource)
Gets current input audio of the specified channel.
MW_RESULT LIBMWCAPTURE_API MWGetEDID(HCHANNEL hChannel, BYTE *pbyData, ULONG *pulSize)
Gets the EDID of specified channel.
MW_RESULT LIBMWCAPTURE_API MWGetVersion(BYTE *pbyMaj, BYTE *pbyMin, WORD *pwBuild)
Gets the version number of SDK.
MW_RESULT LIBMWCAPTURE_API MWSetInputSourceScan(HCHANNEL hChannel, BOOLEAN bScan)
Sets the states of scanned input video source.
MW_RESULT LIBMWCAPTURE_API MWGetFamilyInfoByIndex(int nIndex, LPVOID pFamilyInfo, DWORD dwSize)
Gets the product family based on the index.
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaps(HCHANNEL hChannel, MWCAP_VIDEO_CAPS *pVideoCaps)
Gets video capture capability of the specified channel.
MW_RESULT LIBMWCAPTURE_API MWRefreshDevice()
Refreshes device list.
MW_RESULT LIBMWCAPTURE_API MWGetChannelInfo(HCHANNEL hChannel, MWCAP_CHANNEL_INFO *pChannelInfo)
Gets channel information.
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureSupportResolutionMode(HCHANNEL hChannel, MWCAP_VIDEO_RESOLUTION_MODE *pMode, int *pCount)
Gets resolution modes supported by devices, including MWCAP_VIDEO_RESOLUTION_MODE_LIST when the resol...
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureSupportListResolution(HCHANNEL hChannel, MWCAP_VIDEO_RESOLUTION_LIST *pList)
Gets resolutions supported by devices when the return mode of MWGetVideoCaptureSupportResolutionMode ...
void LIBMWCAPTURE_API MWCloseChannel(HCHANNEL hChannel)
Closes capture channel.
MW_RESULT LIBMWCAPTURE_API MWGetDevicePath(int nIndex, char *pDevicePath)
Gets the instance path of capture device based on the index.
MW_RESULT LIBMWCAPTURE_API MWCaptureGetSDIANCPacket(HCHANNEL hChannel, MWCAP_SDI_ANC_PACKET *pPacket)
Captures specified SDI ANC types.
BOOL LIBMWCAPTURE_API MWCaptureInitInstance()
Initializes the MWCapture interfaces.
MW_RESULT LIBMWCAPTURE_API MWGetHDMIInfoFrameValidFlag(HCHANNEL hChannel, DWORD *pdwValidFlag)
Gets valid flag of HDMI InfoFrame.
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputSourceArray(HCHANNEL hChannel, DWORD *pdwInputSource, DWORD *pdwInputCount)
Gets the input video signal types supported by the channel.
MW_RESULT LIBMWCAPTURE_API MWGetAudioCaps(HCHANNEL hChannel, MWCAP_AUDIO_CAPS *pAudioCaps)
Gets audio capture capability of the channel.
MW_RESULT LIBMWCAPTURE_API MWGetFamilyInfo(HCHANNEL hChannel, LPVOID pFamilyInfo, DWORD dwSize)
Gets attributions of product family which the capture device belongs to.
MW_RESULT LIBMWCAPTURE_API MWSetLEDMode(HCHANNEL hChannel, DWORD dwMode)
Sets LED mode.
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureSupportRangeResolution(HCHANNEL hChannel, MWCAP_VIDEO_RESOLUTION_RANGE *pRange)
Gets resolution range supported by the device, when the return mode of MWGetVideoCaptureSupportResolu...
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputQuantizationRange(HCHANNEL hChannel, MWCAP_VIDEO_QUANTIZATION_RANGE quantRange)
Sets quantization range of input video.
enum _MWCAP_HDMI_INFOFRAME_ID MWCAP_HDMI_INFOFRAME_ID
MWCAP_HDMI_INFOFRAME_ID.
enum _MWCAP_AUDIO_NODE MWCAP_AUDIO_NODE
MWCAP_AUDIO_NODE.
enum _MWCAP_AUDIO_CAPTURE_NODE MWCAP_AUDIO_CAPTURE_NODE
MWCAP_AUDIO_CAPTURE_NODE.
enum _MWCAP_VIDEO_QUANTIZATION_RANGE MWCAP_VIDEO_QUANTIZATION_RANGE
MWCAP_VIDEO_QUANTIZATION_RANGE.
enum _MWCAP_VIDEO_COLOR_FORMAT MWCAP_VIDEO_COLOR_FORMAT
MWCAP_VIDEO_COLOR_FORMAT.
HDMI_INFOFRAME_PACKET.
Definition: MWHDMIPackets.h:361
MWCAP_AUDIO_CAPS.
Definition: MWCaptureExtension.h:515
MWCAP_AUDIO_SIGNAL_STATUS.
Definition: MWCaptureExtension.h:744
Definition: MWUSBCaptureExtension.h:173
MWCAP_CHANNEL_INFO.
Definition: MWCaptureExtension.h:410
MWCAP_INPUT_SPECIFIC_STATUS.
Definition: MWCaptureExtension.h:687
MWCAP_SDI_ANC_PACKET.
Definition: MWCaptureExtension.h:1642
MWCAP_VIDEO_CAPS.
Definition: MWCaptureExtension.h:470
Definition: MWCaptureExtension.h:1476
Definition: MWCaptureExtension.h:1469
MWCAP_VIDEO_SIGNAL_STATUS.
Definition: MWCaptureExtension.h:717