Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
testvideosink_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef TESTVIDEOSINK_H
5#define TESTVIDEOSINK_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 <qvideosink.h>
19#include <qvideoframe.h>
20#include <qelapsedtimer.h>
21#include <qsignalspy.h>
22#include <chrono>
23
25
26/*
27 This is a simple video surface which records all presented frames.
28*/
30{
32public:
38
44
46
47private Q_SLOTS:
49 {
51
52 if (m_storeFrames)
54
55 if (frame.isValid())
57
59 }
60
63
64public:
66 int m_totalFrames = 0; // used instead of the list when frames are not stored
70
71private:
72 bool m_storeFrames;
73};
74
75QT_END_NAMESPACE
76
77#endif // TESTVIDEOSINK_H
std::vector< TimePoint > m_frameTimes
QElapsedTimer m_elapsedTimer
QList< QVideoFrame > m_frameList