Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support compression algorithms #39

Open
velipso opened this issue Mar 19, 2023 · 0 comments
Open

Support compression algorithms #39

velipso opened this issue Mar 19, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@velipso
Copy link
Owner

velipso commented Mar 19, 2023

Would be nice to do something like:

.script
  i8 pack.huff pack.lz77 {1, 2, 3, 4, 5}
.end

and also:

.pack huff
  .pack lz77
    .i8 1, 2, 3, 4
    .embed 'file.bin'
  .end
.end

BIOS compression algorithms, according to GBATEK:

  • BitUnPack bit
  • Diff8bitUnFilter diff
  • HuffUnComp huff
  • LZ77UnComp lz77
  • RLUnComp rle

Also, maybe a best option, which would try all of them, and pick whichever is smallest -- decompression works via checking the header.

see: https://github.com/devkitPro/grit/tree/master/libgrit

@velipso velipso added the enhancement New feature or request label Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant