LibMWCapture  3.3.1
LibMWCapture Documentation
Macros | Functions
MWCapture.h File Reference
#include <stdint.h>
#include "MWLinux.h"
#include "MWProCapture.h"
#include "MWCaptureExtension.h"
#include "MWUSBCapture.h"
#include "MWUSBCaptureExtension.h"

Go to the source code of this file.

Macros

#define LIBMWCAPTURE_API
 

Functions

MW_RESULT LIBMWCAPTURE_API MWGetVersion (BYTE *pbyMaj, BYTE *pbyMin, WORD *pwBuild)
 get the version of SDK More...
 
BOOL LIBMWCAPTURE_API MWCaptureInitInstance ()
 Initializes MWCapture. More...
 
void LIBMWCAPTURE_API MWCaptureExitInstance ()
 Quits MWCapture. More...
 
MW_RESULT LIBMWCAPTURE_API MWRefreshDevice ()
 Refreshes device list. More...
 
int LIBMWCAPTURE_API MWGetChannelCount ()
 Gets the number of devices. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetChannelInfoByIndex (int nIndex, MWCAP_CHANNEL_INFO *pChannelInfo)
 Gets the channel information based on the enum. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetFamilyInfoByIndex (int nIndex, LPVOID pFamilyInfo, DWORD dwSize)
 Gets the family information of the channel based on the enumeration value. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetDevicePath (int nIndex, char *pDevicePath)
 Gets the path of the device. More...
 
HCHANNEL LIBMWCAPTURE_API MWOpenChannelByPath (const char *pszDevicePath)
 Opens the device channel according to the path. More...
 
void LIBMWCAPTURE_API MWCloseChannel (HCHANNEL hChannel)
 Closes the device channel. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetChannelInfo (HCHANNEL hChannel, MWCAP_CHANNEL_INFO *pChannelInfo)
 Gets the channel information based on the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetFamilyInfo (HCHANNEL hChannel, LPVOID pFamilyInfo, DWORD dwSize)
 Gets the channel family information based on the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaps (HCHANNEL hChannel, MWCAP_VIDEO_CAPS *pVideoCaps)
 Obtains channel video capability information based on the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetAudioCaps (HCHANNEL hChannel, MWCAP_AUDIO_CAPS *pAudioCaps)
 Obtains channel audio capability information based on the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputSourceArray (HCHANNEL hChannel, DWORD *pdwInputSource, DWORD *pdwInputCount)
 Obtains channel video capability information based on channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetAudioInputSourceArray (HCHANNEL hChannel, DWORD *pdwInputSource, DWORD *pdwInputCount)
 Obtains an audio input array based on the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetInputSourceScan (HCHANNEL hChannel, BOOLEAN *pbScan)
 Gets whether the input source is automatically scanned according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetInputSourceScan (HCHANNEL hChannel, BOOLEAN bScan)
 Gets whether automatically scans the input signals according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetAVInputSourceLink (HCHANNEL hChannel, BOOLEAN *pbLink)
 Sets whether the audio input source Linked with video according to the channel handle. More...
 
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. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputSource (HCHANNEL hChannel, DWORD *pdwSource)
 Gets the video input source according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputSource (HCHANNEL hChannel, DWORD dwSource)
 Sets the video input source according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetAudioInputSource (HCHANNEL hChannel, DWORD *pdwSource)
 Gets the audio input source from the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetAudioInputSource (HCHANNEL hChannel, DWORD dwSource)
 Sets the audio input source according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetEDID (HCHANNEL hChannel, BYTE *pbyData, ULONG *pulSize)
 Gets EDID according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetEDID (HCHANNEL hChannel, BYTE *pbyData, ULONG ulSize)
 Sets edid according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetInputSpecificStatus (HCHANNEL hChannel, MWCAP_INPUT_SPECIFIC_STATUS *pInputStatus)
 Gets the input specific status value based on the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoSignalStatus (HCHANNEL hChannel, MWCAP_VIDEO_SIGNAL_STATUS *pSignalStatus)
 Gets the video signal status according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetAudioSignalStatus (HCHANNEL hChannel, MWCAP_AUDIO_SIGNAL_STATUS *pSignalStatus)
 Gets the audio signal status according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetHDMIInfoFrameValidFlag (HCHANNEL hChannel, DWORD *pdwValidFlag)
 Gets the HDMI infoframe valid flag according to the channel handle. More...
 
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. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputAspectRatio (HCHANNEL hChannel, int nAspectX, int nAspectY)
 Sets the video input aspect ratio according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputAspectRatio (HCHANNEL hChannel, int *pnAspectX, int *pnAspectY)
 Gets the video input aspect ratio according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputColorFormat (HCHANNEL hChannel, MWCAP_VIDEO_COLOR_FORMAT colorFormat)
 Sets the video input color format according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputColorFormat (HCHANNEL hChannel, MWCAP_VIDEO_COLOR_FORMAT *pColorFormat)
 Gets the video input color format according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputQuantizationRange (HCHANNEL hChannel, MWCAP_VIDEO_QUANTIZATION_RANGE quantRange)
 Sets the video input quantization range according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputQuantizationRange (HCHANNEL hChannel, MWCAP_VIDEO_QUANTIZATION_RANGE *pQuantRange)
 Gets the video input quantization range according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetLEDMode (HCHANNEL hChannel, DWORD dwMode)
 Sets the led mode according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetFirmwareStorageInfo (HCHANNEL hChannel, MWCAP_FIRMWARE_STORAGE *pFirmwareStorageInfo)
 Gets firmware storage information according to channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWEraseFirmwareData (HCHANNEL hChannel, DWORD cbOffset, DWORD cbErase)
 Erases the firmware data according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWReadFirmwareData (HCHANNEL hChannel, DWORD cbOffset, BYTE *pbyData, DWORD cbToRead, DWORD *pcbRead)
 Obtains the firmware data according to the channel handle. More...
 
