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/swscale.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/swscale.c')
-rw-r--r-- | libswscale/swscale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 6721dc3a2d..87b867d2b7 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -1051,7 +1051,7 @@ int attribute_align_arg sws_scale(struct SwsContext *c, src2[0] = base; } - if (!srcSliceY && (c->flags & SWS_BITEXACT) && (c->flags & SWS_ERROR_DIFFUSION) && c->dither_error[0]) + if (!srcSliceY && (c->flags & SWS_BITEXACT) && c->dither == SWS_DITHER_ED && c->dither_error[0]) for (i = 0; i < 4; i++) memset(c->dither_error[i], 0, sizeof(c->dither_error[0][0]) * (c->dstW+2)); |