export: made progress on headless export

Still incomplete and unusable, but less so than before.
This commit is contained in:
itsmattkc
2020-06-17 18:06:50 +10:00
parent c3c26a8e24
commit a818e17c55
14 changed files with 337 additions and 88 deletions
+22
View File
@@ -100,4 +100,26 @@ QMatrix4x4 ExportParams::GenerateMatrix(ExportParams::VideoScalingMethod method,
return preview_matrix;
}
void ExportParams::Save(QXmlStreamWriter *writer) const
{
writer->writeStartElement(QStringLiteral("export"));
writer->writeTextElement(QStringLiteral("encoder"), encoder_id_);
writer->writeTextElement(QStringLiteral("vscale"), QString::number(video_scaling_method_));
writer->writeTextElement(QStringLiteral("range"), QString::number(has_custom_range_));
writer->writeTextElement(QStringLiteral("customrangein"), custom_range_.in().toString());
writer->writeTextElement(QStringLiteral("customrangeout"), custom_range_.out().toString());
// FIXME: Change this when color chains are implemented
writer->writeTextElement(QStringLiteral("color"), color_transform_.output());
EncodingParams::Save(writer);
writer->writeEndElement(); // export
}
OLIVE_NAMESPACE_EXIT