This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, generate has been updated via 9d6d86ef03509cf3135a0ae7aaa6641ff31b83ac (commit) from 6e1e8b1958b2ce6686c7d2ba446b7ab907f7ebf1 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/9d6d86ef03509cf3135a0ae7aaa6641ff31b8...
commit 9d6d86ef03509cf3135a0ae7aaa6641ff31b83ac Author: Cyril Hrubis metan@ucw.cz Date: Mon Oct 31 22:45:03 2011 +0100
Fix jpeg loader for grayscale images.
diff --git a/libs/loaders/GP_JPG.c b/libs/loaders/GP_JPG.c index 69ddd55..5958dab 100644 --- a/libs/loaders/GP_JPG.c +++ b/libs/loaders/GP_JPG.c @@ -152,6 +152,9 @@ GP_RetCode GP_ReadJPG(FILE *f, GP_Context **res) JSAMPROW addr = (void*)GP_PIXEL_ADDR(ret, 0, y); jpeg_read_scanlines(&cinfo, &addr, 1);
+ if (pixel_type != GP_PIXEL_RGB888) + continue; + //TODO: fixme bigendian? /* fix the pixel, as we want in fact BGR */ uint32_t i;
-----------------------------------------------------------------------
Summary of changes: libs/loaders/GP_JPG.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.