-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
68 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
tpArchiveFileParam format | ||
|
||
note: everything is aligned to 4 bytes. | ||
note: rel_offset is from the start of that field. | ||
|
||
header: | ||
archive_count (4) | ||
rel_offset_arc_list (4) -> arc[] | ||
xap_count (4) | ||
rel_offset_xap_list (4) -> xap[] | ||
|
||
arc: | ||
rel_offset_name (4) -> null terminated string | ||
rel_offset_flags (4) -> arc_flags; note: you can inline this | ||
|
||
arc_flags: | ||
is_streamed (1) note: if 0 decompress the entire arc before slicing | ||
|
||
xap: | ||
id (4) note: probably hash | ||
rel_offset_name (4) -> null terminated string | ||
arc_offset (4) note: shift left by 4. | ||
compressed_size (4) note: zstd | ||
size (4) | ||
buffer_size (4) note: add to size to get total size | ||
arc_index (1) | ||
is_compressed (1) note: zstd |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
tpGxTexHead format | ||
|
||
note: everything is aligned to 4 bytes. | ||
note: rel_offset is from the start of that field. | ||
|
||
header: | ||
width (4) | ||
height (4) | ||
surfaces (4) | ||
rel_offset_imaging (4) -> imaging | ||
total_image_size (4) | ||
unknown (4) note: probably flags | ||
format (4) note: see format_map, maybe 1 byte? | ||
mip_surface_count (4) | ||
rel_offset_mip_surface (4) -> mip_surface | ||
|
||
mip_surface: | ||
offset (4) | ||
unknown (4) | ||
unknown (4) note: seems to be powers of 2? | ||
unknown (4) | ||
size (4) | ||
unknown (4) | ||
width (4) | ||
height (4) | ||
unknown (4) | ||
unknown (4) note: seems to be powers of 2? | ||
|
||
format_map: | ||
0x00010800 = R8G8B8A8_UNORM | ||
0x00010B00 = R8G8B8A8_UNORM_SRGB | ||
0x00010F00 = BC1_UNORM | ||
0x00011000 = BC1_UNORM_SRGB | ||
0x00011100 = BC2_UNORM | ||
0x00011200 = BC2_UNORM_SRGB | ||
0x00011300 = BC3_UNORM | ||
0x00011400 = BC3_UNORM_SRGB | ||
0x00011500 = BC4_UNORM | ||
0x00011600 = BC5_UNORM | ||
0x00030000 = R32G32B32A32_FLOAT |
This file contains 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