Add ProRes LT export option (#2834).
[dcpomatic.git] / src / lib / export_config.cc
index 4dfbb902796565df2d49337d62eec8c2ca98fc00..79042e59c21597eedc70aea0c727dcb0fa13ba94 100644 (file)
@@ -65,6 +65,8 @@ ExportConfig::read(cxml::ConstNodePtr node)
                _format = ExportFormat::H264_AAC;
        } else if (format == "prores-4444") {
                _format = ExportFormat::PRORES_4444;
+       } else if (format == "prores-lt") {
+               _format = ExportFormat::PRORES_LT;
        } else {
                _format = ExportFormat::PRORES_HQ;
        }
@@ -89,6 +91,9 @@ ExportConfig::write(xmlpp::Element* element) const
                        /* Write this but we also accept 'prores' for backwards compatibility */
                        name = "prores-hq";
                        break;
+               case ExportFormat::PRORES_LT:
+                       name = "prores-lt";
+                       break;
                case ExportFormat::H264_AAC:
                        name = "h264-aac";
                        break;
@@ -138,4 +143,3 @@ ExportConfig::set_x264_crf(int crf)
 {
        _config->maybe_set(_x264_crf, crf);
 }
-