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
qffmpegvideosink.cpp
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
5
6#include <private/qvideoframe_p.h>
7
9
10void QFFmpegVideoSink::onVideoFrameChanged(const QVideoFrame &frame)
11{
12 auto *buffer = QVideoFramePrivate::hwBuffer(frame);
13 if (!buffer)
14 return;
15
16 withRhi([&](QRhi *rhi) {
17 if (rhi)
18 buffer->initTextureConverter(*rhi);
19 });
20}
21
22QT_END_NAMESPACE
23
24#include "moc_qffmpegvideosink_p.cpp"
Combined button and popup list for selecting options.