/** @return index of colour LUT to use when converting RGB to XYZ.
* 0: sRGB
* 1: Rec 709
- * 2: DC28
*/
int colour_lut_index () const {
return _colour_lut_index;
* (see colour_lut_index ())
*/
int _colour_lut_index;
- /** bandwidth for J2K files in Mb/s */
+ /** bandwidth for J2K files in bits per second */
int _j2k_bandwidth;
/** J2K encoding servers to use */
{
return !(a == b);
}
+
+string
+colour_lut_index_to_name (int index)
+{
+ switch (index) {
+ case 0:
+ return "sRGB";
+ case 1:
+ return "Rec 709";
+ }
+
+ assert (false);
+ return "";
+}
+
+
+
};
extern std::string crop_string (Position, Size);
-
extern int dcp_audio_sample_rate (int);
+extern std::string colour_lut_index_to_name (int index);
#endif
#include "scaler.h"
#include "version.h"
#include "cross.h"
+#include "config.h"
using namespace std;
using namespace boost;
<< " -v, --version show DVD-o-matic version\n"
<< " -h, --help show this help\n"
<< " -d, --deps list DVD-o-matic dependency details and quit\n"
+ << " -c, --config list configuration settings that affect output and quit\n"
<< " -t, --test run in test mode (repeatable UUID generation, timestamps etc.)\n"
<< " -n, --no-progress do not print progress to stdout\n"
<< "\n"
{ "version", no_argument, 0, 'v'},
{ "help", no_argument, 0, 'h'},
{ "deps", no_argument, 0, 'd'},
+ { "config", no_argument, 0, 'c'},
{ "test", no_argument, 0, 't'},
{ "no-progress", no_argument, 0, 'n'},
{ 0, 0, 0, 0 }
};
- int c = getopt_long (argc, argv, "vhdtn", long_options, &option_index);
+ int c = getopt_long (argc, argv, "vhdctn", long_options, &option_index);
if (c == -1) {
break;
case 'n':
progress = false;
break;
+ case 'c':
+ cout << "Colour LUT " << colour_lut_index_to_name (Config::instance()->colour_lut_index()) << "; "
+ << "J2K bandwidth " << Config::instance()->j2k_bandwidth() << "; ";
+#ifdef DVDOMATIC_DEBUG
+ cout << "built in debug mode\n";
+#else
+ cout << "built in optimised mode\n";
+#endif
+ exit (EXIT_SUCCESS);
}
}
add_label_to_sizer (table, this, "Colour look-up table");
_colour_lut = new wxComboBox (this, wxID_ANY);
- _colour_lut->Append (wxT ("sRGB"));
- _colour_lut->Append (wxT ("Rec 709"));
+ for (int i = 0; i < 2; ++i) {
+ _colour_lut->Append (std_to_wx (colour_lut_index_to_name (i)));
+ }
_colour_lut->SetSelection (0);
table->Add (_colour_lut, 1, wxEXPAND);
table->AddSpacer (0);
conf.env.append_value('CXXFLAGS', ['-D__STDC_CONSTANT_MACROS', '-msse', '-mfpmath=sse', '-ffast-math', '-fno-strict-aliasing', '-Wall', '-Wno-attributes'])
conf.env.append_value('CXXFLAGS', ['-DDVDOMATIC_VERSION="%s"' % VERSION])
+ # Turn off player for now
+ conf.options.disable_player = True
+
if conf.options.target_windows:
conf.env.append_value('CXXFLAGS', ['-DDVDOMATIC_WINDOWS', '-DWIN32_LEAN_AND_MEAN'])
conf.options.disable_player = True
conf.env.append_value('CXXFLAGS', '-DDVDOMATIC_DISABLE_PLAYER')
if conf.options.enable_debug:
- conf.env.append_value('CXXFLAGS', '-g')
+ conf.env.append_value('CXXFLAGS', ['-g', '-DDVDOMATIC_DEBUG'])
else:
conf.env.append_value('CXXFLAGS', '-O3')