diff options
author | Niklas Haas <git@haasn.dev> | 2024-12-19 12:41:22 +0100 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2024-12-23 12:47:10 +0100 |
commit | 5ca5bbd462bcd8040b35957ccc00d0392e6de57d (patch) | |
tree | cd59442f77ead3a7f2223564662dafc590701d79 | |
parent | 253b8977c02078faef057542ca647fc676e747e1 (diff) | |
download | ffmpeg-5ca5bbd462bcd8040b35957ccc00d0392e6de57d.tar.gz |
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 <git@haasn.dev>
Sponsored-by: Sovereign Tech Fund
-rw-r--r-- | libswscale/options.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libswscale/options.c b/libswscale/options.c index 08d369e620..feecae8c89 100644 --- a/libswscale/options.c +++ b/libswscale/options.c @@ -71,6 +71,7 @@ static const AVOption swscale_options[] = { { "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 }, { "auto", "automatic selection", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_AUTO }, .flags = VE, .unit = "sws_dither" }, + { "none", "no dithering", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_NONE }, .flags = VE, .unit = "sws_dither" }, { "bayer", "ordered matrix dither", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_BAYER }, .flags = VE, .unit = "sws_dither" }, { "ed", "full error diffusion", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_ED }, .flags = VE, .unit = "sws_dither" }, { "a_dither", "arithmetic addition dither", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_A_DITHER }, .flags = VE, .unit = "sws_dither" }, |