2 Copyright (C) 2019-2021 Carl Hetherington <cth@carlh.net>
4 This file is part of DCP-o-matic.
6 DCP-o-matic is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 DCP-o-matic is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
22 #include "video_frame_type.h"
23 #include <dcp/types.h>
24 #include <boost/optional.hpp>
25 #include <boost/filesystem.hpp>
33 struct create_cli_test;
39 CreateCLI (int argc, char* argv[]);
42 boost::filesystem::path path;
43 VideoFrameType frame_type;
44 boost::optional<dcp::Channel> channel;
45 boost::optional<float> gain;
46 boost::optional<boost::filesystem::path> kdm;
47 boost::optional<std::string> cpl;
51 boost::optional<int> dcp_frame_rate;
52 boost::optional<int> still_length;
53 boost::optional<boost::filesystem::path> config_dir;
54 boost::optional<boost::filesystem::path> output_dir;
55 boost::optional<std::string> error;
56 std::vector<Content> content;
58 std::shared_ptr<Film> make_film() const;
61 friend struct ::create_cli_test;
63 boost::optional<std::string> _template_name;
65 Ratio const* _container_ratio = nullptr;
66 bool _encrypt = false;
69 DCPContentType const* _dcp_content_type = nullptr;
70 dcp::Standard _standard = dcp::Standard::SMPTE;
71 bool _no_use_isdcf_name = false;
74 boost::optional<int> _j2k_bandwidth;
76 static std::string _help;