MWCapture SDK Linux  3.3.1.LAST_SVN_COMMIT_NUM
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 
79 LIBMWCAPTURE_API
81  BYTE* pbyMaj,
82  BYTE* pbyMin,
83  WORD* pwBuild
84  );
85 
93 BOOL
94 LIBMWCAPTURE_API
96  );
97 
98 
104 void
105 LIBMWCAPTURE_API
107  );
108 
130 MW_RESULT
131 LIBMWCAPTURE_API
133  );
134 
145 int
146 LIBMWCAPTURE_API
148  );
149 
176 MW_RESULT
177 LIBMWCAPTURE_API
179  int nIndex,
180  MWCAP_CHANNEL_INFO * pChannelInfo
181  );
182 
223 MW_RESULT
224 LIBMWCAPTURE_API
226  int nIndex,
227  LPVOID pFamilyInfo,
228  DWORD dwSize
229  );
230 
258 MW_RESULT
259 LIBMWCAPTURE_API
261  int nIndex,
262  char* pDevicePath
263 );
264 
278 HCHANNEL
279 LIBMWCAPTURE_API
281  const char* pszDevicePath
282  );
283 
298 void
299 LIBMWCAPTURE_API
301  HCHANNEL hChannel
302  );
303 
336 MW_RESULT
337 LIBMWCAPTURE_API
339  HCHANNEL hChannel,
340  MWCAP_CHANNEL_INFO * pChannelInfo
341  );
342 
384 MW_RESULT
385 LIBMWCAPTURE_API
387  HCHANNEL hChannel,
388  LPVOID pFamilyInfo,
389  DWORD dwSize
390  );
391 
424 MW_RESULT
425 LIBMWCAPTURE_API
427  HCHANNEL hChannel,
428  MWCAP_VIDEO_CAPS* pVideoCaps
429  );
430 
463 MW_RESULT
464 LIBMWCAPTURE_API
466  HCHANNEL hChannel,
467  MWCAP_AUDIO_CAPS* pAudioCaps
468  );
469 
515 MW_RESULT
516 LIBMWCAPTURE_API
518  HCHANNEL hChannel,
519  DWORD* pdwInputSource,
520  DWORD* pdwInputCount
521  );
522 
568 MW_RESULT
569 LIBMWCAPTURE_API
571  HCHANNEL hChannel,
572  DWORD* pdwInputSource,
573  DWORD* pdwInputCount
574  );
575 
576 
610 MW_RESULT
611 LIBMWCAPTURE_API
613  HCHANNEL hChannel,
614  BOOLEAN* pbScan
615  );
616 
650 MW_RESULT
651 LIBMWCAPTURE_API
653  HCHANNEL hChannel,
654  BOOLEAN bScan
655  );
656 
694 MW_RESULT
695 LIBMWCAPTURE_API
697  HCHANNEL hChannel,
698  BOOLEAN* pbLink
699  );
700 
734 MW_RESULT
735 LIBMWCAPTURE_API
737  HCHANNEL hChannel,
738  BOOLEAN bLink
739  );
740 
775 MW_RESULT
776 LIBMWCAPTURE_API
778  HCHANNEL hChannel,
779  DWORD* pdwSource
780  );
781 
816 MW_RESULT
817 LIBMWCAPTURE_API
819  HCHANNEL hChannel,
820  DWORD dwSource
821  );
822 
857 MW_RESULT
858 LIBMWCAPTURE_API
860  HCHANNEL hChannel,
861  DWORD* pdwSource
862  );
863 
898 MW_RESULT
899 LIBMWCAPTURE_API
901  HCHANNEL hChannel,
902  DWORD dwSource
903  );
904 
941 MW_RESULT
942 LIBMWCAPTURE_API
943 MWGetEDID(
944  HCHANNEL hChannel,
945  BYTE* pbyData,
946  ULONG* pulSize
947  );
948 
987 MW_RESULT
988 LIBMWCAPTURE_API
989 MWSetEDID(
990  HCHANNEL hChannel,
991  BYTE* pbyData,
992  ULONG ulSize
993  );
994 
1028 MW_RESULT
1029 LIBMWCAPTURE_API
1031  HCHANNEL hChannel,
1032  MWCAP_INPUT_SPECIFIC_STATUS * pInputStatus
1033  );
1034 
1068 MW_RESULT
1069 LIBMWCAPTURE_API
1071  HCHANNEL hChannel,
1072  MWCAP_VIDEO_SIGNAL_STATUS * pSignalStatus
1073  );
1074 
1108 MW_RESULT
1109 LIBMWCAPTURE_API
1111  HCHANNEL hChannel,
1112  MWCAP_AUDIO_SIGNAL_STATUS * pSignalStatus
1113  );
1114 
1150 MW_RESULT
1151 LIBMWCAPTURE_API
1153  HCHANNEL hChannel,
1154  DWORD* pdwValidFlag
1155  );
1156 
1199 MW_RESULT
1200 LIBMWCAPTURE_API
1202  HCHANNEL hChannel,
1204  HDMI_INFOFRAME_PACKET* pPacket
1205  );
1206 
1242 MW_RESULT
1243 LIBMWCAPTURE_API
1245  HCHANNEL hChannel,
1246  int nAspectX,
1247  int nAspectY
1248  );
1249 
1285 MW_RESULT
1286 LIBMWCAPTURE_API
1288  HCHANNEL hChannel,
1289  int* pnAspectX,
1290  int* pnAspectY
1291  );
1292 
1327 MW_RESULT
1328 LIBMWCAPTURE_API
1330  HCHANNEL hChannel,
1331  MWCAP_VIDEO_COLOR_FORMAT colorFormat
1332  );
1333 
1367 MW_RESULT
1368 LIBMWCAPTURE_API
1370  HCHANNEL hChannel,
1371  MWCAP_VIDEO_COLOR_FORMAT * pColorFormat
1372  );
1373 
1408 MW_RESULT
1409 LIBMWCAPTURE_API
1411  HCHANNEL hChannel,
1413  );
1414 
1448 MW_RESULT
1449 LIBMWCAPTURE_API
1451  HCHANNEL hChannel,
1452  MWCAP_VIDEO_QUANTIZATION_RANGE* pQuantRange
1453  );
1454 
1489 MW_RESULT
1490 LIBMWCAPTURE_API
1491 MWSetLEDMode(
1492  HCHANNEL hChannel,
1493  DWORD dwMode
1494  );
1495 
1529 MW_RESULT
1530 LIBMWCAPTURE_API
1532  HCHANNEL hChannel,
1533  MWCAP_FIRMWARE_STORAGE * pFirmwareStorageInfo
1534  );
1535 
1572 MW_RESULT
1573 LIBMWCAPTURE_API
1575  HCHANNEL hChannel,
1576  DWORD cbOffset,
1577  DWORD cbErase
1578  );
1579 
1618 MW_RESULT
1619 LIBMWCAPTURE_API
1621  HCHANNEL hChannel,
1622  DWORD cbOffset,
1623  BYTE * pbyData,
1624  DWORD cbToRead,
1625  DWORD * pcbRead
1626  );
1627 
1665 MW_RESULT
1666 LIBMWCAPTURE_API
1668  HCHANNEL hChannel,
1669  DWORD cbOffset,
1670  BYTE * pbyData,
1671  DWORD cbData
1672  );
1673 
1714 HANDLE
1715 LIBMWCAPTURE_API
1717  HCHANNEL hChannel,
1718  int nWidth,
1719  int nHeight,
1720  int nFourcc,
1721  int nFrameDuration,
1722  VIDEO_CAPTURE_CALLBACK callback,
1723  void* pParam
1724  );
1725 
1788 MW_RESULT
1789 LIBMWCAPTURE_API
1791  HANDLE hVideo
1792  );
1793 
1837 HANDLE
1838 LIBMWCAPTURE_API
1840  HCHANNEL hChannel,
1841  MWCAP_AUDIO_CAPTURE_NODE captureNode,
1842  DWORD dwSamplesPerSec,
1843  WORD wBitsPerSample,
1844  WORD wChannels,
1845  AUDIO_CAPTURE_CALLBACK callback,
1846  void* pParam
1847  );
1848 
1888 MW_RESULT
1889 LIBMWCAPTURE_API
1891  HANDLE hAudio
1892  );
1893 
1928 MW_RESULT
1929  LIBMWCAPTURE_API
1931  HCHANNEL hChannel,
1932  MWCAP_AUDIO_NODE audioNode,
1933  MWCAP_AUDIO_VOLUME* pVolume
1934  );
1935 
1975 MW_RESULT
1976  LIBMWCAPTURE_API
1978  HCHANNEL hChannel,
1979  MWCAP_AUDIO_NODE audioNode,
1980  MWCAP_AUDIO_VOLUME* pVolume
1981  );
1982 
2016 MW_RESULT
2017  LIBMWCAPTURE_API
2019  HCHANNEL hChannel,
2020  BOOLEAN* pbAutoHAlign
2021  );
2022 
2056 MW_RESULT
2057  LIBMWCAPTURE_API
2059  HCHANNEL hChannel,
2060  BOOLEAN bAutoHAlign
2061  );
2062 
2096 MW_RESULT
2097  LIBMWCAPTURE_API
2099  HCHANNEL hChannel,
2100  BYTE * puSamplingPhase
2101  );
2102 
2136 MW_RESULT
2137  LIBMWCAPTURE_API
2139  HCHANNEL hChannel,
2140  BYTE puSamplingPhase
2141  );
2142 
2176 MW_RESULT
2177  LIBMWCAPTURE_API
2179  HCHANNEL hChannel,
2180  BOOLEAN * pbAutoSamplingPhase
2181  );
2182 
2216 MW_RESULT
2217  LIBMWCAPTURE_API
2219  HCHANNEL hChannel,
2220  BOOLEAN bAutoSamplingPhase
2221  );
2222 
2257 MW_RESULT
2258  LIBMWCAPTURE_API
2260  HCHANNEL hChannel,
2261  MWCAP_VIDEO_TIMING * pTiming
2262  );
2263 
2297 MW_RESULT
2298  LIBMWCAPTURE_API
2300  HCHANNEL hChannel,
2301  MWCAP_VIDEO_TIMING_ARRAY * paTimings
2302  );
2303 
2339 MW_RESULT
2340  LIBMWCAPTURE_API
2342  HCHANNEL hChannel,
2343  MWCAP_VIDEO_CUSTOM_TIMING * pCustomTiming
2344  );
2345 
2379 MW_RESULT
2380  LIBMWCAPTURE_API
2382  HCHANNEL hChannel,
2383  MWCAP_VIDEO_CUSTOM_TIMING_ARRAY * paCustomTimings
2384  );
2385 
2424 MW_RESULT
2425  LIBMWCAPTURE_API
2427  HCHANNEL hChannel,
2428  MWCAP_VIDEO_CUSTOM_TIMING_ARRAY * paCustomTimings
2429  );
2430 
2464 MW_RESULT
2465  LIBMWCAPTURE_API
2467  HCHANNEL hChannel,
2468  MWCAP_VIDEO_CUSTOM_RESOLUTION_ARRAY * paCustomResolutions
2469  );
2470 
2509 MW_RESULT
2510  LIBMWCAPTURE_API
2512  HCHANNEL hChannel,
2513  MWCAP_VIDEO_CUSTOM_RESOLUTION_ARRAY * paCustomResolutions
2514  );
2553 MW_RESULT
2554  LIBMWCAPTURE_API
2556  HCHANNEL hChannel,
2557  BYTE byIndex,
2558  BOOLEAN bHANC,
2559  BOOLEAN bVANC,
2560  BYTE byDID,
2561  BYTE bySDID
2562  );
2563 
2599 MW_RESULT
2600  LIBMWCAPTURE_API
2602  HCHANNEL hChannel,
2603  MWCAP_SDI_ANC_PACKET* pPacket
2604  );
2605 
2642 MW_RESULT
2643  LIBMWCAPTURE_API
2645  HCHANNEL hChannel,
2647  int *pCount
2648  );
2649 
2691 MW_RESULT
2692  LIBMWCAPTURE_API
2694  HCHANNEL hChannel,
2696  );
2697 
2737 MW_RESULT
2738  LIBMWCAPTURE_API
2740  HCHANNEL hChannel,
2742  );
2743 
2744 
2784 MW_RESULT
2785 LIBMWCAPTURE_API
2787  HCHANNEL hChannel,
2788  DWORD* pColorFourcc,
2789  int* nCount
2790  );
2791 
2840 MW_RESULT
2841 LIBMWCAPTURE_API
2843  HANDLE hVideo,
2844  MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType,
2845  long * plParamValueMin,
2846  long * plParamValueMax,
2847  long * plParamValueDef
2848  );
2849 
2894 MW_RESULT
2895  LIBMWCAPTURE_API
2897  HANDLE hVideo,
2898  MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType,
2899  long * plParamValue
2900  );
2901 
2902 
2953 MW_RESULT
2954  LIBMWCAPTURE_API
2956  HANDLE hVideo,
2957  MWCAP_VIDEO_PROC_PARAM_TYPE videoProcParamType,
2958  long lParamValue
2959  );
2960 
2986 MW_RESULT
2987 LIBMWCAPTURE_API
2989  HCHANNEL hChannel,
2990  DWORD dwDelayMS
2991  );
2992 
3026 MW_RESULT
3027 LIBMWCAPTURE_API
3029  HCHANNEL hChannel,
3030  MWCAP_VIDEO_CONNECTION_FORMAT* pConnFormat
3031  );
3065 MW_RESULT
3066  LIBMWCAPTURE_API
3068  HCHANNEL hChannel,
3069  BOOLEAN * pbInputSourceScanning
3070  );
3071 
3105 MW_RESULT
3106  LIBMWCAPTURE_API
3108  HCHANNEL hChannel,
3109  MWCAP_VIDEO_PROCESS_SETTINGS* paProcessSettings
3110  );
3111 
3148 MW_RESULT
3149  LIBMWCAPTURE_API
3151  HCHANNEL hChannel,
3152  MWCAP_VIDEO_PROCESS_SETTINGS* paProcessSettings
3153  );
3154 
3155 #ifdef __cplusplus
3156 }
3157 #endif
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