MWCapture SDK Mac  3.3.0.12920
MWCapture.h
1 /************************************************************************************************/
2 // MWCapture.h : header file
3 
4 // MAGEWELL PROPRIETARY INFORMATION
5 
6 // The following license only applies to head files and library within Magewell's SDK
7 // and not to Magewell's SDK as a whole.
8 
9 // Copyrights © Nanjing Magewell Electronics Co., Ltd. ("Magewell") All rights reserved.
10 
11 // Magewell grands to any person who obtains the copy of Magewell's head files and library
12 // the rights,including without limitation, to use on the condition that the following terms are met:
13 // - The above copyright notice shall be retained in any circumstances.
14 // -The following disclaimer shall be included in the software and documentation and/or
15 // other materials provided for the purpose of publish, distribution or sublicense.
16 
17 // THE SOFTWARE IS PROVIDED BY MAGEWELL "AS IS" AND ANY EXPRESS, INCLUDING BUT NOT LIMITED TO,
18 // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 // IN NO EVENT SHALL MAGEWELL BE LIABLE
20 
21 // FOR ANY CLAIM, DIRECT OR INDIRECT DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT,
22 // TORT OR OTHERWISE, ARISING IN ANY WAY OF USING THE SOFTWARE.
23 
24 // CONTACT INFORMATION:
25 // SDK@magewell.net
26 // http://www.magewell.com/
27 //
28 /************************************************************************************************/
29 #pragma once
30 
31 #ifdef LIBMWCAPTURE_EXPORTS
32 #define LIBMWCAPTURE_API __declspec(dllexport)
33 #elif LIBMWCAPTURE_DLL
34 #define LIBMWCAPTURE_API __declspec(dllimport)
35 #else
36 #define LIBMWCAPTURE_API
37 #endif
38 
39 #include <stdint.h>
40 #include "MWLinux.h"
41 #include "MWProCapture.h"
42 #include "MWCaptureExtension.h"
43 #include "MWUSBCapture.h"
44 #include "MWUSBCaptureExtension.h"
45 
46 #ifdef __cplusplus
47 
48 extern "C"
49 {
50 #endif
51 
61 MW_RESULT
62 LIBMWCAPTURE_API
64  BYTE* pbyMaj,
65  BYTE* pbyMin,
66  WORD* pwBuild
67  );
68 
74 BOOL
75 LIBMWCAPTURE_API
77  );
78 
79 
84 void
85 LIBMWCAPTURE_API
87  );
88 
93 MW_RESULT
94 LIBMWCAPTURE_API
96  );
97 
103 int
104 LIBMWCAPTURE_API
106  );
107 
116 MW_RESULT
117 LIBMWCAPTURE_API
119  int nIndex,
120  MWCAP_CHANNEL_INFO * pChannelInfo
121  );
122 
131 MW_RESULT
132 LIBMWCAPTURE_API
134  int nIndex,
135  LPVOID pFamilyInfo,
136  DWORD dwSize
137  );
138 
146 MW_RESULT
147 LIBMWCAPTURE_API
149  int nIndex,
150  char* pDevicePath
151 );
152 
160 HCHANNEL
161 LIBMWCAPTURE_API
163  const char* pszDevicePath
164  );
165 
171 void
172 LIBMWCAPTURE_API
174  HCHANNEL hChannel
175  );
176 
184 MW_RESULT
185 LIBMWCAPTURE_API
187  HCHANNEL hChannel,
188  MWCAP_CHANNEL_INFO * pChannelInfo
189  );
190 
199 MW_RESULT
200 LIBMWCAPTURE_API
202  HCHANNEL hChannel,
203  LPVOID pFamilyInfo,
204  DWORD dwSize
205  );
206 
214 MW_RESULT
215 LIBMWCAPTURE_API
217  HCHANNEL hChannel,
218  MWCAP_VIDEO_CAPS* pVideoCaps
219  );
220 
228 MW_RESULT
229 LIBMWCAPTURE_API
231  HCHANNEL hChannel,
232  MWCAP_AUDIO_CAPS* pAudioCaps
233  );
234 
243 MW_RESULT
244 LIBMWCAPTURE_API
246  HCHANNEL hChannel,
247  DWORD* pdwInputSource,
248  DWORD* pdwInputCount
249  );
250 
259 MW_RESULT
260 LIBMWCAPTURE_API
262  HCHANNEL hChannel,
263  DWORD* pdwInputSource,
264  DWORD* pdwInputCount
265  );
266 
267 
275 MW_RESULT
276 LIBMWCAPTURE_API
278  HCHANNEL hChannel,
279  BOOLEAN* pbScan
280  );
281 
289 MW_RESULT
290 LIBMWCAPTURE_API
292  HCHANNEL hChannel,
293  BOOLEAN bScan
294  );
295 
303 MW_RESULT
304 LIBMWCAPTURE_API
306  HCHANNEL hChannel,
307  BOOLEAN* pbLink
308  );
309 
317 MW_RESULT
318 LIBMWCAPTURE_API
320  HCHANNEL hChannel,
321  BOOLEAN bLink
322  );
323 
331 MW_RESULT
332 LIBMWCAPTURE_API
334  HCHANNEL hChannel,
335  DWORD* pdwSource
336  );
337 
345 MW_RESULT
346 LIBMWCAPTURE_API
348  HCHANNEL hChannel,
349  DWORD dwSource
350  );
351 
359 MW_RESULT
360 LIBMWCAPTURE_API
362  HCHANNEL hChannel,
363  DWORD* pdwSource
364  );
365 
373 MW_RESULT
374 LIBMWCAPTURE_API
376  HCHANNEL hChannel,
377  DWORD dwSource
378  );
379 
380 // EDID
389 MW_RESULT
390 LIBMWCAPTURE_API
391 MWGetEDID(
392  HCHANNEL hChannel,
393  BYTE* pbyData,
394  ULONG* pulSize
395  );
396 
405 MW_RESULT
406 LIBMWCAPTURE_API
407 MWSetEDID(
408  HCHANNEL hChannel,
409  BYTE* pbyData,
410  ULONG ulSize
411  );
412 
420 MW_RESULT
421 LIBMWCAPTURE_API
423  HCHANNEL hChannel,
424  MWCAP_INPUT_SPECIFIC_STATUS * pInputStatus
425  );
426 
434 MW_RESULT
435 LIBMWCAPTURE_API
437  HCHANNEL hChannel,
438  MWCAP_VIDEO_SIGNAL_STATUS * pSignalStatus
439  );
440 
448 MW_RESULT
449 LIBMWCAPTURE_API
451  HCHANNEL hChannel,
452  MWCAP_AUDIO_SIGNAL_STATUS * pSignalStatus
453  );
454 
462 MW_RESULT
463 LIBMWCAPTURE_API
465  HCHANNEL hChannel,
466  DWORD* pdwValidFlag
467  );
468 
477 MW_RESULT
478 LIBMWCAPTURE_API
480  HCHANNEL hChannel,
482  HDMI_INFOFRAME_PACKET* pPacket
483  );
484 
493 MW_RESULT
494 LIBMWCAPTURE_API
496  HCHANNEL hChannel,
497  int nAspectX,
498  int nAspectY
499  );
500 
509 MW_RESULT
510 LIBMWCAPTURE_API
512  HCHANNEL hChannel,
513  int* pnAspectX,
514  int* pnAspectY
515  );
516 
524 MW_RESULT
525 LIBMWCAPTURE_API
527  HCHANNEL hChannel,
528  MWCAP_VIDEO_COLOR_FORMAT colorFormat
529  );
530 
538 MW_RESULT
539 LIBMWCAPTURE_API
541  HCHANNEL hChannel,
542  MWCAP_VIDEO_COLOR_FORMAT * pColorFormat
543  );
544 
552 MW_RESULT
553 LIBMWCAPTURE_API
555  HCHANNEL hChannel,
557  );
558 
566 MW_RESULT
567 LIBMWCAPTURE_API
569  HCHANNEL hChannel,
570  MWCAP_VIDEO_QUANTIZATION_RANGE* pQuantRange
571  );
572 
580 MW_RESULT
581 LIBMWCAPTURE_API
583  HCHANNEL hChannel,
584  DWORD dwMode
585  );
586 
594 MW_RESULT
595 LIBMWCAPTURE_API
597  HCHANNEL hChannel,
598  MWCAP_FIRMWARE_STORAGE * pFirmwareStorageInfo
599  );
600 
609 MW_RESULT
610 LIBMWCAPTURE_API
612  HCHANNEL hChannel,
613  DWORD cbOffset,
614  DWORD cbErase
615  );
616 
627 MW_RESULT
628 LIBMWCAPTURE_API
630  HCHANNEL hChannel,
631  DWORD cbOffset,
632  BYTE * pbyData,
633  DWORD cbToRead,
634  DWORD * pcbRead
635  );
636 
646 MW_RESULT
647 LIBMWCAPTURE_API
649  HCHANNEL hChannel,
650  DWORD cbOffset,
651  BYTE * pbyData,
652  DWORD cbData
653  );
654 
662 MW_RESULT
664  HCHANNEL hChannel,
665  char *pszVideoDevicePath
666  );
667 
680 HANDLE
681 LIBMWCAPTURE_API
683  char *pszVideoDevicePath,
684  int nWidth,
685  int nHeight,
686  int nFourcc,
687  int nFrameDuration,
688  VIDEO_CAPTURE_CALLBACK callback,
689  void* pParam
690  );
691 
698 MW_RESULT
699 LIBMWCAPTURE_API
701  HANDLE hVideo
702  );
703 
712 HANDLE
713 LIBMWCAPTURE_API
715  HCHANNEL hChannel,
716  MWCAP_AUDIO_CAPTURE_NODE captureNode,
717  DWORD dwSamplesPerSec,
718  WORD wBitsPerSample,
719  WORD wChannels,
720  AUDIO_CAPTURE_CALLBACK callback,
721  void* pParam
722  );
723 
730 MW_RESULT
731 LIBMWCAPTURE_API
733  HANDLE hAudio
734  );
735 
744 MW_RESULT
745  LIBMWCAPTURE_API
747  HCHANNEL hChannel,
748  MWCAP_AUDIO_NODE audioNode,
749  MWCAP_AUDIO_VOLUME* pVolume
750  );
751 
760 MW_RESULT
761  LIBMWCAPTURE_API
763  HCHANNEL hChannel,
764  MWCAP_AUDIO_NODE audioNode,
765  MWCAP_AUDIO_VOLUME* pVolume
766  );
767 
768 
779 MW_RESULT
780  LIBMWCAPTURE_API
782  HCHANNEL hChannel,
783  BYTE byIndex,
784  BOOLEAN bHANC,
785  BOOLEAN bVANC,
786  BYTE byDID,
787  BYTE bySDID
788  );
789 
797 MW_RESULT
798  LIBMWCAPTURE_API
800  HCHANNEL hChannel,
801  MWCAP_SDI_ANC_PACKET* pPacket
802  );
803 
814 MW_RESULT
815  LIBMWCAPTURE_API
817  HCHANNEL hChannel,
818  MWCAP_VIDEO_RESOLUTION_MODE *pMode,
819  int *pCount
820  );
821 
832 MW_RESULT
833  LIBMWCAPTURE_API
835  HCHANNEL hChannel,
837  );
838 
848 MW_RESULT
849  LIBMWCAPTURE_API
851  HCHANNEL hChannel,
853  );
854 
855 
864 MW_RESULT
865 LIBMWCAPTURE_API
867  HCHANNEL hChannel,
868  DWORD* pColorFourcc,
869  int* nCount
870  );
871 
882 MW_RESULT
883 LIBMWCAPTURE_API
885  HANDLE hVideo,
886  MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType,
887  long * plParamValueMin,
888  long * plParamValueMax,
889  long * plParamValueDef
890  );
891 
900 MW_RESULT
901  LIBMWCAPTURE_API
903  HANDLE hVideo,
904  MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType,
905  long * plParamValue
906  );
907 
908 
917 MW_RESULT
918  LIBMWCAPTURE_API
920  HANDLE hVideo,
921  MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType,
922  long lParamValue
923  );
924 
925 
926 #ifdef __cplusplus
927 }
928 #endif
_HDMI_INFOFRAME_PACKET
HDMI_INFOFRAME_PACKET.
Definition: MWHDMIPackets.h:361
MWGetHDMIInfoFrameValidFlag
MW_RESULT LIBMWCAPTURE_API MWGetHDMIInfoFrameValidFlag(HCHANNEL hChannel, DWORD *pdwValidFlag)
Gets the HDMI infoframe valid flag according to the channel handle.
MWSetAudioVolume
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
MWCAP_VIDEO_SIGNAL_STATUS.
Definition: MWCaptureExtension.h:742
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.
MWGetEDID
MW_RESULT LIBMWCAPTURE_API MWGetEDID(HCHANNEL hChannel, BYTE *pbyData, ULONG *pulSize)
Gets EDID according to the channel handle.
MWGetVideoCaptureSupportResolutionMode
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureSupportResolutionMode(HCHANNEL hChannel, MWCAP_VIDEO_RESOLUTION_MODE *pMode, int *pCount)
Get the mode of resolutions supported by the device.
MWGetVideoCaptureSupportListResolution
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
MWCAP_AUDIO_SIGNAL_STATUS.
Definition: MWCaptureExtension.h:769
_MWCAP_CHANNEL_INFO
MWCAP_CHANNEL_INFO.
Definition: MWCaptureExtension.h:410
MWGetVideoInputSource
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputSource(HCHANNEL hChannel, DWORD *pdwSource)
Gets the video input source according to the channel handle.
MWSetLEDMode
MW_RESULT LIBMWCAPTURE_API MWSetLEDMode(HCHANNEL hChannel, DWORD dwMode)
Sets LED mode.
MWCaptureExitInstance
void LIBMWCAPTURE_API MWCaptureExitInstance()
Quits MWCapture.
MWGetVersion
MW_RESULT LIBMWCAPTURE_API MWGetVersion(BYTE *pbyMaj, BYTE *pbyMin, WORD *pwBuild)
get the version of SDK
MWSetVideoInputQuantizationRange
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputQuantizationRange(HCHANNEL hChannel, MWCAP_VIDEO_QUANTIZATION_RANGE quantRange)
Sets the video input quantization range according to the channel handle.
MWGetVideoCaps
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaps(HCHANNEL hChannel, MWCAP_VIDEO_CAPS *pVideoCaps)
Obtains channel video capability information based on the channel handle.
_MWCAP_FIRMWARE_STORAGE
MWCAP_FIRMWARE_STORAGE.
Definition: MWCaptureExtension.h:559
MWGetVideoProcParamRange
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.
MWGetChannelInfoByIndex
MW_RESULT LIBMWCAPTURE_API MWGetChannelInfoByIndex(int nIndex, MWCAP_CHANNEL_INFO *pChannelInfo)
Gets the channel info by its index.
MWCAP_VIDEO_QUANTIZATION_RANGE
enum _MWCAP_VIDEO_QUANTIZATION_RANGE MWCAP_VIDEO_QUANTIZATION_RANGE
MWCAP_VIDEO_QUANTIZATION_RANGE.
_MWCAP_AUDIO_CAPS
MWCAP_AUDIO_CAPS.
Definition: MWCaptureExtension.h:515
MWSetVideoInputColorFormat
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputColorFormat(HCHANNEL hChannel, MWCAP_VIDEO_COLOR_FORMAT colorFormat)
Sets the video input color format according to the channel handle.
MWGetVideoDevicePathByChannel
MW_RESULT MWGetVideoDevicePathByChannel(HCHANNEL hChannel, char *pszVideoDevicePath)
Gets video device path.
_MWCAP_VIDEO_CAPS
MWCAP_VIDEO_CAPS.
Definition: MWCaptureExtension.h:470
MWGetVideoInputAspectRatio
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputAspectRatio(HCHANNEL hChannel, int *pnAspectX, int *pnAspectY)
Gets the video input aspect ratio according to the channel handle.
MWEraseFirmwareData
MW_RESULT LIBMWCAPTURE_API MWEraseFirmwareData(HCHANNEL hChannel, DWORD cbOffset, DWORD cbErase)
Erases the firmware data according to the channel handle.
MWGetInputSourceScan
MW_RESULT LIBMWCAPTURE_API MWGetInputSourceScan(HCHANNEL hChannel, BOOLEAN *pbScan)
Gets the scan state of input source.
MWCAP_AUDIO_CAPTURE_NODE
enum _MWCAP_AUDIO_CAPTURE_NODE MWCAP_AUDIO_CAPTURE_NODE
MWCAP_AUDIO_CAPTURE_NODE.
MWSetAudioInputSource
MW_RESULT LIBMWCAPTURE_API MWSetAudioInputSource(HCHANNEL hChannel, DWORD dwSource)
Sets current audio input source of specified channel.
MWSetVideoInputAspectRatio
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputAspectRatio(HCHANNEL hChannel, int nAspectX, int nAspectY)
Sets the video input aspect ratio according to the channel handle.
_MWCAP_VIDEO_RESOLUTION_RANGE
Definition: MWCaptureExtension.h:1494
MWCAP_AUDIO_NODE
enum _MWCAP_AUDIO_NODE MWCAP_AUDIO_NODE
MWCAP_AUDIO_NODE.
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.
MWGetVideoCaptureSupportRangeResolution
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...
MWSetEDID
MW_RESULT LIBMWCAPTURE_API MWSetEDID(HCHANNEL hChannel, BYTE *pbyData, ULONG ulSize)
Sets edid according to the channel handle.
MWGetInputSpecificStatus
MW_RESULT LIBMWCAPTURE_API MWGetInputSpecificStatus(HCHANNEL hChannel, MWCAP_INPUT_SPECIFIC_STATUS *pInputStatus)
Gets the input specific status value based on the channel handle.
MWGetFamilyInfoByIndex
MW_RESULT LIBMWCAPTURE_API MWGetFamilyInfoByIndex(int nIndex, LPVOID pFamilyInfo, DWORD dwSize)
Gets the product family based on the index.
MWSetVideoInputSource
MW_RESULT LIBMWCAPTURE_API MWSetVideoInputSource(HCHANNEL hChannel, DWORD dwSource)
Sets the video input source according to the channel handle.
_MWCAP_INPUT_SPECIFIC_STATUS
MWCAP_INPUT_SPECIFIC_STATUS.
Definition: MWCaptureExtension.h:712
MWGetAudioSignalStatus
MW_RESULT LIBMWCAPTURE_API MWGetAudioSignalStatus(HCHANNEL hChannel, MWCAP_AUDIO_SIGNAL_STATUS *pSignalStatus)
Gets the audio signal status according to the channel handle.
MWGetFirmwareStorageInfo
MW_RESULT LIBMWCAPTURE_API MWGetFirmwareStorageInfo(HCHANNEL hChannel, MWCAP_FIRMWARE_STORAGE *pFirmwareStorageInfo)
Gets firmware storage information according to channel handle.
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.
MWSetVideoProcParam
MW_RESULT LIBMWCAPTURE_API MWSetVideoProcParam(HANDLE hVideo, MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType, long lParamValue)
Set the current value of the video processing parameter.
MWCAP_VIDEO_COLOR_FORMAT
enum _MWCAP_VIDEO_COLOR_FORMAT MWCAP_VIDEO_COLOR_FORMAT
MWCAP_VIDEO_COLOR_FORMAT.
_MWCAP_SDI_ANC_PACKET
MWCAP_SDI_ANC_PACKET.
Definition: MWCaptureExtension.h:1667
MWCaptureGetSDIANCPacket
MW_RESULT LIBMWCAPTURE_API MWCaptureGetSDIANCPacket(HCHANNEL hChannel, MWCAP_SDI_ANC_PACKET *pPacket)
Captures the specified type of ANC data.
MWGetDevicePath
MW_RESULT LIBMWCAPTURE_API MWGetDevicePath(int nIndex, char *pDevicePath)
Gets the path of the device.
MWCAP_HDMI_INFOFRAME_ID
enum _MWCAP_HDMI_INFOFRAME_ID MWCAP_HDMI_INFOFRAME_ID
MWCAP_HDMI_INFOFRAME_ID.
MWGetVideoInputSourceArray
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputSourceArray(HCHANNEL hChannel, DWORD *pdwInputSource, DWORD *pdwInputCount)
Obtains channel video capability information based on channel handle.
MWCaptureInitInstance
BOOL LIBMWCAPTURE_API MWCaptureInitInstance()
Initializes MWCapture.
MWSetInputSourceScan
MW_RESULT LIBMWCAPTURE_API MWSetInputSourceScan(HCHANNEL hChannel, BOOLEAN bScan)
Sets the states of scanned input video source.
MWDestoryVideoCapture
MW_RESULT LIBMWCAPTURE_API MWDestoryVideoCapture(HANDLE hVideo)
End of video capture.
MWGetVideoCaptureSupportColorFormat
MW_RESULT LIBMWCAPTURE_API MWGetVideoCaptureSupportColorFormat(HCHANNEL hChannel, DWORD *pColorFourcc, int *nCount)
Obtains the video capture color format supported by the device.
MWGetAudioInputSource
MW_RESULT LIBMWCAPTURE_API MWGetAudioInputSource(HCHANNEL hChannel, DWORD *pdwSource)
Gets current input audio of the specified channel.
MWGetAVInputSourceLink
MW_RESULT LIBMWCAPTURE_API MWGetAVInputSourceLink(HCHANNEL hChannel, BOOLEAN *pbLink)
Gets the states of input audio/video sources.
MWGetChannelCount
int LIBMWCAPTURE_API MWGetChannelCount()
Gets the total number of channels.
MWOpenChannelByPath
HCHANNEL LIBMWCAPTURE_API MWOpenChannelByPath(const char *pszDevicePath)
Opens the device channel according to the path.
MWGetAudioVolume
MW_RESULT LIBMWCAPTURE_API MWGetAudioVolume(HCHANNEL hChannel, MWCAP_AUDIO_NODE audioNode, MWCAP_AUDIO_VOLUME *pVolume)
Obtains audio attribute value of the audio device.
MWWriteFirmwareData
MW_RESULT LIBMWCAPTURE_API MWWriteFirmwareData(HCHANNEL hChannel, DWORD cbOffset, BYTE *pbyData, DWORD cbData)
Writes the firmware data according to the channel handle.
_MWCAP_VIDEO_RESOLUTION_LIST
Definition: MWCaptureExtension.h:1501
MWRefreshDevice
MW_RESULT LIBMWCAPTURE_API MWRefreshDevice()
Refreshes device list.
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.
MWGetAudioCaps
MW_RESULT LIBMWCAPTURE_API MWGetAudioCaps(HCHANNEL hChannel, MWCAP_AUDIO_CAPS *pAudioCaps)
Obtains channel audio capability information based on the channel handle.
AUDIO_CAPTURE_CALLBACK
void(* AUDIO_CAPTURE_CALLBACK)(const BYTE *pbFrame, int cbFrame, uint64_t u64TimeStamp, void *pParam)
Callback function of audio capture.
Definition: MWCaptureExtension.h:1643
MWDestoryAudioCapture
MW_RESULT LIBMWCAPTURE_API MWDestoryAudioCapture(HANDLE hAudio)
End of audio capture.
MWGetVideoInputQuantizationRange
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputQuantizationRange(HCHANNEL hChannel, MWCAP_VIDEO_QUANTIZATION_RANGE *pQuantRange)
Gets the video input quantization range according to the channel handle.
MWGetFamilyInfo
MW_RESULT LIBMWCAPTURE_API MWGetFamilyInfo(HCHANNEL hChannel, LPVOID pFamilyInfo, DWORD dwSize)
Gets the channel family information based on the channel handle.
MWCloseChannel
void LIBMWCAPTURE_API MWCloseChannel(HCHANNEL hChannel)
Closes the device channel.
_MWCAP_AUDIO_VOLUME
Definition: MWUSBCaptureExtension.h:173
MWCreateVideoCapture
HANDLE LIBMWCAPTURE_API MWCreateVideoCapture(char *pszVideoDevicePath, int nWidth, int nHeight, int nFourcc, int nFrameDuration, VIDEO_CAPTURE_CALLBACK callback, void *pParam)
Create video capture.
MWGetVideoProcParam
MW_RESULT LIBMWCAPTURE_API MWGetVideoProcParam(HANDLE hVideo, MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType, long *plParamValue)
Get the current value of the video processing parameter.
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.
MWGetChannelInfo
MW_RESULT LIBMWCAPTURE_API MWGetChannelInfo(HCHANNEL hChannel, MWCAP_CHANNEL_INFO *pChannelInfo)
Gets the channel information based on the channel handle.
VIDEO_CAPTURE_CALLBACK
void(* VIDEO_CAPTURE_CALLBACK)(BYTE *pBuffer, long iBufferLen, long stride, void *pParam)
Callback function of video capture.
Definition: MWCaptureExtension.h:1635
MWGetVideoInputColorFormat
MW_RESULT LIBMWCAPTURE_API MWGetVideoInputColorFormat(HCHANNEL hChannel, MWCAP_VIDEO_COLOR_FORMAT *pColorFormat)
Gets the video input color format according to the channel handle.
MWGetAudioInputSourceArray
MW_RESULT LIBMWCAPTURE_API MWGetAudioInputSourceArray(HCHANNEL hChannel, DWORD *pdwInputSource, DWORD *pdwInputCount)
Obtains an audio input array based on the channel handle.
MWGetVideoSignalStatus
MW_RESULT LIBMWCAPTURE_API MWGetVideoSignalStatus(HCHANNEL hChannel, MWCAP_VIDEO_SIGNAL_STATUS *pSignalStatus)
Gets the video signal status according to the channel handle.