MW_RESULT LIBMWCAPTURE_API MWWriteFirmwareData (HCHANNEL hChannel, DWORD cbOffset, BYTE *pbyData, DWORD cbData)
 Writes the firmware data according to the channel handle. More...
 
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. More...
 
MW_RESULT LIBMWCAPTURE_API MWDestoryVideoCapture (HANDLE hVideo)
 End of video capture. More...
 
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
More...
 
MW_RESULT LIBMWCAPTURE_API MWDestoryAudioCapture (HANDLE hAudio)
 End of audio capture. More...
 
MW_RESULT LIBMWCAPTURE_API MWGetAudioVolume (HCHANNEL hChannel, MWCAP_AUDIO_NODE audioNode, MWCAP_AUDIO_VOLUME *pVolume)
 Obtains audio attribute value of the audio device. More...
 
MW_RESULT LIBMWCAPTURE_API MWSetAudioVolume (HCHANNEL hChannel, MWCAP_AUDIO_NODE audioNode, MWCAP_AUDIO_VOLUME *pVolume)
 Sets the audio attribute value of audio device. More...
 
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. More...
 
MW_RESULT LIBMWCAPTURE_API MWCaptureGetSDIANCPacket (HCHANNEL hChannel, MWCAP_SDI_ANC_PACKET *pPacket)
 Get ANC Packet. More...
 

Macro Definition Documentation

◆ LIBMWCAPTURE_API

#define LIBMWCAPTURE_API

Definition at line 36 of file MWCapture.h.

Function Documentation

◆ MWCaptureExitInstance()

void LIBMWCAPTURE_API MWCaptureExitInstance ( )

Quits MWCapture.

◆ MWCaptureGetSDIANCPacket()

MW_RESULT LIBMWCAPTURE_API MWCaptureGetSDIANCPacket ( HCHANNEL  hChannel,
MWCAP_SDI_ANC_PACKET *  pPacket 
)

Get ANC Packet.

Parameters
[in]hChannelChannel handle opened
[in]pPacketANC packet MWCAP_SDI_ANC_PACKET.byDID: ANC DID, byDID == 0 indicates that no valid ANC packet has been read MWCAP_SDI_ANC_PACKET.bySDID: ANC SDID MWCAP_SDI_ANC_PACKET.byDC: ANC data length MWCAP_SDI_ANC_PACKET.abyUDW[255]: ANC data, refer to SMPTE standard for specific content
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWCaptureInitInstance()

