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
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
5
7
12
14{
15 if (m_rhi == rhi)
16 return;
17 m_rhi = rhi;
18 textureConverter = QFFmpeg::TextureConverter(rhi);
19 emit rhiChanged(rhi);
20}
21
23{
24 auto *buffer = dynamic_cast<QFFmpegVideoBuffer *>(frame.videoBuffer());
25 if (buffer)
26 buffer->setTextureConverter(textureConverter);
27
29}
30
32
33#include "moc_qffmpegvideosink_p.cpp"
void setTextureConverter(const QFFmpeg::TextureConverter &converter)
QFFmpegVideoSink(QVideoSink *sink)
void setRhi(QRhi *rhi) override
void setVideoFrame(const QVideoFrame &frame) override
void rhiChanged(QRhi *rhi)
virtual void setVideoFrame(const QVideoFrame &frame)
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
Definition qrhi.h:1804
The QVideoFrame class represents a frame of video data.
Definition qvideoframe.h:27
The QVideoSink class represents a generic sink for video data.
Definition qvideosink.h:22
Combined button and popup list for selecting options.
GLenum GLuint buffer
GLsizei GLenum GLboolean sink
#define emit
QFrame frame
[0]