[FFmpeg-cvslog] swscale/internal: rename NB_SWS_DITHER for consistency

Niklas Haas git at videolan.org
Mon Oct 7 20:52:21 EEST 2024


ffmpeg | branch: master | Niklas Haas <git at haasn.dev> | Sat Sep 21 16:33:36 2024 +0200| [aee19ee431bf8a841cadd8154878ca59ef7d0769] | committer: Niklas Haas

swscale/internal: rename NB_SWS_DITHER for consistency

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Niklas Haas <git at haasn.dev>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=aee19ee431bf8a841cadd8154878ca59ef7d0769
---

 libswscale/options.c          | 2 +-
 libswscale/swscale_internal.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libswscale/options.c b/libswscale/options.c
index 53c4f0651b..6337a9f28d 100644
--- a/libswscale/options.c
+++ b/libswscale/options.c
@@ -67,7 +67,7 @@ static const AVOption swscale_options[] = {
     { "dst_v_chr_pos",   "destination vertical chroma position in luma grid/256"  , OFFSET(dst_v_chr_pos), AV_OPT_TYPE_INT, { .i64 = -513 }, -513,      1024,             VE },
     { "dst_h_chr_pos",   "destination horizontal chroma position in luma grid/256", OFFSET(dst_h_chr_pos), AV_OPT_TYPE_INT, { .i64 = -513 }, -513,      1024,             VE },
 
-    { "sws_dither",      "set dithering algorithm",       OFFSET(dither),    AV_OPT_TYPE_INT,    { .i64  = SWS_DITHER_AUTO    }, 0,       NB_SWS_DITHER,  VE, .unit = "sws_dither" },
+    { "sws_dither",      "set dithering algorithm",       OFFSET(dither),    AV_OPT_TYPE_INT,    { .i64  = SWS_DITHER_AUTO    }, 0,       SWS_DITHER_NB,  VE, .unit = "sws_dither" },
     { "auto",            "leave choice to sws",           0,                 AV_OPT_TYPE_CONST,  { .i64  = SWS_DITHER_AUTO    }, INT_MIN, INT_MAX,        VE, .unit = "sws_dither" },
     { "bayer",           "bayer dither",                  0,                 AV_OPT_TYPE_CONST,  { .i64  = SWS_DITHER_BAYER   }, INT_MIN, INT_MAX,        VE, .unit = "sws_dither" },
     { "ed",              "error diffusion",               0,                 AV_OPT_TYPE_CONST,  { .i64  = SWS_DITHER_ED      }, INT_MIN, INT_MAX,        VE, .unit = "sws_dither" },
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 50127d288f..57e7515582 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -73,7 +73,7 @@ typedef enum SwsDither {
     SWS_DITHER_ED,
     SWS_DITHER_A_DITHER,
     SWS_DITHER_X_DITHER,
-    NB_SWS_DITHER,
+    SWS_DITHER_NB,
 } SwsDither;
 
 typedef enum SwsAlphaBlend {



More information about the ffmpeg-cvslog mailing list