BOOL LIBMWCAPTURE_API MWCaptureInitInstance ( )

Initializes MWCapture.

◆ MWCaptureSetSDIANCType()

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.

Parameters
[in]hChannelChannel handle opened
[in]byIndexANC index, the range is 0-3, The capture card can capture up to 4 different types of ANC packages
[in]bHANCCapture in HANC space or not
[in]bVANCCapture in VANC space or not
[in]byDID/bySDIDANC ID, refer to SMPTE standard for specific content
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWCloseChannel()

void LIBMWCAPTURE_API MWCloseChannel ( HCHANNEL  hChannel)

Closes the device channel.

Parameters
[in]hChannelChannel handles

◆ MWCreateAudioCapture()

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

Parameters
[in]hChannelChannel handle opened
[in]callbackCallback function of audio capture
[in]pParamThe parameters passed to the callback function
Returns
Returns a HANDLE type handle if succeeded, otherwise returns NULL

◆ MWCreateVideoCapture()

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.

Parameters
[in]hChannelChannel handle opened
[in]nWidthWidth of video capture
[in]nHeightHeight of video capture
[in]nFourccColor format
[in]nFrameDurationFrame rate of video capture
[in]callbackCallback video capture
[in]pParamThe parameters passed to the callback function
Returns
Returns a HANDLE type handle if succeeded, otherwise returns NULL

◆ MWDestoryAudioCapture()

MW_RESULT LIBMWCAPTURE_API MWDestoryAudioCapture ( HANDLE  hAudio)

End of audio capture.

Parameters
[in]hAudioan audio capture handle created
Returns
Always return MW_SUCCEED

◆ MWDestoryVideoCapture()

MW_RESULT LIBMWCAPTURE_API MWDestoryVideoCapture ( HANDLE  hVideo)

End of video capture.

Parameters
[in]hVideoVideo capture handle created
Returns
Always return MW_SUCCEED

◆ MWEraseFirmwareData()

MW_RESULT LIBMWCAPTURE_API MWEraseFirmwareData ( HCHANNEL  hChannel,
DWORD  cbOffset,
DWORD  cbErase 
)

Erases the firmware data according to the channel handle.

Parameters
[in]hChannelChannel handle
[in]cbOffsetOffset
[in]cbErasethe data size needed to erase
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetAudioCaps()

MW_RESULT LIBMWCAPTURE_API MWGetAudioCaps ( HCHANNEL  hChannel,
MWCAP_AUDIO_CAPS *  pAudioCaps 
)

Obtains channel audio capability information based on the channel handle.

Parameters
[in]hChannelChannel handle
[out]pAudioCapsaudio caps structure
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetAudioInputSource()

MW_RESULT LIBMWCAPTURE_API MWGetAudioInputSource ( HCHANNEL  hChannel,
DWORD *  pdwSource 
)

Gets the audio input source from the channel handle.

Parameters
[in]hChannelChannel handle
[out]pdwSourceStores the obtained audio input source
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetAudioInputSourceArray()

MW_RESULT LIBMWCAPTURE_API MWGetAudioInputSourceArray ( HCHANNEL  hChannel,
DWORD *  pdwInputSource,
DWORD *  pdwInputCount 
)

Obtains an audio input array based on the channel handle.

Parameters
[in]hChannelChannel handle
[out]pdwInputSourceStores an array of audio input source interfaces
[out]pdwInputCountThe number of audio input source interfaces
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetAudioSignalStatus()

MW_RESULT LIBMWCAPTURE_API MWGetAudioSignalStatus ( HCHANNEL  hChannel,
MWCAP_AUDIO_SIGNAL_STATUS *  pSignalStatus 
)

Gets the audio signal status according to the channel handle.

Parameters
[in]hChannelChannel handle
[out]pSignalStatusAudio signal state structure
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetAudioVolume()

MW_RESULT LIBMWCAPTURE_API MWGetAudioVolume ( HCHANNEL  hChannel,
MWCAP_AUDIO_NODE  audioNode,
MWCAP_AUDIO_VOLUME *  pVolume 
)

Obtains audio attribute value of the audio device.

