22 #include <QDockWidget> 23 #include <QDomElement> 24 #include <QStandardItemModel> 25 #include <QSortFilterProxyModel> 26 #include <MltProperties.h> 28 class QTreeWidgetItem;
40 class PresetsProxyModel :
public QSortFilterProxyModel
43 bool filterAcceptsRow(
int source_row,
const QModelIndex &source_parent)
const;
46 class EncodeDock :
public QDockWidget
51 explicit EncodeDock(QWidget *parent = 0);
54 void loadPresetFromProperties(Mlt::Properties&);
55 bool isExportInProgress()
const;
58 void captureStateChanged(
bool);
61 void onProducerOpened();
62 void onProfileChanged();
65 void on_presetsTree_clicked(
const QModelIndex &index);
66 void on_presetsTree_activated(
const QModelIndex &index);
68 void on_encodeButton_clicked();
70 void on_streamButton_clicked();
72 void on_addPresetButton_clicked();
74 void on_removePresetButton_clicked();
76 void onFinished(AbstractJob*,
bool isSuccess);
78 void on_stopCaptureButton_clicked();
80 void on_videoRateControlCombo_activated(
int index);
82 void on_audioRateControlCombo_activated(
int index);
84 void on_scanModeCombo_currentIndexChanged(
int index);
86 void on_presetsSearch_textChanged(
const QString &search);
88 void on_resetButton_clicked();
90 void openCaptureFile();
92 void on_formatCombo_currentIndexChanged(
int index);
94 void on_videoBufferDurationChanged();
96 void on_gopSpinner_valueChanged(
int value);
98 void on_fromCombo_currentIndexChanged(
int index);
100 void on_videoCodecCombo_currentIndexChanged(
int index);
104 RateControlAverage = 0,
107 RateControlConstrained
110 Mlt::Properties *m_presets;
111 QScopedPointer<MeltJob> m_immediateJob;
113 Mlt::Properties *m_profiles;
114 PresetsProxyModel m_presetsModel;
115 QString m_outputFilename;
116 bool m_isDefaultSettings;
119 Mlt::Properties* collectProperties(
int realtime);
120 void collectProperties(QDomElement& node,
int realtime);
121 MeltJob* createMeltJob(Mlt::Service* service,
const QString& target,
int realtime,
int pass = 0);
122 void runMelt(
const QString& target,
int realtime = -1);
123 void enqueueMelt(
const QString& target,
int realtime);
124 void encode(
const QString& target);
126 Mlt::Producer* fromProducer()
const;
129 #endif // ENCODEDOCK_H Definition: encodedock.h:35
Definition: addencodepresetdialog.h:24