Add basic nclc tag support

Sets nclc tags based on the selected output color space.

Also adds a Rec.709 OETF to the config
This commit is contained in:
Thomas Wilshaw
2022-07-26 20:19:23 +01:00
parent d7748c4ace
commit 9fa1ce00e5
6 changed files with 4138 additions and 16 deletions
+1 -11
View File
@@ -54,16 +54,6 @@ void ExportParams::set_video_scaling_method(const ExportParams::VideoScalingMeth
video_scaling_method_ = video_scaling_method;
}
const ColorTransform &ExportParams::color_transform() const
{
return color_transform_;
}
void ExportParams::set_color_transform(const ColorTransform &color_transform)
{
color_transform_ = color_transform;
}
QMatrix4x4 ExportParams::GenerateMatrix(ExportParams::VideoScalingMethod method,
int source_width, int source_height,
int dest_width, int dest_height)
@@ -103,7 +93,7 @@ void ExportParams::Save(QXmlStreamWriter *writer) const
writer->writeTextElement(QStringLiteral("customrangeout"), custom_range_.out().toString());
// FIXME: Change this when color chains are implemented
writer->writeTextElement(QStringLiteral("color"), color_transform_.output());
writer->writeTextElement(QStringLiteral("color"), color_transform().output());
EncodingParams::Save(writer);