Loading...
Searching...
No Matches
RendererBase.h
Go to the documentation of this file.
// Copyright (c) 2008-2019 OpenShot Studios, LLC
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef OPENSHOT_RENDERER_BASE_H
#define OPENSHOT_RENDERER_BASE_H
#include "Frame.h"
#include <cstdlib> // for realloc
#include <memory>
namespace openshot
{
class Frame;
class RendererBase
{
public:
void paint(const std::shared_ptr<openshot::Frame> & frame);
virtual void OverrideWidget(int64_t qwidget_address) = 0;
protected:
RendererBase();
virtual ~RendererBase();
virtual void render(std::shared_ptr<QImage> image) = 0;
};
}
#endif
Frame.h
Header file for Frame class.
openshot::RendererBase
This is the base class of all Renderers in libopenshot.
Definition RendererBase.h:31
openshot::RendererBase::paint
void paint(const std::shared_ptr< openshot::Frame > &frame)
Paint(render) a video Frame.
Definition RendererBase.cpp:24
openshot::RendererBase::~RendererBase
virtual ~RendererBase()
Definition RendererBase.cpp:20
openshot::RendererBase::RendererBase
RendererBase()
Definition RendererBase.cpp:16
openshot::RendererBase::render
virtual void render(std::shared_ptr< QImage > image)=0
openshot::RendererBase::OverrideWidget
virtual void OverrideWidget(int64_t qwidget_address)=0
Allow manual override of the QWidget that is used to display.
openshot
This namespace is the default namespace for all code in the openshot library.
Definition Compressor.h:29