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
evrvideowindowcontrol_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 EVRVIDEOWINDOWCONTROL_H
5#define EVRVIDEOWINDOWCONTROL_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 <d3d9.h>
19#include <dxva2api.h>
20#include <evr9.h>
21#include <evr.h>
22#include <private/qplatformvideosink_p.h>
23#include <private/qwindowsmfdefs_p.h>
24
26
28{
30public:
32 ~EvrVideoWindowControl() override;
33
34 bool setEvr(IUnknown *evr);
35
36 void setWinId(WId id) override;
37
38 void setDisplayRect(const QRect &rect) override;
39
40 void setFullScreen(bool fullScreen) override;
41
43
44 void setBrightness(float brightness) override;
45 void setContrast(float contrast) override;
46 void setHue(float hue) override;
47 void setSaturation(float saturation) override;
48
49 void applyImageControls();
50
51private:
52 void clear();
53 DXVA2_Fixed32 scaleProcAmpValue(DWORD prop, float value) const;
54
55 WId m_windowId;
56 COLORREF m_windowColor;
57 DWORD m_dirtyValues;
58 Qt::AspectRatioMode m_aspectRatioMode;
59 QRect m_displayRect;
60 float m_brightness;
61 float m_contrast;
62 float m_hue;
63 float m_saturation;
64 bool m_fullScreen;
65
66 IMFVideoDisplayControl *m_displayControl;
67 IMFVideoProcessor *m_processor;
68};
69
71
72#endif
void setWinId(WId id) override
void setDisplayRect(const QRect &rect) override
void setHue(float hue) override
void setContrast(float contrast) override
void setFullScreen(bool fullScreen) override
EvrVideoWindowControl(QVideoSink *parent=0)
void setSaturation(float saturation) override
void setBrightness(float brightness) override
void setAspectRatioMode(Qt::AspectRatioMode mode) override
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
\inmodule QtCore\reentrant
Definition qrect.h:30
The QVideoSink class represents a generic sink for video data.
Definition qvideosink.h:22
rect
[4]
Combined button and popup list for selecting options.
AspectRatioMode
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLenum mode
#define Q_OBJECT