summaryrefslogtreecommitdiff
path: root/src/wx/export_video_file_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-06-12 22:32:30 +0200
committerCarl Hetherington <cth@carlh.net>2022-06-12 22:32:34 +0200
commit1c57df596882f15403ee97d01862f8b76cfb797b (patch)
tree2ba7bf92d0de90cd4469e4b16802fd7394994f33 /src/wx/export_video_file_dialog.cc
parent59209af1e2d73334ff7dfe6c7da465293dc24c0b (diff)
Add Prores 4444 support (#2263).
Diffstat (limited to 'src/wx/export_video_file_dialog.cc')
-rw-r--r--src/wx/export_video_file_dialog.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/wx/export_video_file_dialog.cc b/src/wx/export_video_file_dialog.cc
index 5e5e9c4ff..3cc4b133f 100644
--- a/src/wx/export_video_file_dialog.cc
+++ b/src/wx/export_video_file_dialog.cc
@@ -35,25 +35,29 @@ using std::string;
using boost::bind;
-#define FORMATS 2
+int constexpr FORMATS = 3;
wxString format_names[] = {
- _("MOV / ProRes"),
+ _("MOV / ProRes 4444"),
+ _("MOV / ProRes HQ"),
_("MP4 / H.264"),
};
wxString format_filters[] = {
_("MOV files (*.mov)|*.mov"),
+ _("MOV files (*.mov)|*.mov"),
_("MP4 files (*.mp4)|*.mp4"),
};
wxString format_extensions[] = {
"mov",
+ "mov",
"mp4",
};
ExportFormat formats[] = {
+ ExportFormat::PRORES_4444,
ExportFormat::PRORES_HQ,
ExportFormat::H264_AAC,
};
@@ -165,9 +169,9 @@ ExportVideoFileDialog::format_changed ()
DCPOMATIC_ASSERT (selection >= 0 && selection < FORMATS);
_file->SetWildcard (format_filters[selection]);
_file->SetPath (_initial_name);
- _x264_crf->Enable (selection == 1);
+ _x264_crf->Enable (formats[selection] == ExportFormat::H264_AAC);
for (int i = 0; i < 2; ++i) {
- _x264_crf_label[i]->Enable (selection == 1);
+ _x264_crf_label[i]->Enable(formats[selection] == ExportFormat::H264_AAC);
}
_mixdown->Enable (selection != 2);