diff options
author | jbrjake <[email protected]> | 2008-10-19 23:39:52 +0000 |
---|---|---|
committer | jbrjake <[email protected]> | 2008-10-19 23:39:52 +0000 |
commit | d83151d2858999d5ae7b491cf9b282aeb9dfd7b7 (patch) | |
tree | 1e3e8f5bef10d930bd9e71bcf5f0f201cea25c7f /test | |
parent | d235fedfc43b5b736806b4e072c11c803c2804ca (diff) |
Adds a configuration option for whether the COLR atom and h.264 VUI header should signal Bt.601 or Bt.7709 color, instead of just setting it based on whether the source is standard or high definition (which is preserved as default, and made more sensitive to letterboxed HD content).
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1851 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test')
-rw-r--r-- | test/test.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/test/test.c b/test/test.c index dc61c5793..a92be42f5 100644 --- a/test/test.c +++ b/test/test.c @@ -91,6 +91,7 @@ static char * preset_name = 0; static int cfr = 0; static int mp4_optimize = 0; static int ipod_atom = 0; +static int color_matrix = 0; /* Exit cleanly on Ctrl-C */ static volatile int die = 0; @@ -1302,6 +1303,11 @@ static int HandleEvents( hb_handle_t * h ) { job->crf = 1; } + + if( color_matrix ) + { + job->color_matrix = color_matrix; + } if( x264opts != NULL && *x264opts != '\0' ) { @@ -1605,6 +1611,9 @@ static void ShowHelp() " <MOD:PARX:PARY> Takes as optional arguments what number you want\n" " the dimensions to divide cleanly by (default 16)\n" " and the pixel ratio to use (default autodetected)\n" + " -M --color-matrix Set the color space signalled by the output\n" + " <601 or 709> (Bt.601 is mostly for SD content, Bt.709 for HD,\n" + " default: set by resolution)\n" "\n" @@ -1761,6 +1770,7 @@ static int ParseOptions( int argc, char ** argv ) { "preset-list", no_argument, NULL, 'z' }, { "aname", required_argument, NULL, 'A' }, + { "color-matrix",required_argument, NULL, 'M' }, { 0, 0, 0, 0 } }; @@ -1769,7 +1779,7 @@ static int ParseOptions( int argc, char ** argv ) int c; c = getopt_long( argc, argv, - "hv::uC:f:4i:Io:t:Lc:m::a:A:6:s:UFN:e:E:2dD:7895gpOP::w:l:n:b:q:S:B:r:R:Qx:TY:X:Z:z", + "hv::uC:f:4i:Io:t:Lc:m::M:a:A:6:s:UFN:e:E:2dD:7895gpOP::w:l:n:b:q:S:B:r:R:Qx:TY:X:Z:z", long_options, &option_index ); if( c < 0 ) { @@ -2106,7 +2116,12 @@ static int ParseOptions( int argc, char ** argv ) anames = strdup( optarg ); } break; - + case 'M': + if( atoi( optarg ) == 601 ) + color_matrix = 1; + else if( atoi( optarg ) == 709 ) + color_matrix = 2; + break; default: fprintf( stderr, "unknown option (%s)\n", argv[optind] ); return -1; |