This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import struct, os | |
| from pathlib import Path | |
| from PIL import Image | |
| def read_u32_le(b, off): return struct.unpack_from("<I", b, off)[0] | |
| def read_i16_le(b, off): return struct.unpack_from("<h", b, off)[0] | |
| def read_u16_le(b, off): return struct.unpack_from("<H", b, off)[0] | |
| def psx_bgr555_to_rgb888(word): |