Parameters
[in]hChannelChannel handle opened
[in]audioNodeAudio device type
[out]pVolumeAudio attribute value
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetAVInputSourceLink()

MW_RESULT LIBMWCAPTURE_API MWGetAVInputSourceLink ( HCHANNEL  hChannel,
BOOLEAN *  pbLink 
)

Sets whether the audio input source Linked with video according to the channel handle.

Parameters
[in]hChannelChannel handle
[out]pbLinkGets whether the audio input source follows the video input source
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetChannelCount()

int LIBMWCAPTURE_API MWGetChannelCount ( )

Gets the number of devices.

Returns
Returns the number of channels obtained

◆ MWGetChannelInfo()

MW_RESULT LIBMWCAPTURE_API MWGetChannelInfo ( HCHANNEL  hChannel,
MWCAP_CHANNEL_INFO *  pChannelInfo 
)

Gets the channel information based on the channel handle.

Parameters
[out]hChannelChannel handle
[out]pChannelInfoChannel information structure
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetChannelInfoByIndex()

MW_RESULT LIBMWCAPTURE_API MWGetChannelInfoByIndex ( int  nIndex,
MWCAP_CHANNEL_INFO *  pChannelInfo 
)

Gets the channel information based on the enum.

Parameters
[in]nIndexChannel index
[out]pChannelInfoChannel information structure
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetDevicePath()

MW_RESULT LIBMWCAPTURE_API MWGetDevicePath ( int  nIndex,
char *  pDevicePath 
)

Gets the path of the device.

Parameters
[in]nIndexChannel index
[out]pDevicePathpath of the device
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetEDID()

MW_RESULT LIBMWCAPTURE_API MWGetEDID ( HCHANNEL  hChannel,
BYTE *  pbyData,
ULONG *  pulSize 
)

Gets EDID according to the channel handle.

Parameters
[in]hChannelChannel handle
[out]pbyDataStores the obtained EDID value
[out]pulSizeThe length of EDID
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetFamilyInfo()

MW_RESULT LIBMWCAPTURE_API MWGetFamilyInfo ( HCHANNEL  hChannel,
LPVOID  pFamilyInfo,
DWORD  dwSize 
)

Gets the channel family information based on the channel handle.

Parameters
[in]hChannelChannel handle
[out]pFamilyInfoFamilyinfo structure
[in]dwSizeFamilyinfo structure size
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetFamilyInfoByIndex()

MW_RESULT LIBMWCAPTURE_API MWGetFamilyInfoByIndex ( int  nIndex,
LPVOID  pFamilyInfo,
DWORD  dwSize 
)

Gets the family information of the channel based on the enumeration value.

Parameters
[in]nIndexChannel index
[out]pFamilyInfofamilyinfo structure
[in]dwSizesize of familyinfo structure
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetFirmwareStorageInfo()

MW_RESULT LIBMWCAPTURE_API MWGetFirmwareStorageInfo ( HCHANNEL  hChannel,
MWCAP_FIRMWARE_STORAGE *  pFirmwareStorageInfo 
)

Gets firmware storage information according to channel handle.

Parameters
[in]hChannelChannel handle
[out]pFirmwareStorageInfothe structure contains information about the device firmware
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetHDMIInfoFramePacket()

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.

Parameters
[in]hChannelChannel handle
[in]idFrame id
[out]pPacketFrame data
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetHDMIInfoFrameValidFlag()

MW_RESULT LIBMWCAPTURE_API MWGetHDMIInfoFrameValidFlag ( HCHANNEL  hChannel,
DWORD *  pdwValidFlag 
)

Gets the HDMI infoframe valid flag according to the channel handle.

Parameters
[in]hChannelChannel handle
[out]pdwValidFlagValid flag
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetInputSourceScan()

MW_RESULT LIBMWCAPTURE_API MWGetInputSourceScan ( HCHANNEL  hChannel,
BOOLEAN *  pbScan 
)

Gets whether the input source is automatically scanned according to the channel handle.

Parameters
[in]hChannelChannel handle
[out]pbScanThe query value Whether to automatically scan
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetInputSpecificStatus()

