-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththps4_tex_dat.ksy
51 lines (47 loc) · 947 Bytes
/
thps4_tex_dat.ksy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
meta:
id: thps_tex_dat
file-extension: dat
application: Tony Hawk's Pro Skater PC (4, UG, UG2)
title: Tony Hawk's Pro Skater texture container
endian: le
doc-ref: https://github.com/DCxDemo/LegacyTHPS/blob/master/formats/thps4_tex_dat.ksy
seq:
- id: magic1
type: u4
- id: cnt_tex
type: u4
- id: textures
type: texture
repeat: expr
repeat-expr: cnt_tex
types:
texture:
seq:
- id: checksum
type: u4
- id: width
type: u4
- id: height
type: u4
- id: cnt_mip
type: u4
- id: bpp
type: u4
- id: bpp_pal
type: u4
- id: dxt_level
type: u4
- id: pal_size
type: u4
- id: pal_data
size: pal_size
- id: mips
type: mip
repeat: expr
repeat-expr: cnt_mip
mip:
seq:
- id: data_size
type: u4
- id: data
size: data_size