Introduce first --mp-xxx options.

This commit is contained in:
Markus F.X.J. Oberhumer 2007-12-20 06:39:31 +01:00
parent d4a6a5216d
commit be8d93563a
2 changed files with 21 additions and 0 deletions

View File

@ -633,6 +633,17 @@ static int do_option(int optc, const char *arg)
opt->debug.disable_random_id = true;
break;
// mp (meta)
case 501:
getoptvar(&opt->mp_compress_task, 1, 999999, arg);
break;
case 502:
opt->mp_query_format = true;
break;
case 503:
opt->mp_query_num_tasks = true;
break;
// misc
case 512:
opt->console = CON_FILE;
@ -1036,6 +1047,11 @@ static const struct mfx_option longopts[] =
{"8-bit", 0x10, 0, 672},
{"8mb-ram", 0x10, 0, 673},
// mp (meta) options
{"mp-compress-task", 0x31, 0, 501},
{"mp-query-format", 0x10, 0, 502},
{"mp-query-num-tasks", 0x10, 0, 503},
{ NULL, 0, NULL, 0 }
};

View File

@ -45,6 +45,11 @@ enum {
struct options_t {
int cmd;
// mp (meta) options
int mp_compress_task;
bool mp_query_format;
bool mp_query_num_tasks;
// compression options
int method;
bool method_lzma_seen;