Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Rockbox mail archive

Subject: (no subject)

(no subject)

From: alankorr <alankorr_at_subdimension.com>
Date: Sun, 13 Jan 2002 14:24:16 GMT

Salut !

To Nicolas S.:

I can have a suggestion for you to speedup slightly your bit
streams : use 9-bit word instead of 8-bit, where the first
bit sent will act as a byte inverter.

For byte with total of bit 1 under or same total of bit 0
(pin state supposedly HI) :

  0x03 => L-H-L-H-L-H-L-HHH-LLL

For byte with total of bit 1 above total of bit 0 (pin state
supposedly HI) :

  0xFC => LLL-H-L-H-L-H-L-HHH-LLL instead of
L-HHH-LLL-HHH-LLL-HHH-LLL-H-L .

Finally the worst case will be 1.5 times longer than the
quickest byte to send instead of twice.

NOTE : if you send nible 0xF that way : LO - HIHIHI -
LOLOLOLOLOLOLO - HIHIHIHIHIHIHIHIHIHIHIHIHIHIHIHI, oh yes !
it will be very long !

Another suggestion, use a algorithm compression (LZSS could
be a simple and viable candidate) to compress your stream
before sending it to PC.

/alan








  

_____________________________________________________________________
// free anonymous email || forums \\ subZINE || anonymous browsing
            subDIMENSION -- http://www.subdimension.com
Received on 2002-01-13

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy