Revision control
Copy as Markdown
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QFFMPEGVIDEORENDERER_P_H
#define QFFMPEGVIDEORENDERER_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//
#include <QtFFmpegMediaPluginImpl/private/qffmpegrenderer_p.h>
#include <QtMultimedia/private/qvideotransformation_p.h>
#include <QtCore/qpointer.h>
QT_BEGIN_NAMESPACE
class QVideoSink;
namespace QFFmpeg {
class VideoRenderer : public Renderer
{
Q_OBJECT
public:
VideoRenderer(const PlaybackEngineObjectID &id, const TimeController &tc, QVideoSink *sink,
const VideoTransformation &transform);
void setOutput(QVideoSink *sink, bool cleanPrevSink = false);
protected:
RenderingResult renderInternal(Frame frame) override;
private:
QPointer<QVideoSink> m_sink;
VideoTransformation m_transform;
};
} // namespace QFFmpeg
QT_END_NAMESPACE
#endif // QFFMPEGVIDEORENDERER_P_H