CuteLogger
Fast and simple logging solution for Qt based applications
avformatproducerwidget.h
1 /*
2  * Copyright (c) 2012-2017 Meltytech, LLC
3  * Author: Dan Dennedy <dan@dennedy.org>
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 AVFORMATPRODUCERWIDGET_H
20 #define AVFORMATPRODUCERWIDGET_H
21 
22 #include <QWidget>
23 #include "abstractproducerwidget.h"
24 #include "sharedframe.h"
25 
26 namespace Ui {
27  class AvformatProducerWidget;
28 }
29 
30 class AvformatProducerWidget : public QWidget, public AbstractProducerWidget
31 {
32  Q_OBJECT
33 
34 public:
35  explicit AvformatProducerWidget(QWidget *parent = 0);
36  ~AvformatProducerWidget();
37 
38  // AbstractProducerWidget overrides
39  Mlt::Producer* newProducer(Mlt::Profile&);
40 
41 signals:
42  void producerChanged(Mlt::Producer*);
43  void producerReopened();
44 
45 protected:
46  void keyPressEvent(QKeyEvent *event);
47 
48 private slots:
49  void onFrameDisplayed(const SharedFrame&);
50 
51  void on_resetButton_clicked();
52 
53  void on_videoTrackComboBox_activated(int index);
54 
55  void on_audioTrackComboBox_activated(int index);
56 
57  void on_scanComboBox_activated(int index);
58 
59  void on_fieldOrderComboBox_activated(int index);
60 
61  void on_aspectNumSpinBox_valueChanged(int );
62 
63  void on_aspectDenSpinBox_valueChanged(int );
64 
65  void on_durationSpinBox_editingFinished();
66 
67  void on_speedSpinBox_editingFinished();
68 
69  void on_syncSlider_valueChanged(int value);
70 
71  void on_actionOpenFolder_triggered();
72 
73  void on_menuButton_clicked();
74 
75  void on_actionCopyFullFilePath_triggered();
76 
77  void on_notesTextEdit_textChanged();
78 
79  void on_actionFFmpegInfo_triggered();
80 
81  void on_actionFFmpegIntegrityCheck_triggered();
82 
83 private:
84  Ui::AvformatProducerWidget *ui;
85  int m_defaultDuration;
86  bool m_recalcDuration;
87 
88  void reopen(Mlt::Producer* p);
89  void recreateProducer();
90 };
91 
92 #endif // AVFORMATPRODUCERWIDGET_H
Definition: addencodepresetdialog.h:24
The SharedFrame provides thread safe access to Mlt::Frame data.
Definition: sharedframe.h:48