Skip to content

theNestruo/precompression-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Precompression tools

Optimizes MSX CHRTBL/CLRTBL data to be more compressor friendly (both for RLE compressors and literal repetitions compressors).

Extends the original optimization algorithm added to PCXTOOLS v4.0 to use the entire charset data (instead of particular characters) and prefer larger chunks of RLE-friendly in either CHRTBL or CLRTBL data.

Compression ratio improvement will vary depending on the particular charset, the conversion (image to CHRTBL/CLRTBL data), and the actual compression tool, but expect a size reduction of up to ~14%.

Note: Some tools, such as aOrante's MSXTiles-devtool, do a really good job and generate optimal, or almost optimal, CHRTBL/CLRTBL data. In those cases, this tool cannot further reduce the compressed size.

Description and examples

See Precompression tools post.

Usage

Usage: java -jar precompression.jar [-hinv] [-e=<exclusionRange>] chrtbl [clrtbl]
      chrtbl      binary input file(s): CHRTBL
      [clrtbl]    binary input file(s): CLRTBL
  -h, --help      shows usage
  -v, --verbose   verbose execution
  -e, --exclude=<exclusionRange>
                  Excluded range of addresses: <from>..<to>
  -i, --invert    invert the CHRTBL/CLRTBL bytes of the entire charset

Author and last words

Coded by theNestruo (Néstor Sancho).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages