diff options
author | Victorien Le Couviour--Tuffet <victorien@videolan.org> | 2021-01-22 13:59:20 +0300 |
---|---|---|
committer | Victorien Le Couviour--Tuffet <victorien@videolan.org> | 2021-01-28 17:08:10 +0300 |
commit | 549086e4d3024410c6145c89266b37c916808b04 (patch) | |
tree | 682b65586b2368d6606e165cd4a87c95a48ed8cf /tools | |
parent | 4db73f115e39c6e33f20905d4ba281ab96db16b6 (diff) |
Add post-filters threading model
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dav1d_cli_parse.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/dav1d_cli_parse.c b/tools/dav1d_cli_parse.c index 96f81e0..35d8e17 100644 --- a/tools/dav1d_cli_parse.c +++ b/tools/dav1d_cli_parse.c @@ -51,6 +51,7 @@ enum { ARG_REALTIME_CACHE, ARG_FRAME_THREADS, ARG_TILE_THREADS, + ARG_POSTFILTER_THREADS, ARG_VERIFY, ARG_FILM_GRAIN, ARG_OPPOINT, @@ -73,6 +74,7 @@ static const struct option long_opts[] = { { "realtimecache", 1, NULL, ARG_REALTIME_CACHE }, { "framethreads", 1, NULL, ARG_FRAME_THREADS }, { "tilethreads", 1, NULL, ARG_TILE_THREADS }, + { "pfthreads", 1, NULL, ARG_POSTFILTER_THREADS }, { "verify", 1, NULL, ARG_VERIFY }, { "filmgrain", 1, NULL, ARG_FILM_GRAIN }, { "oppoint", 1, NULL, ARG_OPPOINT }, @@ -117,6 +119,7 @@ static void usage(const char *const app, const char *const reason, ...) { " --version/-v: print version and exit\n" " --framethreads $num: number of frame threads (default: 1)\n" " --tilethreads $num: number of tile threads (default: 1)\n" + " --pfthreads $num: number of postfilter threads (default: 1)\n" " --filmgrain $num: enable film grain application (default: 1, except if muxer is md5)\n" " --oppoint $num: select an operating point of a scalable AV1 bitstream (0 - 31)\n" " --alllayers $num: output all spatial layers of a scalable AV1 bitstream (default: 1)\n" @@ -295,6 +298,10 @@ void parse(const int argc, char *const *const argv, lib_settings->n_tile_threads = parse_unsigned(optarg, ARG_TILE_THREADS, argv[0]); break; + case ARG_POSTFILTER_THREADS: + lib_settings->n_postfilter_threads = + parse_unsigned(optarg, ARG_POSTFILTER_THREADS, argv[0]); + break; case ARG_VERIFY: cli_settings->verify = optarg; break; |