added settings for bit depth

This commit is contained in:
itsmattkc
2019-03-20 16:05:10 +11:00
parent 9b2b7bc949
commit 9c920cfcc3
5 changed files with 122 additions and 2 deletions
+21
View File
@@ -48,6 +48,7 @@
#include "global/config.h"
#include "global/path.h"
#include "rendering/audio.h"
#include "rendering/bitdepths.h"
#include "panels/panels.h"
#include "ui/mainwindow.h"
@@ -942,6 +943,26 @@ void PreferencesDialog::setup_ui() {
row++;
// COLOR MANAGEMENT -> Playback Bit Depth
QComboBox* playback_bit_depth = new QComboBox();
for (int i=0;i<olive::rendering::bit_depths.size();i++) {
playback_bit_depth->addItem(olive::rendering::bit_depths.at(i).name, i);
}
color_management_layout->addWidget(new QLabel("Playback Bit Depth:"), row, 0);
color_management_layout->addWidget(playback_bit_depth, row, 1);
row++;
// COLOR MANAGEMENT -> Rendering Bit Depth
QComboBox* rendering_bit_depth = new QComboBox();
for (int i=0;i<olive::rendering::bit_depths.size();i++) {
rendering_bit_depth->addItem(olive::rendering::bit_depths.at(i).name, i);
}
color_management_layout->addWidget(new QLabel("Rendering Bit Depth:"), row, 0);
color_management_layout->addWidget(rendering_bit_depth, row, 1);
row++;
#ifdef NO_OCIO
enable_color_management->setEnabled(false);
ocio_config_file->setEnabled(false);