render: ensure correct yuv range handling

This commit is contained in:
itsmattkc
2022-07-20 23:16:08 -07:00
parent 5ea97f7a64
commit 187568324a
10 changed files with 96 additions and 176 deletions
+4 -1
View File
@@ -36,7 +36,8 @@ namespace olive {
ExportVideoTab::ExportVideoTab(ColorManager* color_manager, QWidget *parent) :
QWidget(parent),
color_manager_(color_manager),
threads_(0)
threads_(0),
yuv_range_(EncodingParams::kYUVDefault)
{
QVBoxLayout* outer_layout = new QVBoxLayout(this);
@@ -211,10 +212,12 @@ void ExportVideoTab::OpenAdvancedDialog()
d.set_threads(threads_);
d.set_pix_fmt(pix_fmt_);
d.set_yuv_range(yuv_range_);
if (d.exec() == QDialog::Accepted) {
threads_ = d.threads();
pix_fmt_ = d.pix_fmt();
yuv_range_ = d.yuv_range();
}
}