CuteLogger
Fast and simple logging solution for Qt based applications
videowaveformscopewidget.h
1 /*
2  * Copyright (c) 2015-2017 Meltytech, LLC
3  * Author: Brian Matherly <code@brianmatherly.com>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef VIDEOWAVEFORMSCOPEWIDGET_H
20 #define VIDEOWAVEFORMSCOPEWIDGET_H
21 
22 #include "scopewidget.h"
23 #include <QMutex>
24 #include <QImage>
25 
26 class VideoWaveformScopeWidget Q_DECL_FINAL : public ScopeWidget
27 {
28  Q_OBJECT
29 
30 public:
31  explicit VideoWaveformScopeWidget();
32  QString getTitle() Q_DECL_OVERRIDE;
33 
34 private:
35  void refreshScope(const QSize& size, bool full) Q_DECL_OVERRIDE;
36  void paintEvent(QPaintEvent*) Q_DECL_OVERRIDE;
37  void mouseMoveEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
38 
39  SharedFrame m_frame;
40  QImage m_renderImg;
41 
42  // Variables accessed from multiple threads (mutex protected)
43  QMutex m_mutex;
44  QImage m_displayImg;
45 };
46 
47 #endif // VIDEOWAVEFORMSCOPEWIDGET_H
The ScopeWidget provides a common interface for all scopes in Shotcut.
Definition: scopewidget.h:57
The SharedFrame provides thread safe access to Mlt::Frame data.
Definition: sharedframe.h:48
virtual QString getTitle()=0