FS#8585 - jpeg_viewer: fit lcd
Attached to Project:
Rockbox
Opened by x (vmh) - Sunday, 10 February 2008, 18:08 GMT
Last edited by Peter D'Hoye (petur) - Sunday, 24 February 2008, 23:09 GMT
Opened by x (vmh) - Sunday, 10 February 2008, 18:08 GMT
Last edited by Peter D'Hoye (petur) - Sunday, 24 February 2008, 23:09 GMT
|
Detailsfind optimal scale factor for the image to fit LCD as initial scale factor
|
This task depends upon
Closed by Peter D'Hoye (petur)
Sunday, 24 February 2008, 23:09 GMT
Reason for closing: Rejected
Additional comments about closing: this is not how we want the viewer to behave, sorry...
Sunday, 24 February 2008, 23:09 GMT
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.