OpenShot Library | libopenshot  0.3.3
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 
20 namespace 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:
41  RendererBase();
42  virtual ~RendererBase();
43 
44  virtual void render(std::shared_ptr<QImage> image) = 0;
45  };
46 
47 }
48 
49 #endif
openshot::RendererBase::RendererBase
RendererBase()
Definition: RendererBase.cpp:16
openshot
This namespace is the default namespace for all code in the openshot library.
Definition: Compressor.h:28
openshot::RendererBase::paint
void paint(const std::shared_ptr< openshot::Frame > &frame)
Paint(render) a video Frame.
Definition: RendererBase.cpp:24
Frame.h
Header file for Frame class.
openshot::RendererBase::~RendererBase
virtual ~RendererBase()
Definition: RendererBase.cpp:20
openshot::RendererBase
This is the base class of all Renderers in libopenshot.
Definition: RendererBase.h:30
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.