Loading...
Searching...
No Matches
VideoRenderer.cpp
Go to the documentation of this file.
// Copyright (c) 2008-2019 OpenShot Studios, LLC
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#include "VideoRenderer.h"
VideoRenderer::VideoRenderer(QObject *parent)
: QObject(parent)
{
}
VideoRenderer::~VideoRenderer()
{
}
void VideoRenderer::OverrideWidget(int64_t qwidget_address)
{
// re-cast QWidget pointer (long) as an actual QWidget
override_widget = reinterpret_cast<QWidget*>(qwidget_address);
}
void VideoRenderer::render(std::shared_ptr<QImage> image)
{
if (image)
emit present(*image);
}
VideoRenderer.h
Header file for Video Renderer class.
VideoRenderer::~VideoRenderer
~VideoRenderer()
Definition VideoRenderer.cpp:21
VideoRenderer::present
void present(const QImage &image)
VideoRenderer::render
void render(std::shared_ptr< QImage > image)
Definition VideoRenderer.cpp:33
VideoRenderer::VideoRenderer
VideoRenderer(QObject *parent=0)
Definition VideoRenderer.cpp:16
VideoRenderer::OverrideWidget
void OverrideWidget(int64_t qwidget_address)
Override QWidget which needs to be painted.
Definition VideoRenderer.cpp:26