Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

lzss0 compression library for external tool

Featured Replies

  • Author
  • Localization

Garo, posted Mon Dec 13, 2021 1:12 am (68214)


hello, id like to know where the c library for the lzss0 compression scheme is
i want to also know how to calculate the size of the compressed file
i will need to lzss0 compression library for a third-party tool developed by yours truly called nmr2l

oh just for reference the game files ill be working with are from Namco Museum Remix
i just need a c header file or something that will let me compress and decompress raw lzss0 data

thanks
  • Author
  • Localization

aluigi, posted Mon Dec 13, 2021 2:59 pm (68220)


lzss0 is just the normal LZSS with the only difference that initialize the window buffer with a NUL byte instead of a space.
Any implementation is ok as long as it has the default settings: EI = 12, EJ = 4, P = 2.
The one in quickbms is big because it covers all the settings, probably you want something much simpler and easy.

For example this one is from Okumura (who wrote one of the oldest public domain implementations, the following seems a short uncommented rewrite):
https://oku.edu.mie-u.ac.jp/~okumura/compression/lzss.c
As you can see EI and P are different so you must set as I said before.
And obviously you must change the two occurrencies of the "space" ' ' to 0.

Super easy ;)
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.