Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictorien Le Couviour--Tuffet <victorien@videolan.org>2021-01-22 13:59:20 +0300
committerVictorien Le Couviour--Tuffet <victorien@videolan.org>2021-01-28 17:08:10 +0300
commit549086e4d3024410c6145c89266b37c916808b04 (patch)
tree682b65586b2368d6606e165cd4a87c95a48ed8cf /examples
parent4db73f115e39c6e33f20905d4ba281ab96db16b6 (diff)
Add post-filters threading model
Diffstat (limited to 'examples')
-rw-r--r--examples/dav1dplay.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/dav1dplay.c b/examples/dav1dplay.c
index d6bb262..a7eca93 100644
--- a/examples/dav1dplay.c
+++ b/examples/dav1dplay.c
@@ -95,6 +95,7 @@ static void dp_settings_print_usage(const char *const app,
" --untimed/-u: ignore PTS, render as fast as possible\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"
" --highquality: enable high quality rendering\n"
" --zerocopy/-z: enable zero copy upload path\n"
" --gpugrain/-g: enable GPU grain synthesis\n"
@@ -127,6 +128,7 @@ static void dp_rd_ctx_parse_args(Dav1dPlayRenderContext *rd_ctx,
enum {
ARG_FRAME_THREADS = 256,
ARG_TILE_THREADS,
+ ARG_POSTFILTER_THREADS,
ARG_HIGH_QUALITY,
};
@@ -137,6 +139,7 @@ static void dp_rd_ctx_parse_args(Dav1dPlayRenderContext *rd_ctx,
{ "untimed", 0, NULL, 'u' },
{ "framethreads", 1, NULL, ARG_FRAME_THREADS },
{ "tilethreads", 1, NULL, ARG_TILE_THREADS },
+ { "pfthreads", 1, NULL, ARG_POSTFILTER_THREADS },
{ "highquality", 0, NULL, ARG_HIGH_QUALITY },
{ "zerocopy", 0, NULL, 'z' },
{ "gpugrain", 0, NULL, 'g' },
@@ -175,6 +178,10 @@ static void dp_rd_ctx_parse_args(Dav1dPlayRenderContext *rd_ctx,
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;
default:
dp_settings_print_usage(argv[0], NULL);
}