summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/create_cli.cc5
-rw-r--r--src/lib/create_cli.h1
-rw-r--r--src/tools/dcpomatic_create.cc1
3 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/create_cli.cc b/src/lib/create_cli.cc
index 94e984fcf..e1c5f1233 100644
--- a/src/lib/create_cli.cc
+++ b/src/lib/create_cli.cc
@@ -47,6 +47,7 @@ string CreateCLI::_help =
" --no-use-isdcf-name do not use an ISDCF name; use the specified name unmodified\n"
" --no-sign do not sign the DCP\n"
" --config <dir> directory containing config.xml and cinemas.xml\n"
+ " --fourk make a 4K DCP rather than a 2K one\n"
" -o, --output <dir> output directory\n"
" --threed make a 3D DCP\n"
" --left-eye next piece of content is for the left eye\n"
@@ -82,6 +83,7 @@ CreateCLI::CreateCLI (int argc, char* argv[])
, standard (dcp::SMPTE)
, no_use_isdcf_name (false)
, no_sign (false)
+ , fourk (false)
{
string dcp_content_type_string = "TST";
string content_ratio_string;
@@ -122,6 +124,9 @@ CreateCLI::CreateCLI (int argc, char* argv[])
} else if (a == "--right-eye") {
next_frame_type = VIDEO_FRAME_TYPE_3D_RIGHT;
claimed = true;
+ } else if (a == "--fourk") {
+ fourk = true;
+ claimed = true;
}
argument_option(i, argc, argv, "-n", "--name", &claimed, &error, &name);
diff --git a/src/lib/create_cli.h b/src/lib/create_cli.h
index 1f1cb3cc4..d0c81590c 100644
--- a/src/lib/create_cli.h
+++ b/src/lib/create_cli.h
@@ -54,6 +54,7 @@ public:
boost::optional<boost::filesystem::path> output_dir;
boost::optional<std::string> error;
std::vector<Content> content;
+ bool fourk;
private:
static std::string _help;
diff --git a/src/tools/dcpomatic_create.cc b/src/tools/dcpomatic_create.cc
index 1dfabd296..6d36735e1 100644
--- a/src/tools/dcpomatic_create.cc
+++ b/src/tools/dcpomatic_create.cc
@@ -100,6 +100,7 @@ main (int argc, char* argv[])
film->set_signed (!cc.no_sign);
film->set_encrypted (cc.encrypt);
film->set_three_d (cc.threed);
+ film->set_resolution (cc.fourk ? RESOLUTION_4K : RESOLUTION_2K);
BOOST_FOREACH (CreateCLI::Content i, cc.content) {
boost::filesystem::path const can = boost::filesystem::canonical (i.path);