diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-19 01:39:42 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-19 02:38:48 +0100 |
commit | ca447592b18a196ea3fdf9d91e0fe031bfe8b737 (patch) | |
tree | 84c1b13a6859879f62ab232232caf62c88ccae22 /libswscale/utils.c | |
parent | d7a46ca179e4d72c925345cfe208de3572f89d6e (diff) | |
download | ffmpeg-ca447592b18a196ea3fdf9d91e0fe031bfe8b737.tar.gz |
sws: rgb/bgr 4/8 error diffusion dither
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r-- | libswscale/utils.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index 53f4fb8121..8637195e16 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1008,7 +1008,12 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, dstFormat != AV_PIX_FMT_BGRA && dstFormat != AV_PIX_FMT_ABGR && dstFormat != AV_PIX_FMT_RGB24 && - dstFormat != AV_PIX_FMT_BGR24) { + dstFormat != AV_PIX_FMT_BGR24 && + dstFormat != AV_PIX_FMT_BGR4_BYTE && + dstFormat != AV_PIX_FMT_RGB4_BYTE && + dstFormat != AV_PIX_FMT_BGR8 && + dstFormat != AV_PIX_FMT_RGB8 + ) { av_log(c, AV_LOG_WARNING, "full chroma interpolation for destination format '%s' not yet implemented\n", av_get_pix_fmt_name(dstFormat)); |