added UI for VBR and noise object

This commit is contained in:
itsmattkc
2018-09-18 21:56:38 +10:00
parent a267693213
commit 152a2662ec
6 changed files with 48 additions and 3 deletions
+6
View File
@@ -515,3 +515,9 @@ void ExportDialog::on_renderCancel_clicked() {
et->continueEncode = false;
cancelled = true;
}
void ExportDialog::on_vcodecCombobox_currentIndexChanged(int index) {
bool vbrEnabled = (format_vcodecs.size() > 0 && format_vcodecs.at(index) == AV_CODEC_ID_H264);
ui->compressionTypeCombobox->setEnabled(vbrEnabled);
if (!vbrEnabled) ui->compressionTypeCombobox->setCurrentIndex(0);
}
+2
View File
@@ -31,6 +31,8 @@ private slots:
void render_thread_finished();
void on_vcodecCombobox_currentIndexChanged(int index);
private:
Ui::ExportDialog *ui;
+28 -2
View File
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>358</width>
<height>442</height>
<height>470</height>
</rect>
</property>
<property name="windowTitle">
@@ -123,7 +123,7 @@
<item row="5" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Bitrate (Mbps/CBR):</string>
<string>Bitrate (Mbps):</string>
</property>
</widget>
</item>
@@ -137,6 +137,32 @@
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_11">
<property name="text">
<string>Compression Type:</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QComboBox" name="compressionTypeCombobox">
<item>
<property name="text">
<string>Constant Bitrate</string>
</property>
</item>
<item>
<property name="text">
<string>Variable Bitrate (One-Pass)</string>
</property>
</item>
<item>
<property name="text">
<string>Variable Bitrate (Two-Pass)</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>