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 #include "dialogs/transcodedialog.h"
26 
27 namespace Ui {
28  class AvformatProducerWidget;
29 }
30 
31 class AvformatProducerWidget : public QWidget, public AbstractProducerWidget
32 {
33  Q_OBJECT
34 
35 public:
36  explicit AvformatProducerWidget(QWidget *parent = 0);
37  ~AvformatProducerWidget();
38 
39  // AbstractProducerWidget overrides
40  Mlt::Producer* newProducer(Mlt::Profile&);
41 
42 signals:
43  void producerChanged(Mlt::Producer*);
44  void producerReopened();
45 
46 protected:
47  void keyPressEvent(QKeyEvent *event);
48 
49 private slots:
50  void onFrameDisplayed(const SharedFrame&);
51 
52  void on_resetButton_clicked();
53 
54  void on_videoTrackComboBox_activated(int index);
55 
56  void on_audioTrackComboBox_activated(int index);
57 
58  void on_scanComboBox_activated(int index);
59 
60  void on_fieldOrderComboBox_activated(int index);
61 
62  void on_aspectNumSpinBox_valueChanged(int );
63 
64  void on_aspectDenSpinBox_valueChanged(int );
65 
66  void on_durationSpinBox_editingFinished();
67 
68  void on_speedSpinBox_editingFinished();
69 
70  void on_syncSlider_valueChanged(int value);
71 
72  void on_actionOpenFolder_triggered();
73 
74  void on_menuButton_clicked();
75 
76  void on_actionCopyFullFilePath_triggered();
77 
78  void on_notesTextEdit_textChanged();
79 
80  void on_actionFFmpegInfo_triggered();
81 
82  void on_actionFFmpegIntegrityCheck_triggered();
83 
84  void on_actionFFmpegConvert_triggered();
85 
86 private:
87  Ui::AvformatProducerWidget *ui;
88  int m_defaultDuration;
89  bool m_recalcDuration;
90  bool m_askToConvert;
91 
92  void reopen(Mlt::Producer* p);
93  void recreateProducer();
94  void convert(TranscodeDialog& dialog);
95 };
96 
97 #endif // AVFORMATPRODUCERWIDGET_H
Definition: addencodepresetdialog.h:24
The SharedFrame provides thread safe access to Mlt::Frame data.
Definition: sharedframe.h:48