Skip to content

Commit 5ca5bbd

Browse files
committed
swscale/options: add -sws_dither none alias
While this one was technically supported on account of the generic options code allowing "none" as a valid alias for 0, not having it listed here meant it never showed up in e.g. the -h output, and is also inconsistent with other places in the code that generally add an explicit alias with appropriate documentation. Reduces user confusion at negligible cost. Fixes: #9192 Signed-off-by: Niklas Haas <[email protected]> Sponsored-by: Sovereign Tech Fund
1 parent 253b897 commit 5ca5bbd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libswscale/options.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ static const AVOption swscale_options[] = {
7171

7272
{ "sws_dither", "set dithering algorithm", OFFSET(dither), AV_OPT_TYPE_INT, { .i64 = SWS_DITHER_AUTO }, .flags = VE, .unit = "sws_dither", .max = SWS_DITHER_NB - 1 },
7373
{ "auto", "automatic selection", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_AUTO }, .flags = VE, .unit = "sws_dither" },
74+
{ "none", "no dithering", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_NONE }, .flags = VE, .unit = "sws_dither" },
7475
{ "bayer", "ordered matrix dither", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_BAYER }, .flags = VE, .unit = "sws_dither" },
7576
{ "ed", "full error diffusion", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_ED }, .flags = VE, .unit = "sws_dither" },
7677
{ "a_dither", "arithmetic addition dither", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_A_DITHER }, .flags = VE, .unit = "sws_dither" },

0 commit comments

Comments
 (0)