MW_RESULT LIBMWCAPTURE_API MWGetInputSpecificStatus ( HCHANNEL  hChannel,
MWCAP_INPUT_SPECIFIC_STATUS *  pInputStatus 
)

Gets the input specific status value based on the channel handle.

Parameters
[in]hChannelChannel handle
[out]pInputStatusMWCAP_INPUT_SPECIFIC_STATUS structure
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVersion()

MW_RESULT LIBMWCAPTURE_API MWGetVersion ( BYTE *  pbyMaj,
BYTE *  pbyMin,
WORD *  pwBuild 
)

get the version of SDK

Parameters
[out]pbyMajMajor version
[out]pbyMinMinor version
[out]pwBuildBuild version
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or NW_INVALID_PARAMS
Note
Always returns MW_SUCCEED. If the parameter is invalid, the value will not be filled in.

◆ MWGetVideoCaps()

MW_RESULT LIBMWCAPTURE_API MWGetVideoCaps ( HCHANNEL  hChannel,
MWCAP_VIDEO_CAPS *  pVideoCaps 
)

Obtains channel video capability information based on the channel handle.

Parameters
[in]hChannelChannel handle
[out]pVideoCapsThe size of video caps
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoInputAspectRatio()

MW_RESULT LIBMWCAPTURE_API MWGetVideoInputAspectRatio ( HCHANNEL  hChannel,
int *  pnAspectX,
int *  pnAspectY 
)

Gets the video input aspect ratio according to the channel handle.

Parameters
[in]hChannelChannel handle
[out]pnAspectXWidth of aspect ratio
[out]pnAspectYheight of aspect ratio
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoInputColorFormat()

MW_RESULT LIBMWCAPTURE_API MWGetVideoInputColorFormat ( HCHANNEL  hChannel,
MWCAP_VIDEO_COLOR_FORMAT *  pColorFormat 
)

Gets the video input color format according to the channel handle.

Parameters
[in]hChannelChannel handle
[out]pColorFormatColor format
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoInputQuantizationRange()

MW_RESULT LIBMWCAPTURE_API MWGetVideoInputQuantizationRange ( HCHANNEL  hChannel,
MWCAP_VIDEO_QUANTIZATION_RANGE *  pQuantRange 
)

Gets the video input quantization range according to the channel handle.

Parameters
[in]hChannelChannel handle
[out]pQuantRangethe address quantization range stored
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoInputSource()

MW_RESULT LIBMWCAPTURE_API MWGetVideoInputSource ( HCHANNEL  hChannel,
DWORD *  pdwSource 
)

Gets the video input source according to the channel handle.

Parameters
[in]hChannelChannel handle
[out]pdwSourceGets the array of video input sources
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoInputSourceArray()

MW_RESULT LIBMWCAPTURE_API MWGetVideoInputSourceArray ( HCHANNEL  hChannel,
DWORD *  pdwInputSource,
DWORD *  pdwInputCount 
)

Obtains channel video capability information based on channel handle.

Parameters
[in]hChannelChannel handle
[out]pdwInputSourceStores an array of video input source interface values
[out]pdwInputCountThe number of video input source interfaces
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWGetVideoSignalStatus()

MW_RESULT LIBMWCAPTURE_API MWGetVideoSignalStatus ( HCHANNEL  hChannel,
MWCAP_VIDEO_SIGNAL_STATUS *  pSignalStatus 
)

Gets the video signal status according to the channel handle.

Parameters
[in]hChannelChannel handle
[out]pSignalStatusVideo signal state structure
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWOpenChannelByPath()

HCHANNEL LIBMWCAPTURE_API MWOpenChannelByPath ( const char *  pszDevicePath)

Opens the device channel according to the path.

Parameters
[in]pszDevicePathOpened path of the channel
Returns
Returns the channel handle, otherwise returns -1
Note
The path value refers to MWGetDevicePath ()

◆ MWReadFirmwareData()

MW_RESULT LIBMWCAPTURE_API MWReadFirmwareData ( HCHANNEL  hChannel,
DWORD  cbOffset,
BYTE *  pbyData,
DWORD  cbToRead,
DWORD *  pcbRead 
)

Obtains the firmware data according to the channel handle.

