Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwindowsmfdefs_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWINDOWSMFDEFS_P_H
5#define QWINDOWSMFDEFS_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <qtmultimediaexports.h>
19#include <d3d9.h>
20#include <dxva2api.h>
21#include <mfidl.h>
22
23// Stuff that is missing or incorrecty defined in MinGW.
24
25Q_MULTIMEDIA_EXPORT extern const GUID QMM_MFTranscodeContainerType_ADTS;
26Q_MULTIMEDIA_EXPORT extern const GUID QMM_MFTranscodeContainerType_ASF;
27Q_MULTIMEDIA_EXPORT extern const GUID QMM_MFTranscodeContainerType_AVI;
28Q_MULTIMEDIA_EXPORT extern const GUID QMM_MFTranscodeContainerType_FLAC;
29Q_MULTIMEDIA_EXPORT extern const GUID QMM_MFTranscodeContainerType_MP3;
30Q_MULTIMEDIA_EXPORT extern const GUID QMM_MFTranscodeContainerType_MPEG4;
31Q_MULTIMEDIA_EXPORT extern const GUID QMM_MFTranscodeContainerType_WAVE;
32
33Q_MULTIMEDIA_EXPORT extern const GUID QMM_MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_GUID;
34Q_MULTIMEDIA_EXPORT extern const GUID QMM_MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_AUDCAP_GUID;
35Q_MULTIMEDIA_EXPORT extern const GUID QMM_MF_TRANSCODE_CONTAINERTYPE;
36
37Q_MULTIMEDIA_EXPORT extern const GUID QMM_MF_SD_STREAM_NAME;
38Q_MULTIMEDIA_EXPORT extern const GUID QMM_MF_SD_LANGUAGE;
39
40Q_MULTIMEDIA_EXPORT extern const GUID QMM_KSCATEGORY_VIDEO_CAMERA;
41Q_MULTIMEDIA_EXPORT extern const GUID QMM_KSCATEGORY_SENSOR_CAMERA;
42
43Q_MULTIMEDIA_EXPORT extern const GUID QMM_MR_POLICY_VOLUME_SERVICE;
44
45Q_MULTIMEDIA_EXPORT extern const PROPERTYKEY QMM_PKEY_Device_FriendlyName;
46
47extern "C" HRESULT WINAPI MFCreateDeviceSource(IMFAttributes *pAttributes, IMFMediaSource **ppSource);
48
49#define QMM_MFSESSION_GETFULLTOPOLOGY_CURRENT 1
50#define QMM_PRESENTATION_CURRENT_POSITION 0x7fffffffffffffff
51#define QMM_WININET_E_CANNOT_CONNECT ((HRESULT)0x80072EFDL)
52
53#ifndef __IMFVideoProcessor_INTERFACE_DEFINED__
54#define __IMFVideoProcessor_INTERFACE_DEFINED__
55DEFINE_GUID(IID_IMFVideoProcessor, 0x6AB0000C, 0xFECE, 0x4d1f, 0xA2,0xAC, 0xA9,0x57,0x35,0x30,0x65,0x6E);
56MIDL_INTERFACE("6AB0000C-FECE-4d1f-A2AC-A9573530656E")
57IMFVideoProcessor : public IUnknown
58{
59 virtual HRESULT STDMETHODCALLTYPE GetAvailableVideoProcessorModes(UINT *, GUID **) = 0;
60 virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorCaps(LPGUID, DXVA2_VideoProcessorCaps *) = 0;
61 virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorMode(LPGUID) = 0;
62 virtual HRESULT STDMETHODCALLTYPE SetVideoProcessorMode(LPGUID) = 0;
63 virtual HRESULT STDMETHODCALLTYPE GetProcAmpRange(DWORD, DXVA2_ValueRange *) = 0;
64 virtual HRESULT STDMETHODCALLTYPE GetProcAmpValues(DWORD, DXVA2_ProcAmpValues *) = 0;
65 virtual HRESULT STDMETHODCALLTYPE SetProcAmpValues(DWORD, DXVA2_ProcAmpValues *) = 0;
66 virtual HRESULT STDMETHODCALLTYPE GetFilteringRange(DWORD, DXVA2_ValueRange *) = 0;
67 virtual HRESULT STDMETHODCALLTYPE GetFilteringValue(DWORD, DXVA2_Fixed32 *) = 0;
68 virtual HRESULT STDMETHODCALLTYPE SetFilteringValue(DWORD, DXVA2_Fixed32 *) = 0;
69 virtual HRESULT STDMETHODCALLTYPE GetBackgroundColor(COLORREF *) = 0;
70 virtual HRESULT STDMETHODCALLTYPE SetBackgroundColor(COLORREF) = 0;
71};
72#ifdef __CRT_UUID_DECL
73__CRT_UUID_DECL(IMFVideoProcessor, 0x6AB0000C, 0xFECE, 0x4d1f, 0xA2,0xAC, 0xA9,0x57,0x35,0x30,0x65,0x6E)
74#endif
75#endif // __IMFVideoProcessor_INTERFACE_DEFINED__
76
77#ifndef __IMFSimpleAudioVolume_INTERFACE_DEFINED__
78#define __IMFSimpleAudioVolume_INTERFACE_DEFINED__
79DEFINE_GUID(IID_IMFSimpleAudioVolume, 0x089EDF13, 0xCF71, 0x4338, 0x8D,0x13, 0x9E,0x56,0x9D,0xBD,0xC3,0x19);
80MIDL_INTERFACE("089EDF13-CF71-4338-8D13-9E569DBDC319")
81IMFSimpleAudioVolume : public IUnknown
82{
83 virtual HRESULT STDMETHODCALLTYPE SetMasterVolume(float) = 0;
84 virtual HRESULT STDMETHODCALLTYPE GetMasterVolume(float *) = 0;
85 virtual HRESULT STDMETHODCALLTYPE SetMute(BOOL) = 0;
86 virtual HRESULT STDMETHODCALLTYPE GetMute(BOOL *) = 0;
87};
88#ifdef __CRT_UUID_DECL
89__CRT_UUID_DECL(IMFSimpleAudioVolume, 0x089EDF13, 0xCF71, 0x4338, 0x8D,0x13, 0x9E,0x56,0x9D,0xBD,0xC3,0x19)
90#endif
91#endif // __IMFSimpleAudioVolume_INTERFACE_DEFINED__
92
93#endif // QWINDOWSMFDEFS_P_H
94
long HRESULT
virtual HRESULT STDMETHODCALLTYPE SetVideoProcessorMode(LPGUID)=0
Q_MULTIMEDIA_EXPORT const GUID QMM_KSCATEGORY_SENSOR_CAMERA
Q_MULTIMEDIA_EXPORT const GUID QMM_MF_TRANSCODE_CONTAINERTYPE
HRESULT WINAPI MFCreateDeviceSource(IMFAttributes *pAttributes, IMFMediaSource **ppSource)
virtual HRESULT STDMETHODCALLTYPE GetMute(BOOL *)=0
virtual HRESULT STDMETHODCALLTYPE SetMute(BOOL)=0
Q_MULTIMEDIA_EXPORT const GUID QMM_MFTranscodeContainerType_AVI
virtual HRESULT STDMETHODCALLTYPE GetProcAmpValues(DWORD, DXVA2_ProcAmpValues *)=0
virtual HRESULT STDMETHODCALLTYPE SetProcAmpValues(DWORD, DXVA2_ProcAmpValues *)=0
virtual HRESULT STDMETHODCALLTYPE GetProcAmpRange(DWORD, DXVA2_ValueRange *)=0
IMFVideoProcessor GUID **virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorCaps(LPGUID, DXVA2_VideoProcessorCaps *)=0
Q_MULTIMEDIA_EXPORT const GUID QMM_MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_AUDCAP_GUID
Q_MULTIMEDIA_EXPORT const PROPERTYKEY QMM_PKEY_Device_FriendlyName
virtual HRESULT STDMETHODCALLTYPE GetFilteringRange(DWORD, DXVA2_ValueRange *)=0
Q_MULTIMEDIA_EXPORT const GUID QMM_MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_GUID
virtual HRESULT STDMETHODCALLTYPE SetBackgroundColor(COLORREF)=0
virtual HRESULT STDMETHODCALLTYPE GetMasterVolume(float *)=0
Q_MULTIMEDIA_EXPORT const GUID QMM_MFTranscodeContainerType_MPEG4
Q_MULTIMEDIA_EXPORT const GUID QMM_KSCATEGORY_VIDEO_CAMERA
Q_MULTIMEDIA_EXPORT const GUID QMM_MFTranscodeContainerType_WAVE
virtual HRESULT STDMETHODCALLTYPE SetFilteringValue(DWORD, DXVA2_Fixed32 *)=0
Q_MULTIMEDIA_EXPORT const GUID QMM_MFTranscodeContainerType_ASF
Q_MULTIMEDIA_EXPORT const GUID QMM_MR_POLICY_VOLUME_SERVICE
Q_MULTIMEDIA_EXPORT const GUID QMM_MFTranscodeContainerType_MP3
virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorMode(LPGUID)=0
Q_MULTIMEDIA_EXPORT const GUID QMM_MF_SD_LANGUAGE
Q_MULTIMEDIA_EXPORT const GUID QMM_MFTranscodeContainerType_ADTS
DEFINE_GUID(IID_IMFVideoProcessor, 0x6AB0000C, 0xFECE, 0x4d1f, 0xA2, 0xAC, 0xA9, 0x57, 0x35, 0x30, 0x65, 0x6E)
virtual HRESULT STDMETHODCALLTYPE GetFilteringValue(DWORD, DXVA2_Fixed32 *)=0
Q_MULTIMEDIA_EXPORT const GUID QMM_MF_SD_STREAM_NAME
Q_MULTIMEDIA_EXPORT const GUID QMM_MFTranscodeContainerType_FLAC
virtual HRESULT STDMETHODCALLTYPE GetBackgroundColor(COLORREF *)=0