summaryrefslogtreecommitdiff
path: root/libswscale/options.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-07-12 12:31:14 +0200
committerAnton Khirnov <anton@khirnov.net>2021-09-06 09:17:53 +0200
commitd6fdc78e9164c8e6bf7bfc7766932c467b874aa2 (patch)
treedd3ba9ef975f1838ede89d9c693f86d079878600 /libswscale/options.c
parent22c6fbc8475f99b67ded526ace496cdd5362074b (diff)
sws: implement slice threading
Diffstat (limited to 'libswscale/options.c')
-rw-r--r--libswscale/options.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libswscale/options.c b/libswscale/options.c
index 7eb2752543..4b71a23e37 100644
--- a/libswscale/options.c
+++ b/libswscale/options.c
@@ -81,6 +81,9 @@ static const AVOption swscale_options[] = {
{ "uniform_color", "blend onto a uniform color", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_ALPHA_BLEND_UNIFORM},INT_MIN, INT_MAX, VE, "alphablend" },
{ "checkerboard", "blend onto a checkerboard", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_ALPHA_BLEND_CHECKERBOARD},INT_MIN, INT_MAX, VE, "alphablend" },
+ { "threads", "number of threads", OFFSET(nb_threads), AV_OPT_TYPE_INT, {.i64 = 1 }, 0, INT_MAX, VE, "threads" },
+ { "auto", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = 0 }, .flags = VE, "threads" },
+
{ NULL }
};