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" 281 const char* pszDevicePath
519 DWORD* pdwInputSource,
572 DWORD* pdwInputSource,
1842 DWORD dwSamplesPerSec,
1843 WORD wBitsPerSample,
2020 BOOLEAN* pbAutoHAlign
2100 BYTE * puSamplingPhase
2140 BYTE puSamplingPhase
2180 BOOLEAN * pbAutoSamplingPhase
2220 BOOLEAN bAutoSamplingPhase
2788 DWORD* pColorFourcc,
2845 long * plParamValueMin,
2846 long * plParamValueMax,
2847 long * plParamValueDef
3069 BOOLEAN * pbInputSourceScanning
MWCAP_AUDIO_CAPS.
Definition: MWCaptureExtension.h:530
MW_RESULT LIBMWCAPTURE_API MWGetFirmwareStorageInfo(HCHANNEL hChannel, MWCAP_FIRMWARE_STORAGE *pFirmwareStorageInfo)
Gets firmware storage information.
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureSupportListResolution(HCHANNEL hChannel, MWCAP_VIDEO_RESOLUTION_LIST *pList)
Gets resolutions supported by devices when the return mode of MWGetVideoCaptureSupportResolutionMode ...
MW_RESULT LIBMWCAPTURE_API MWSetAVInputSourceLink(HCHANNEL hChannel, BOOLEAN bLink)
Sets whether the input video source is linked to its audio automatically.
MWCAP_FIRMWARE_STORAGE.
Definition: MWCaptureExtension.h:574
MW_RESULT LIBMWCAPTURE_API MWSetEDID(HCHANNEL hChannel, BYTE *pbyData, ULONG ulSize)
Sets EDID of specified channel.
MW_RESULT LIBMWCAPTURE_API MWSetVideoProcParam(HANDLE hVideo, MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType, long lParamValue)
Sets the specified video processing parameters.
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureProcessSettings(HCHANNEL hChannel, MWCAP_VIDEO_PROCESS_SETTINGS *paProcessSettings)
Gets the video process settings of specified channel.
void LIBMWCAPTURE_API MWCaptureExitInstance()
Quits instance.
MW_RESULT LIBMWCAPTURE_API MWGetAudioInputSourceArray(HCHANNEL hChannel, DWORD *pdwInputSource, DWORD *pdwInputCount)
Gets the input audio signal types supported by the channel.
enum _MWCAP_AUDIO_NODE MWCAP_AUDIO_NODE
MWCAP_AUDIO_NODE.
MW_RESULT LIBMWCAPTURE_API MWSetInputSourceScan(HCHANNEL hChannel, BOOLEAN bScan)
Sets the scan state of input source.
enum _MWCAP_AUDIO_CAPTURE_NODE MWCAP_AUDIO_CAPTURE_NODE
MWCAP_AUDIO_CAPTURE_NODE.
void LIBMWCAPTURE_API MWCloseChannel(HCHANNEL hChannel)
Closes capture channel.
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputSource(HCHANNEL hChannel, DWORD dwSource)
Sets the video input source of the specified channel.
MW_RESULT LIBMWCAPTURE_API MWGetCustomVideoResolutions(HCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_RESOLUTION_ARRAY *paCustomResolutions)
Gets the custom resolutions in vga timing of specified channel.
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.
HDMI_INFOFRAME_PACKET.
Definition: MWHDMIPackets.h:333
MWCAP_VIDEO_TIMING.
Definition: MWCaptureExtension.h:335
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureSupportResolutionMode(HCHANNEL hChannel, MWCAP_VIDEO_RESOLUTION_MODE *pMode, int *pCount)
Gets resolution mode supported by devices, including MWCAP_VIDEO_RESOLUTION_MODE_LIST when the resolu...
MWCAP_VIDEO_RESOLUTION_RANGE.
Definition: MWCaptureExtension.h:1530
HANDLE LIBMWCAPTURE_API MWCreateVideoCapture(HCHANNEL hChannel, int nWidth, int nHeight, int nFourcc, int nFrameDuration, VIDEO_CAPTURE_CALLBACK callback, void *pParam)
Uses the v4l function to create video capture.
MWCAP_VIDEO_SIGNAL_STATUS.
Definition: MWCaptureExtension.h:757
enum _MWCAP_VIDEO_QUANTIZATION_RANGE MWCAP_VIDEO_QUANTIZATION_RANGE
MWCAP_VIDEO_QUANTIZATION_RANGE.
MWCAP_AUDIO_SIGNAL_STATUS.
Definition: MWCaptureExtension.h:784
MW_RESULT LIBMWCAPTURE_API MWGetVideoProcParamRange(HANDLE hVideo, MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType, long *plParamValueMin, long *plParamValueMax, long *plParamValueDef)
Gets range of video processing parameters.
MW_RESULT LIBMWCAPTURE_API MWWriteFirmwareData(HCHANNEL hChannel, DWORD cbOffset, BYTE *pbyData, DWORD cbData)
Writes firmware data to specified channel.
MWCAP_CHANNEL_INFO.
Definition: MWCaptureExtension.h:415
enum _MWCAP_HDMI_INFOFRAME_ID MWCAP_HDMI_INFOFRAME_ID
MWCAP_HDMI_INFOFRAME_ID.
MW_RESULT LIBMWCAPTURE_API MWSetAudioInputSource(HCHANNEL hChannel, DWORD dwSource)
Sets current audio input source of specified channel.
MW_RESULT LIBMWCAPTURE_API MWSetPostReconfig(HCHANNEL hChannel, DWORD dwDelayMS)
Sends instructions for rereading configurations to delay the execution.
MW_RESULT LIBMWCAPTURE_API MWGetInputSpecificStatus(HCHANNEL hChannel, MWCAP_INPUT_SPECIFIC_STATUS *pInputStatus)
Gets the specific status of input signal.
MW_RESULT LIBMWCAPTURE_API MWGetFamilyInfoByIndex(int nIndex, LPVOID pFamilyInfo, DWORD dwSize)
Gets the product family based on the index.
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 MWSetVideoInputColorFormat(HCHANNEL hChannel, MWCAP_VIDEO_COLOR_FORMAT colorFormat)
Sets color format of input video.
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 v4l function.
MW_RESULT LIBMWCAPTURE_API MWGetHDMIInfoFrameValidFlag(HCHANNEL hChannel, DWORD *pdwValidFlag)
Gets valid flag of HDMI InfoFrame.
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputColorFormat(HCHANNEL hChannel, MWCAP_VIDEO_COLOR_FORMAT *pColorFormat)
Gets color format of input video.
MW_RESULT LIBMWCAPTURE_API MWSetAudioVolume(HCHANNEL hChannel, MWCAP_AUDIO_NODE audioNode, MWCAP_AUDIO_VOLUME *pVolume)
Sets the volume of audio capture device.
MW_RESULT LIBMWCAPTURE_API MWSetCustomVideoTiming(HCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING *pCustomTiming)
Sets the custom vga timing of specified channel.
MWCAP_INPUT_SPECIFIC_STATUS.
Definition: MWCaptureExtension.h:727
MW_RESULT LIBMWCAPTURE_API MWDestoryAudioCapture(HANDLE hAudio)
Stops audio capturing.
MW_RESULT LIBMWCAPTURE_API MWCaptureGetSDIANCPacket(HCHANNEL hChannel, MWCAP_SDI_ANC_PACKET *pPacket)
Captures specified SDI ANC data.
Definition: MWUSBCaptureExtension.h:255
MW_RESULT LIBMWCAPTURE_API MWGetCustomVideoTimings(HCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING_ARRAY *paCustomTimings)
Gets the custom vga timing of specified channel.
enum _MWCAP_VIDEO_COLOR_FORMAT MWCAP_VIDEO_COLOR_FORMAT
MWCAP_VIDEO_COLOR_FORMAT.
MW_RESULT LIBMWCAPTURE_API MWGetVersion(BYTE *pbyMaj, BYTE *pbyMin, WORD *pwBuild)
Gets the version number of SDK.
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputAspectRatio(HCHANNEL hChannel, int nAspectX, int nAspectY)
Sets aspect ratio of input video source.
MW_RESULT LIBMWCAPTURE_API MWGetAudioSignalStatus(HCHANNEL hChannel, MWCAP_AUDIO_SIGNAL_STATUS *pSignalStatus)
Gets the audio signal status of specified channel.
MWCAP_SDI_ANC_PACKET.
Definition: MWCaptureExtension.h:1720
MW_RESULT LIBMWCAPTURE_API MWGetAudioInputSource(HCHANNEL hChannel, DWORD *pdwSource)
Gets current input audio source of the specified channel.
Definition: MWUSBCaptureExtension.h:245
MWCAP_VIDEO_CUSTOM_TIMING.
Definition: MWCaptureExtension.h:1624
MW_RESULT LIBMWCAPTURE_API MWSetLEDMode(HCHANNEL hChannel, DWORD dwMode)
Sets LED mode.
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputAspectRatio(HCHANNEL hChannel, int *pnAspectX, int *pnAspectY)
Gets aspect ratio of input video source.
int LIBMWCAPTURE_API MWGetChannelCount()
Gets the total number of channels.
MW_RESULT LIBMWCAPTURE_API MWGetInputSourceScan(HCHANNEL hChannel, BOOLEAN *pbScan)
Gets the scan state of input source.
MW_RESULT LIBMWCAPTURE_API MWGetHDMIInfoFramePacket(HCHANNEL hChannel, MWCAP_HDMI_INFOFRAME_ID id, HDMI_INFOFRAME_PACKET *pPacket)
Gets HDMI InfoFrame data.
MW_RESULT LIBMWCAPTURE_API MWSetVideoTiming(HCHANNEL hChannel, MWCAP_VIDEO_TIMING *pTiming)
Sets the vga timing of specified channel.
MW_RESULT LIBMWCAPTURE_API MWSetVideoAutoHAlign(HCHANNEL hChannel, BOOLEAN bAutoHAlign)
Sets whether to adjust horizontal alignment of the vga timing automatically.
enum _MW_RESULT_ MW_RESULT
MW_RESULT.
MW_RESULT LIBMWCAPTURE_API MWGetAudioCaps(HCHANNEL hChannel, MWCAP_AUDIO_CAPS *pAudioCaps)
Gets audio capture capability of the channel.
MWCAP_VIDEO_RESOLUTION_LIST.
Definition: MWCaptureExtension.h:1545
enum _VIDEO_RESOLUTION_MODE MWCAP_VIDEO_RESOLUTION_MODE
MWCAP_VIDEO_RESOLUTION_MODE.
MW_RESULT LIBMWCAPTURE_API MWGetDevicePath(int nIndex, char *pDevicePath)
Gets the instance path of capture device based on the index.
MW_RESULT LIBMWCAPTURE_API MWGetVideoSignalStatus(HCHANNEL hChannel, MWCAP_VIDEO_SIGNAL_STATUS *pSignalStatus)
Gets video signal status of specified channel.
MW_RESULT LIBMWCAPTURE_API MWSetVideoSamplingPhase(HCHANNEL hChannel, BYTE puSamplingPhase)
Sets the phase of the specified input vga timing.
MWCAP_VIDEO_CONNECTION_FORMAT.
Definition: MWCaptureExtension.h:1446
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureSupportColorFormat(HCHANNEL hChannel, DWORD *pColorFourcc, int *nCount)
Uses v4l2 to get the device supported color spaces.
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputSource(HCHANNEL hChannel, DWORD *pdwSource)
Gets current video input source of the channel.
MW_RESULT LIBMWCAPTURE_API MWGetInputSourceScanState(HCHANNEL hChannel, BOOLEAN *pbInputSourceScanning)
Gets whether to scan the input signal source of specified channel automatically.
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 MWGetVideoCaps(HCHANNEL hChannel, MWCAP_VIDEO_CAPS *pVideoCaps)
Gets video capture capability of the specified channel.
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputQuantizationRange(HCHANNEL hChannel, MWCAP_VIDEO_QUANTIZATION_RANGE *pQuantRange)
Gets quantization range of input video.
MW_RESULT LIBMWCAPTURE_API MWGetVideoProcParam(HANDLE hVideo, MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType, long *plParamValue)
Gets current video processing settings.
MW_RESULT LIBMWCAPTURE_API MWGetAVInputSourceLink(HCHANNEL hChannel, BOOLEAN *pbLink)
Gets whether the input audio input source is related to video input source.
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 MWGetVideoCaptureConnectionFormat(HCHANNEL hChannel, MWCAP_VIDEO_CONNECTION_FORMAT *pConnFormat)
Gets the connection format of capture pin.
HCHANNEL LIBMWCAPTURE_API MWOpenChannelByPath(const char *pszDevicePath)
Opens capture channel by device instance path.
void(* AUDIO_CAPTURE_CALLBACK)(const BYTE *pbFrame, int cbFrame, uint64_t u64TimeStamp, void *pParam)
Callback function of audio capture.
Definition: MWCaptureExtension.h:1696
MW_RESULT LIBMWCAPTURE_API MWGetVideoAutoHAlign(HCHANNEL hChannel, BOOLEAN *pbAutoHAlign)
Gets whether to adjust horizontal alignment of the vga timing automatically.
MW_RESULT LIBMWCAPTURE_API MWGetChannelInfoByIndex(int nIndex, MWCAP_CHANNEL_INFO *pChannelInfo)
Gets the channel info by its index.
void(* VIDEO_CAPTURE_CALLBACK)(BYTE *pBuffer, long iBufferLen, void *pParam)
Callback function of video capture.
Definition: MWCaptureExtension.h:1688
MW_RESULT LIBMWCAPTURE_API MWGetEDID(HCHANNEL hChannel, BYTE *pbyData, ULONG *pulSize)
Gets the EDID of specified channel.
MW_RESULT LIBMWCAPTURE_API MWSetCustomVideoTimings(HCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_TIMING_ARRAY *paCustomTimings)
Sets the custom vga timing array of specified channel.
MW_RESULT LIBMWCAPTURE_API MWReadFirmwareData(HCHANNEL hChannel, DWORD cbOffset, BYTE *pbyData, DWORD cbToRead, DWORD *pcbRead)
Read firmware data from specified channel.
Definition: MWUSBCaptureExtension.h:173
MW_RESULT LIBMWCAPTURE_API MWGetVideoSamplingPhase(HCHANNEL hChannel, BYTE *puSamplingPhase)
Gets the phase of the specified input vga timing.
MW_RESULT LIBMWCAPTURE_API MWEraseFirmwareData(HCHANNEL hChannel, DWORD cbOffset, DWORD cbErase)
Erases firmware data.
MW_RESULT LIBMWCAPTURE_API MWGetAudioVolume(HCHANNEL hChannel, MWCAP_AUDIO_NODE audioNode, MWCAP_AUDIO_VOLUME *pVolume)
Gets the volume value of audio capture device.
enum _MWCAP_VIDEO_PROC_PARAM_TYPE MWCAP_VIDEO_PROC_PARAM_TYPE
MWCAP_VIDEO_PROC_PARAM_TYPE.
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputQuantizationRange(HCHANNEL hChannel, MWCAP_VIDEO_QUANTIZATION_RANGE quantRange)
Sets quantization range of input video.
MW_RESULT LIBMWCAPTURE_API MWSetCustomVideoResolutions(HCHANNEL hChannel, MWCAP_VIDEO_CUSTOM_RESOLUTION_ARRAY *paCustomResolutions)
Sets the custom resolutions in vga timing of specified channel.
MW_RESULT LIBMWCAPTURE_API MWGetPreferredVideoTimings(HCHANNEL hChannel, MWCAP_VIDEO_TIMING_ARRAY *paTimings)
Gets the preffered vga timing array of specified channel.
MW_RESULT LIBMWCAPTURE_API MWSetVideoCaptureProcessSettings(HCHANNEL hChannel, MWCAP_VIDEO_PROCESS_SETTINGS *paProcessSettings)
Sets the video process parameters of specified channel.
BOOL LIBMWCAPTURE_API MWCaptureInitInstance()
Initializes the MWCapture interfaces.
MW_RESULT LIBMWCAPTURE_API MWRefreshDevice()
Refreshes device list.
MW_RESULT LIBMWCAPTURE_API MWSetVideoSamplingPhaseAutoAdjust(HCHANNEL hChannel, BOOLEAN bAutoSamplingPhase)
Sets whether to automatically adjust the phase of vga timing sampling.
MW_RESULT LIBMWCAPTURE_API MWDestoryVideoCapture(HANDLE hVideo)
Stops video capturing.
MW_RESULT LIBMWCAPTURE_API MWGetVideoSamplingPhaseAutoAdjust(HCHANNEL hChannel, BOOLEAN *pbAutoSamplingPhase)
Gets whether to adjust the phase of the specified input vga timing automatically. ...
MWCAP_VIDEO_PROCESS_SETTINGS.
Definition: MWCaptureExtension.h:1472
Definition: MWUSBCaptureExtension.h:250
MW_RESULT LIBMWCAPTURE_API MWGetChannelInfo(HCHANNEL hChannel, MWCAP_CHANNEL_INFO *pChannelInfo)
Gets channel information.
MWCAP_VIDEO_CAPS.
Definition: MWCaptureExtension.h:485