[FFmpeg-devel] [PATCH] swscale/options: add missing -sws_dither none alias
Niklas Haas
ffmpeg at haasn.xyz
Thu Dec 19 13:43:39 EET 2024
From: Niklas Haas <git at haasn.dev>
This one was documented, but never actually supported.
Fixes: ticket #9192
Signed-off-by: Niklas Haas <git at haasn.dev>
Sponsored-by: Sovereign Tech Fund
---
libswscale/options.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libswscale/options.c b/libswscale/options.c
index 5eef26de06..8375655183 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" },
--
2.47.0
More information about the ffmpeg-devel
mailing list