Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
mfvideorenderercontrol_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 MFVIDEORENDERERCONTROL_H
5#define MFVIDEORENDERERCONTROL_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 <qobject.h>
19#include <qpointer.h>
20#include <qrect.h>
21#include <mfapi.h>
22#include <mfidl.h>
23
26class QVideoSink;
27
29{
31public:
34
35 QVideoSink *sink() const;
36 void setSink(QVideoSink *surface);
37
38 void setCropRect(QRect cropRect);
39
40 IMFActivate* createActivate();
41 void releaseActivate();
42
43protected:
44 void customEvent(QEvent *event) override;
45
46private Q_SLOTS:
47 void present();
48
49private:
50 void clear();
51
53 IMFActivate *m_currentActivate = nullptr;
54 IMFSampleGrabberSinkCallback *m_callback = nullptr;
55
56 EVRCustomPresenterActivate *m_presenterActivate = nullptr;
57};
58
60
61#endif
void setSink(QVideoSink *surface)
void customEvent(QEvent *event) override
This event handler can be reimplemented in a subclass to receive custom events.
\inmodule QtCore
Definition qcoreevent.h:45
\inmodule QtCore
Definition qobject.h:90
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:311
\inmodule QtCore
Definition qpointer.h:18
\inmodule QtCore\reentrant
Definition qrect.h:30
The QVideoSink class represents a generic sink for video data.
Definition qvideosink.h:22
Combined button and popup list for selecting options.
struct _cl_event * event
#define Q_OBJECT
#define Q_SLOTS