PS Vita File Formats - trigger-segfault/TriggersTools.CatSystem2 GitHub Wiki
PS Vita File Formats
🚧 This page is a work in progress
Not much work has been done in this area, but currently 3 existing image formats used for PS Vita CatSystem2 games are known:
Pages marked with ✓ next to them have had the known extent of their file structure fully documented.
| Wiki Page | Magic | Description | 
|---|---|---|
| CZ0 Image | CZ0 | Raw image, raw pixel data | 
| CZ1 Image | CZ1 | Font image(?), LZW compression | 
| CZ2 Image | CZ2 | Complex image, LZW compression and deltafiltering | 
CZX Header
Until CZX images get their own dedicated page. The shared header between all 3 formats will be described here.
| Data Type | Value | Description | 
|---|---|---|
| char[4] | "CZ[012]" | File Signature | 
| uint32 | HeaderSize | Size of this header | 
| uint16 | Width | Width of the image | 
| uint16 | Height | Height of the image | 
| uint16 | DepthBits | Bits per pixel, 24, 32, or 8 (indexed) | 
| uint16 | Unknown1 | Unknown 4-byte value 1 | 
| ??? | ... | Unknown remaining size/values | 
Encryption and compression
| Wiki Page | Description | 
|---|---|
| LZW Compression | A universal lossless data compression algorithm | 
| Delta encoding | An encoding that uses the differences of preceding bytes | 
| Elias gamma coding | A universal code encoding positive integers | 
Data types
See File Formats#Data types for relevant basic information on CatSystem2 files and data types.