home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!ames!ncar!noao!arizona!mcbride
- From: mcbride@cs.arizona.edu (Chris M. McBride)
- Newsgroups: comp.sys.cbm
- Subject: Re: compression format questions, and an idea
- Summary: variation on runlength
- Keywords: compression
- Message-ID: <22166@optima.cs.arizona.edu>
- Date: 16 Sep 92 03:48:24 GMT
- References: <cdminter.716601761@icaen.uiowa.edu>
- Sender: news@cs.arizona.edu
- Organization: U of Arizona CS Dept, Tucson
- Lines: 36
-
- In article <cdminter.716601761@icaen.uiowa.edu> cdminter@icaen.uiowa.edu (Corey D Minter) writes:
-
- >2) Recently i was reading up on some methods of compression when i
- > thought up the following idea. It has the advantage i think
- > that it would be fast to decompress (though slow to compress),
- > and it doesn't consume any memory with tables in either compression
- > or decompression. So i am asking for your comment/flame/opinion
- > on this. I'm not trying to propose some new standard (who wants
- > one).
- >
- > 1) store data as is until an ESCAPE character is read
- > 2) 2 ESCAPES signals that an ESCAPE should really be stored
- > 3) otherwise the ESCAPE is followed by:
- > a) byte packed with NUMBER_OF_REPETITIONS and
- > NUMBER_OF_BYTES - 4 (possibly nibblewise)
- > b) word with address of data to be used (could be a
- > relative or absolute address
- >
- <etc>
-
- This is only a slight variation on Run length compression. It has some
- pissibilities, but I see some problems. Lets assume you use 0 as an
- escape character (that would elimate runs of 0 lengths)
- Then we have a number(or numbers) to specify repeats, reptitions(A
- nybble may not be the best, because then you are limited to 15 or 16)
- How do you specify that what follows is an address. or data?
-
- The best way to perform this copmpression would proabbly be to keep
- a list of data, and then a list of pointers to the data. (With bytes
- and reps, all though some will only have repeats of 1)
- One question I have, is how do you determine when you have a string
- that already occurs, or to start another `string?
-
- Chris
-
-
-