mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
parent
4990b0d528
commit
cb6672b452
19
src/cfg.c
19
src/cfg.c
|
@ -655,18 +655,32 @@ int kvz_config_parse(kvz_config *cfg, const char *name, const char *value)
|
|||
cfg->cqmfile = strdup(value);
|
||||
else if OPT("tiles-width-split") {
|
||||
int retval = parse_tiles_specification(value, &cfg->tiles_width_count, &cfg->tiles_width_split);
|
||||
|
||||
if (cfg->tiles_width_count > 1 && cfg->tmvp_enable) {
|
||||
cfg->tmvp_enable = false;
|
||||
fprintf(stderr, "Disabling TMVP because tiles are used.\n");
|
||||
}
|
||||
|
||||
if (cfg->wpp) {
|
||||
cfg->wpp = false;
|
||||
fprintf(stderr, "Disabling WPP because tiles were enabled.\n");
|
||||
}
|
||||
|
||||
return retval;
|
||||
}
|
||||
else if OPT("tiles-height-split") {
|
||||
int retval = parse_tiles_specification(value, &cfg->tiles_height_count, &cfg->tiles_height_split);
|
||||
|
||||
if (cfg->tiles_height_count > 1 && cfg->tmvp_enable) {
|
||||
cfg->tmvp_enable = false;
|
||||
fprintf(stderr, "Disabling TMVP because tiles are used.\n");
|
||||
}
|
||||
|
||||
if (cfg->wpp) {
|
||||
cfg->wpp = false;
|
||||
fprintf(stderr, "Disabling WPP because tiles were enabled.\n");
|
||||
}
|
||||
|
||||
return retval;
|
||||
}
|
||||
else if OPT("tiles")
|
||||
|
@ -699,6 +713,11 @@ int kvz_config_parse(kvz_config *cfg, const char *name, const char *value)
|
|||
fprintf(stderr, "Disabling TMVP because tiles are used.\n");
|
||||
}
|
||||
|
||||
if (cfg->wpp) {
|
||||
cfg->wpp = false;
|
||||
fprintf(stderr, "Disabling WPP because tiles were enabled.\n");
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
else if OPT("wpp")
|
||||
|
|
|
@ -445,7 +445,9 @@ void print_help(void)
|
|||
" in which case it produces rows of uniform height.\n"
|
||||
"\n"
|
||||
" Wpp:\n"
|
||||
" --wpp : Enable wavefront parallel processing\n"
|
||||
" --wpp, --no-wpp : Wavefront parallel processing [enabled]\n"
|
||||
" Enabling tiles automatically disabled WPP. To enable\n"
|
||||
" WPP with tiles, re-enable it after enabling tiles.\n"
|
||||
" --owf <integer>|auto : Number of parallel frames to process. 0 to disable.\n"
|
||||
"\n"
|
||||
/*" Slices:\n"
|
||||
|
|
Loading…
Reference in a new issue