OpenShot Library | libopenshot 0.3.3
Loading...
Searching...
No Matches
RendererBase.h
Go to the documentation of this file.
1
9// Copyright (c) 2008-2019 OpenShot Studios, LLC
10//
11// SPDX-License-Identifier: LGPL-3.0-or-later
12
13#ifndef OPENSHOT_RENDERER_BASE_H
14#define OPENSHOT_RENDERER_BASE_H
15
16#include "Frame.h"
17#include <cstdlib> // for realloc
18#include <memory>
19
20namespace openshot
21{
22 class Frame;
23
31 {
32 public:
33
35 void paint(const std::shared_ptr<openshot::Frame> & frame);
36
38 virtual void OverrideWidget(int64_t qwidget_address) = 0;
39
40 protected:
42 virtual ~RendererBase();
43
44 virtual void render(std::shared_ptr<QImage> image) = 0;
45 };
46
47}
48
49#endif
Header file for Frame class.
This is the base class of all Renderers in libopenshot.
void paint(const std::shared_ptr< openshot::Frame > &frame)
Paint(render) a video Frame.
virtual void render(std::shared_ptr< QImage > image)=0
virtual void OverrideWidget(int64_t qwidget_address)=0
Allow manual override of the QWidget that is used to display.
This namespace is the default namespace for all code in the openshot library.
Definition Compressor.h:29