OpenShot Library | libopenshot  0.3.3
VideoRenderer.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_VIDEO_RENDERER_H
14 #define OPENSHOT_VIDEO_RENDERER_H
15 
16 #include "../RendererBase.h"
17 #include <QtCore/QObject>
18 #include <QtGui/QImage>
19 #include <memory>
20 
21 
22 class QPainter;
23 
24 class VideoRenderer : public QObject, public openshot::RendererBase
25 {
26  Q_OBJECT
27 
28 public:
29  VideoRenderer(QObject *parent = 0);
31 
33  void OverrideWidget(int64_t qwidget_address);
34 
35 signals:
36  void present(const QImage &image);
37 
38 protected:
39  //void render(openshot::OSPixelFormat format, int width, int height, int bytesPerLine, unsigned char *data);
40  void render(std::shared_ptr<QImage> image);
41 
42 private slots:
43 
44 private:
45  QWidget* override_widget;
46 };
47 
48 #endif //OPENSHOT_VIDEO_RENDERER_H
VideoRenderer::VideoRenderer
VideoRenderer(QObject *parent=0)
Definition: VideoRenderer.cpp:16
VideoRenderer::render
void render(std::shared_ptr< QImage > image)
Definition: VideoRenderer.cpp:33
VideoRenderer::present
void present(const QImage &image)
VideoRenderer::~VideoRenderer
~VideoRenderer()
Definition: VideoRenderer.cpp:21
VideoRenderer
Definition: VideoRenderer.h:24
VideoRenderer::OverrideWidget
void OverrideWidget(int64_t qwidget_address)
Override QWidget which needs to be painted.
Definition: VideoRenderer.cpp:26
openshot::RendererBase
This is the base class of all Renderers in libopenshot.
Definition: RendererBase.h:30