tinyjpeg: fix yuv420p, correct some of the initalization code
authorH. Peter Anvin <hpa@zytor.com>
Sun, 9 Aug 2009 21:35:08 +0000 (14:35 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 9 Aug 2009 21:35:08 +0000 (14:35 -0700)
commit4b9ef3210bfe249acc1b63dadf6cf009275a9eaa
tree1d0e76b4d251509cb6b9ca5e29842bf5deddfdb9
parentca49c72894c52d770bd7c2669337b32fe83c6c2e
tinyjpeg: fix yuv420p, correct some of the initalization code

Fix the yuv420p in the presence of partial pixels (if we have an odd
number of pixels in this mode, we include the chroma pixel.)

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/lib/jpeg/bgr24.c
com32/lib/jpeg/bgra32.c
com32/lib/jpeg/grey.c
com32/lib/jpeg/rgb24.c
com32/lib/jpeg/rgba32.c
com32/lib/jpeg/tinyjpeg.c
com32/lib/jpeg/yuv420p.c