Rockbox mail archiveSubject: Re: cvs: apps settings.c,1.152,1.153
From: TP Diffenbach (rockbox_at_diffenbach.org)
As it happens, I am working on a standard way to do the compression, but as it is most of the settings are compressed, that's why ther's plenty of space in config block.
Everyting in struct user_settings is either an int or a bool or an array of char. sizeof( bool ) == sizeof( char ), so they get compressed from CHAR_BIT bits to one bit; nearly all the ints are comprressed to 7 bit quantities or smaller (0xFF is used to indicate bad or superseded config data, so nothing can have that bit pattern, thus the 7 bit quantites); a few (about 5) ints really are ints. The char arrays are not copmpressed.
I'm not surewwhy Bjorn would prefer 10-tick units, again, there's a lot of unused space in config_block -- where the compressed data is stored on its way to the disk -- ; on the other hand, struct user_settings -- where the uncompressed data ais used -- is at about 568 (>512, anyway) bytes currently, so he may be wishing to save that space.
Quoting Kjell Ericson <Kjell.Ericson_at_haxx.se>:
> On Wed, 28 May 2003, Björn Stenberg wrote:
-- Archos FM has a Rockbox!
Page was last modified "Jan 10 2012" The Rockbox Crew