Parameters
[in]hChannelChannel handle
[in]cbOffsetOffset
[out]pbyDatathe firmware data being read
[in]cbToReadThe length of the data to read
[out]pcbReadThe length of the data being read
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWRefreshDevice()

MW_RESULT LIBMWCAPTURE_API MWRefreshDevice ( )

Refreshes device list.

◆ MWSetAudioInputSource()

MW_RESULT LIBMWCAPTURE_API MWSetAudioInputSource ( HCHANNEL  hChannel,
DWORD  dwSource 
)

Sets the audio input source according to the channel handle.

Parameters
[in]hChannelChannel handle
[in]dwSourceSets the audio input source
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetAudioVolume()

MW_RESULT LIBMWCAPTURE_API MWSetAudioVolume ( HCHANNEL  hChannel,
MWCAP_AUDIO_NODE  audioNode,
MWCAP_AUDIO_VOLUME *  pVolume 
)

Sets the audio attribute value of audio device.

Parameters
[in]hChannelChannel handle opened
[in]audioNodetype of audio device
[in]pVolumeAudio attribute value
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetAVInputSourceLink()

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.

Parameters
[in]hChannelChannel handle
[in]bLinkSets whether the audio input source follows the video input source
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetEDID()

MW_RESULT LIBMWCAPTURE_API MWSetEDID ( HCHANNEL  hChannel,
BYTE *  pbyData,
ULONG  ulSize 
)

Sets edid according to the channel handle.

Parameters
[in]hChannelChannel handle
[in]pbyDataSets EDID
[in]ulSizeThe length of pbyData
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetInputSourceScan()

MW_RESULT LIBMWCAPTURE_API MWSetInputSourceScan ( HCHANNEL  hChannel,
BOOLEAN  bScan 
)

Gets whether automatically scans the input signals according to the channel handle.

Parameters
[in]hChannelChannel handle
[in]bScanGets whether the audio input source follows the video input source
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetLEDMode()

MW_RESULT LIBMWCAPTURE_API MWSetLEDMode ( HCHANNEL  hChannel,
DWORD  dwMode 
)

Sets the led mode according to the channel handle.

Parameters
[in]hChannelChannel handle
[in]dwModemode value set
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetVideoInputAspectRatio()

MW_RESULT LIBMWCAPTURE_API MWSetVideoInputAspectRatio ( HCHANNEL  hChannel,
int  nAspectX,
int  nAspectY 
)

Sets the video input aspect ratio according to the channel handle.

Parameters
[in]hChannelChannel handle
[in]nAspectXWidth of aspect ratio
[in]nAspectYheight of aspect ratio
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetVideoInputColorFormat()

MW_RESULT LIBMWCAPTURE_API MWSetVideoInputColorFormat ( HCHANNEL  hChannel,
MWCAP_VIDEO_COLOR_FORMAT  colorFormat 
)

Sets the video input color format according to the channel handle.

Parameters
[in]hChannelChannel handle
[in]colorFormatColor format
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetVideoInputQuantizationRange()

MW_RESULT LIBMWCAPTURE_API MWSetVideoInputQuantizationRange ( HCHANNEL  hChannel,
MWCAP_VIDEO_QUANTIZATION_RANGE  quantRange 
)

Sets the video input quantization range according to the channel handle.

Parameters
[in]hChannelChannel handle
[in]quantRangequantization range
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWSetVideoInputSource()

MW_RESULT LIBMWCAPTURE_API MWSetVideoInputSource ( HCHANNEL  hChannel,
DWORD  dwSource 
)

Sets the video input source according to the channel handle.

Parameters
[in]hChannelChannel handle
[in]dwSourceSets the video input source
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS

◆ MWWriteFirmwareData()

MW_RESULT LIBMWCAPTURE_API MWWriteFirmwareData ( HCHANNEL  hChannel,
DWORD  cbOffset,
BYTE *  pbyData,
DWORD  cbData 
)

Writes the firmware data according to the channel handle.

Parameters
[in]hChannelChannel handle
[in]cbOffsetOffset
[in]pbyDataThe firmware data to write
[in]cbDataThe firmware data being written
Returns
Returns MW_SUCCEED if succeeded, otherwise returns MW_FAILED or MW_INVALID_PARAMS