mirror of
https://github.com/RPCS3/ps3autotests.git
synced 2024-11-08 11:52:58 +01:00
Test updated: rsx/texture_formats (2)
Added COMPRESSED_HILO8 and COMPRESSED_HILO_S8 and fixed missing X16 format in the Python script.
This commit is contained in:
parent
28bd25f60b
commit
92bdfd9788
@ -81,6 +81,14 @@ for y in range(img.size[0])[::-1]:
|
||||
w.close()
|
||||
|
||||
|
||||
#B8
|
||||
w = open("Texture-B8.raw", "wb")
|
||||
for y in range(img.size[0])[::-1]:
|
||||
for x in range(img.size[1]):
|
||||
w.write(chr(pix[x,y][2]))
|
||||
w.close()
|
||||
|
||||
|
||||
#COMPRESSED_B8R8_G8R8
|
||||
w = open("Texture-COMPRESSED_B8R8_G8R8.raw", "wb")
|
||||
for y in range(img.size[0])[::-1]:
|
||||
@ -107,11 +115,21 @@ for y in range(img.size[0])[::-1]:
|
||||
w.close()
|
||||
|
||||
|
||||
#B8
|
||||
w = open("Texture-B8.raw", "wb")
|
||||
#COMPRESSED_HILO8
|
||||
w = open("Texture-COMPRESSED_HILO8.raw", "wb")
|
||||
for y in range(img.size[0])[::-1]:
|
||||
for x in range(img.size[1]):
|
||||
w.write(chr(pix[x,y][2]))
|
||||
for x in range(0, img.size[1]):
|
||||
w.write(chr(255-y))
|
||||
w.write(chr(x))
|
||||
w.close()
|
||||
|
||||
|
||||
#COMPRESSED_HILO_S8
|
||||
w = open("Texture-COMPRESSED_HILO_S8.raw", "wb")
|
||||
for y in range(img.size[0])[::-1]:
|
||||
for x in range(0, img.size[1]):
|
||||
w.write(chr(255-y))
|
||||
w.write(chr(x))
|
||||
w.close()
|
||||
|
||||
|
||||
@ -204,6 +222,15 @@ for y in range(img.size[0])[::-1]:
|
||||
w.close()
|
||||
|
||||
|
||||
#X16
|
||||
w = open("Texture-X16.raw", "wb")
|
||||
for y in range(img.size[0])[::-1]:
|
||||
for x in range(img.size[1]):
|
||||
w.write(chr(pix[x,y][3]))
|
||||
w.write('\x00')
|
||||
w.close()
|
||||
|
||||
|
||||
#Y16_X16
|
||||
w = open("Texture-Y16_X16.raw", "wb")
|
||||
for y in range(img.size[0])[::-1]:
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 121 KiB After Width: | Height: | Size: 148 KiB |
Loading…
Reference in New Issue
Block a user