diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-14 17:19:32 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-15 21:39:32 +0200 |
commit | 1e0e193240a8e47a980ac76b8b5af831b17b7928 (patch) | |
tree | 94c567820d1581aacfad6d01f1ba79d28a1df195 /libswscale/options.c | |
parent | 60e9b8556ab33af8087968b1de15867ede7c5685 (diff) | |
download | ffmpeg-1e0e193240a8e47a980ac76b8b5af831b17b7928.tar.gz |
sws: add dither enum
This allows specifying more dither algorithms without using up flags and
without ambiguities.
Also initialize the new field based on the flags and use it.
Note, improving the logic of the checks is left to subsequent
commits, this here only switches from flags to enum.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/options.c')
-rw-r--r-- | libswscale/options.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libswscale/options.c b/libswscale/options.c index 81d8c28b08..8985e6b5d6 100644 --- a/libswscale/options.c +++ b/libswscale/options.c @@ -69,6 +69,11 @@ 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 = -1 }, -1, 512, VE }, { "dst_h_chr_pos", "destination horizontal chroma position in luma grid/256", OFFSET(dst_h_chr_pos), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 512, VE }, + { "sws_dither", "set dithering algorithm", OFFSET(dither), AV_OPT_TYPE_INT, { .i64 = SWS_DITHER_AUTO }, 0, NB_SWS_DITHER, VE, "sws_dither" }, + { "auto", "leave choice to sws", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_AUTO }, INT_MIN, INT_MAX, VE, "sws_dither" }, + { "bayer", "bayer dither", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_BAYER }, INT_MIN, INT_MAX, VE, "sws_dither" }, + { "ed", "error diffusion", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_ED }, INT_MIN, INT_MAX, VE, "sws_dither" }, + { NULL } }; |