X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcreate_cli.h;h=782aaf97478d10e01063c0373229657af1fd0583;hb=37b29fdf9028e6848470a19d189697fc58278990;hp=9cd7905368a7bdb66092af9470845a6c8372da7a;hpb=5f206d32ff60148ab72b35d5823f56bdbb7f50bf;p=dcpomatic.git diff --git a/src/lib/create_cli.h b/src/lib/create_cli.h index 9cd790536..782aaf974 100644 --- a/src/lib/create_cli.h +++ b/src/lib/create_cli.h @@ -19,7 +19,7 @@ */ -#include "types.h" +#include "video_frame_type.h" #include #include #include @@ -27,8 +27,11 @@ class DCPContentType; +class Film; class Ratio; +struct create_cli_test; + class CreateCLI { @@ -39,26 +42,37 @@ public: boost::filesystem::path path; VideoFrameType frame_type; boost::optional channel; + boost::optional gain; + boost::optional kdm; + boost::optional cpl; }; bool version; - std::string name; - boost::optional template_name; - bool encrypt; - bool threed; - DCPContentType const * dcp_content_type; boost::optional dcp_frame_rate; - Ratio const * container_ratio; - int still_length; - dcp::Standard standard; - bool no_use_isdcf_name; + boost::optional still_length; boost::optional config_dir; boost::optional output_dir; boost::optional error; std::vector content; - bool fourk; - boost::optional j2k_bandwidth; + + std::shared_ptr make_film() const; private: + friend struct ::create_cli_test; + + boost::optional _template_name; + std::string _name; + Ratio const* _container_ratio = nullptr; + bool _no_encrypt = false; + bool _encrypt = false; + bool _twod = false; + bool _threed = false; + DCPContentType const* _dcp_content_type = nullptr; + boost::optional _standard; + bool _no_use_isdcf_name = false; + bool _twok = false; + bool _fourk = false; + boost::optional _j2k_bandwidth; + static std::string _help; };