This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#8585 - jpeg_viewer: fit lcd
Attached to Project:
Rockbox
Opened by Vuong Minh Hiep (vmh) - Sunday, 10 February 2008, 19:08 GMT+1
Last edited by Peter D'Hoye (petur) - Monday, 25 February 2008, 00:09 GMT+1
Opened by Vuong Minh Hiep (vmh) - Sunday, 10 February 2008, 19:08 GMT+1
Last edited by Peter D'Hoye (petur) - Monday, 25 February 2008, 00:09 GMT+1
|
Detailsfind optimal scale factor for the image to fit LCD as initial scale factor
|
This task depends upon
Closed by Peter D'Hoye (petur)
Monday, 25 February 2008, 00:09 GMT+1
Reason for closing: Rejected
Additional comments about closing: this is not how we want the viewer to behave, sorry...
Monday, 25 February 2008, 00:09 GMT+1
Reason for closing: Rejected
Additional comments about closing: this is not how we want the viewer to behave, sorry...
No, not exactly the same. If you compare both code you'll notice max_downscale() uses 'or' and mine uses 'and'. That means in max_downscale(), both width AND hight, must be smaller than the LCD, but in my code however it's sufficient if only height OR width is smaller than the LCD.
> so your code will always result in selecting ds_max
No, not always. It depends on your LCD size and the picture size.
To test it you have to use pictures of different sizes.