nanogui: Thread: Dithered JPEG images


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Dithered JPEG images
From: Sven Johnsson ####@####.####
Date: 13 Dec 2007 10:04:14 +0000
Message-Id: <47610394.9000809@lip-wifi.com>

Hello,

I am trying to display JPEG images with Nano-X version 0.9 . When I use 
GrDrawImageToFit() to draw a *.jpg - image it is displayed, BUT it is 
dithered (unwanted effect). My screen device has 16 bpp, and PNG images 
are displayed nicely without dithering. -How can I solve this?

Thanks for reading my post,

Best Regards,
Sven Johnsson

Subject: Re: [nanogui] Dithered JPEG images
From: "Greg Haerr" ####@####.####
Date: 13 Dec 2007 22:18:08 +0000
Message-Id: <273201c83dd6$0361dce0$6401a8c0@winXP>

: I am trying to display JPEG images with Nano-X version 0.9 . When I use 
: GrDrawImageToFit() to draw a *.jpg - image it is displayed, BUT it is 
: dithered (unwanted effect). My screen device has 16 bpp, and PNG images 
: are displayed nicely without dithering.

Look at the jpeg image loader engine/image_jpeg.c and change
the FASTJPEG (or similar) define near the top of the file.  I think
this used to default to 1 which caused dithering, but worked on 
all systems.

Regards,

Greg

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.