Skip to content

Instantly share code, notes, and snippets.

@asahilina
Created July 26, 2023 07:50
Show Gist options
  • Save asahilina/b3864932fd1881325b7c1719fe912bb6 to your computer and use it in GitHub Desktop.
Save asahilina/b3864932fd1881325b7c1719fe912bb6 to your computer and use it in GitHub Desktop.
## RGB10A8 2-plane
Texture
Dimension: 2D
Layout: Compressed
Channels: unknown 4C (XXX)
Type: XR
Swizzle R: B
Swizzle G: G
Swizzle B: R
Swizzle A: A
Width: 1920
Height: 1080
First level: 0
Last level: 0
Samples: 2
Address: 0x1501d40000
Unk mipmapped: false
Compressed 1: true
Null: false
Compression: 0x0
sRGB: false
sRGB 2-channel: false
Stride: 0x200770
Depth: 120
Page-aligned layers: false
Extended: true
Acceleration buffer: 0x771502558000
Depth (linear): 1
Layer stride (linear): 352474496
PBE
Dimension: 2D
Layout: Compressed
Channels: unknown 4C (XXX)
Type: XR
Swizzle R: B
Swizzle G: G
Swizzle B: R
Swizzle A: A
Width: 1920
Height: 1080
Unk 52: false
Rotate 90: false
Flip vertical: false
Samples: 2
Unk mipmapped: false
Compressed 1: true
Buffer: 0x1501d40000
Level: 0
Levels: 1
Layers: 120
Page-aligned layers: false
sRGB: false
Extended: true
Stride: 0x770
Acceleration buffer: 0x771502558000
Depth (linear): 1
Layer stride (linear): 352474496
## Y8 UV8 2-plane 720x480 linear
Texture
Dimension: 2D
Layout: Linear
Channels: unknown 42 (XXX) => 2-plane YUV 4:2:0
Type: Unorm
Swizzle R: R
Swizzle G: G
Swizzle B: B
Swizzle A: 1
Width: 720
Height: 480
First level: 0
Last level: 0
Samples: 2
Address: 0x1504bd6880
Unk mipmapped: false
Compressed 1: false
Null: false
Compression: 0x0
sRGB: false
sRGB 2-channel: false
Stride: 0x200330 -> 0x330 = 816 + 16 = stride 832 (unit 16)
^ unknown bit
Depth: 52
Page-aligned layers: false
Extended: true
Acceleration buffer: 0x2100331504c41cc0
^^^^^^^^^^ plane 1 address
^^ (stride / 16) - 1
^^ maybe YUV type?
Depth (linear): 461
Layer stride (linear): 0x1504c400
## Y8 UV8 2-plane 1920x720 compressed ?
Texture
Dimension: 2D
Layout: Compressed
Channels: unknown 42 (XXX)
Type: Unorm
Swizzle R: R
Swizzle G: G
Swizzle B: B
Swizzle A: 1
Width: 1280
Height: 720
First level: 0
Last level: 0
Samples: 2
Address: 0x15068e0000
Unk mipmapped: false
Compressed 1: true
Null: false
Compression: 0x0
sRGB: false
sRGB 2-channel: false
Stride: 0x200270 -> 0x27 + 1 = 40 tiles wide (32x32)
^ unknown bit
Depth: 40
Page-aligned layers: false
Extended: true
Acceleration buffer: 0x25002715069d6000
^^^^^^^^^^ plane 1 address
^^ tile count w - 1
^^ maybe YUV type?
Depth (linear): 1537
Layer stride (linear): 352754944
Texture
Dimension: 2D
Layout: Compressed
Channels: unknown 42 (XXX)
Type: Unorm
Swizzle R: R
Swizzle G: G
Swizzle B: B
Swizzle A: 1
Width: 1920
Height: 1080
First level: 0
Last level: 0
Samples: 2
Address: 0x150a4c0000
Unk mipmapped: false
Compressed 1: true
Null: false
Compression: 0x0
sRGB: false
sRGB 2-channel: false
Stride: 0x2003b0 -> 0x3b + 1 = 60 tiles wide (32x32)
Depth: 60
Page-aligned layers: false
Extended: true
Acceleration buffer: 0x25003b150a6de000
^^^^^^^^^^ plane 1 address
^^ tile count w - 1
^^ maybe YUV type?
Depth (linear): 1537
Layer stride (linear): 353004928
YUV indices from the CSC matrix:
# 0 (BT.601 full range -> RGB)
# 1 (BT.709 full range -> RGB)
# 2 (BT.2020 full range -> RGB)
# 3 (BT.601 limited range -> RGB)
# 4 (BT.709 limited range -> RGB)
# 5 (BT.2020 limited range -> RGB)
# 6 (Unknown YUV->RGB)
# 7 NULL
# 8 (RGB -> BT.601 full range)
# 9 (RGB -> BT.709 full range
# 10 (RGB -> BT.2020 full range)
# 11 (RGB -> BT.601 limited range)
# 12 (RGB -> BT.709 limited range)
# 13 (RGB -> BT.2020 limited range)
# 14 (Unknown (identity?))
Guess for the above:
0x21 = YUV BT.601 limited -> RGB
0x25 = YUV BT.709 limited -> RGB
Which makes the mapping with the above list unclear, more research needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment