Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
4
#
include
"qffmpegvideosink_p.h"
5
6
#
include
<
private
/
qvideoframe_p
.
h
>
7
8
QT_BEGIN_NAMESPACE
9
10
void
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
22
QT_END_NAMESPACE
23
24
#
include
"moc_qffmpegvideosink_p.cpp"
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtmultimedia
src
plugins
multimedia
ffmpeg
qffmpegvideosink.cpp
Generated on
for Qt by
1.18.0