-
Notifications
You must be signed in to change notification settings - Fork 9
HG‐X ProcessImage
Robert Jordan edited this page Oct 2, 2020
·
6 revisions
The HG image encoding used by the HG-3 and HG-2 formats (.hg3, .hg2).
🚧 This page has not been started yet
The encoding process is a bit lengthy, and shares some similarity to the PSVita CSX image formats. The primary methods used are:
- Zlib compression
- Elias Gamma coding
- Zero-run length encoding
- Weighted table normalization
- Absolute signed values
- Delta filtering
- Image slicing (never used, but supported by HG-3)
In addition, the following are used before the encoding or after the decoding process.
- Crop transparent borders
- Vertically flip pixel data (as used in Bitmap image format)
This is the method used to convert standard HG-2 and HG-3 image unrle data and cmd bits into pixel buffers.