History

swscale/internal: rename NB_SWS_DITHER for consistency

Niklas Haas committed 2 years ago

Commit aee19ee1 parent 41ce3702 files · +2 −2Browse files

Unified · Split

2 files
  1. libswscale/options.c +1 −1
  2. libswscale/swscale_internal.h +1 −1
libswscale/options.c+1−1
@@ -67,7 +67,7 @@ static const AVOption swscale_options[] = { · 66 unmodified lines
6767 { "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 },
6868 { "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 },
6969
70− { "sws_dither", "set dithering algorithm", OFFSET(dither), AV_OPT_TYPE_INT, { .i64 = SWS_DITHER_AUTO }, 0, NB_SWS_DITHER, VE, .unit = "sws_dither" },
70+ { "sws_dither", "set dithering algorithm", OFFSET(dither), AV_OPT_TYPE_INT, { .i64 = SWS_DITHER_AUTO }, 0, SWS_DITHER_NB, VE, .unit = "sws_dither" },
7171 { "auto", "leave choice to sws", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_AUTO }, INT_MIN, INT_MAX, VE, .unit = "sws_dither" },
7272 { "bayer", "bayer dither", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_BAYER }, INT_MIN, INT_MAX, VE, .unit = "sws_dither" },
7373 { "ed", "error diffusion", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_ED }, INT_MIN, INT_MAX, VE, .unit = "sws_dither" },
libswscale/swscale_internal.h+1−1
@@ -73,7 +73,7 @@ typedef enum SwsDither { · 72 unmodified lines
7373 SWS_DITHER_ED,
7474 SWS_DITHER_A_DITHER,
7575 SWS_DITHER_X_DITHER,
76− NB_SWS_DITHER,
76+ SWS_DITHER_NB,
7777 } SwsDither;
7878
7979 typedef enum SwsAlphaBlend {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t