@@ -31,6 +31,7 @@ static struct option long_options[] = {
3131 { "no-vsync" , no_argument , 0 , 'n' },
3232 { "no-hdr" , no_argument , 0 , 'r' },
3333 { "no-powerstate" , no_argument , 0 , 's' },
34+ { "lut-table" , required_argument , 0 , 't' },
3435 { "backend" , required_argument , 0 , 'b' },
3536 { "ui-backend" , required_argument , 0 , 'u' },
3637 { "quirks" , required_argument , 0 , 'q' },
@@ -62,6 +63,7 @@ static void print_usage()
6263 printf (" -n, --no-vsync Disable vsync (may increase framerate at the cost of tearing/artifacts)\n" );
6364 printf (" -r, --no-hdr Disable automatic HDR mode switching\n" );
6465 printf (" -s, --no-powerstate Disable automatic powerstate switching\n" );
66+ printf (" -t, --lut-table LUT table file\n" );
6567 printf (" -q, --quirks=QUIRKS Enable certain handling for per-device quirks\n" );
6668 printf (" -c, --config=PATH Absolute path for configfile to load settings. Giving additional runtime arguments will overwrite loaded ones.\n" );
6769 printf (" -d, --dump-frames Dump raw video frames to /tmp/.\n" );
@@ -76,7 +78,7 @@ static int parse_options(int argc, char* argv[])
7678 int opt , longindex ;
7779 int ret ;
7880
79- while ((opt = getopt_long (argc , argv , "x:y:a:p:f:b:u:q:c:lvnhdVGrs" , long_options , & longindex )) != -1 ) {
81+ while ((opt = getopt_long (argc , argv , "x:y:a:p:f:b:u:q:c:t: lvnhdVGrs" , long_options , & longindex )) != -1 ) {
8082 switch (opt ) {
8183 case 'x' :
8284 settings .width = atoi (optarg );
@@ -129,6 +131,10 @@ static int parse_options(int argc, char* argv[])
129131 case 'q' :
130132 settings .quirks = atoi (optarg );
131133 break ;
134+ case 't' :
135+ free (settings .lut_table );
136+ settings .lut_table = strdup (optarg );
137+ break ;
132138 case 'c' :
133139 DBG ("Loading config file %s..." , optarg );
134140 if ((ret = settings_load_file (& settings , optarg )) != 0 ) {
0 commit comments