Rockbox mail archive
Subject: Re: Dynamic global char arrays.
Re: Dynamic global char arrays.
> Also I would like some suggestions about the buuton handling
> (thinking of other targets too).
> Currently I change files with joystick up or down (previous
> -next) when the picture is in default state. LinusN suggested
> right - left while rasher said that a combination of buttons
> would be better. My opinion is the up-down (or left-right it
> is the same) in the default state, and play+up-play+down when
> the image is zoomed.
Neither up - down nor left - right will work on its own.
There is no such thing as a default state, there is only a
smallest zoom level which depends on the original image size.
The JPEG decoder can scale images by 1, 1/2, 1/4 or 1/8, and the
viewer initially chooses the largest of these scale factors that
makes the image entirely fit the screen. However, if an image is
larger than a certain size, even the smallest scale factor (1/8)
doesn't make the image fit without scrolling, and this would
then interfere with changing pictures.
The image size where this will happen depends on the unit's
display, and is easily calculated (display resolution *8).
Iriver H1x0: 1280x1024 pixels
Archos recorder/Ondio: 896x512 pixels
Most digital camera images are larger those days...
Received on Sat Aug 20 11:25:05 2005
Page was last modified "Jan 10 2012" The Rockbox Crew