1
0
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:
Alexandro Sánchez Bach 2014-05-24 13:03:12 +02:00
parent 28bd25f60b
commit 92bdfd9788
2 changed files with 31 additions and 4 deletions

View File

@ -81,6 +81,14 @@ for y in range(img.size[0])[::-1]:
w.close() 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 #COMPRESSED_B8R8_G8R8
w = open("Texture-COMPRESSED_B8R8_G8R8.raw", "wb") w = open("Texture-COMPRESSED_B8R8_G8R8.raw", "wb")
for y in range(img.size[0])[::-1]: for y in range(img.size[0])[::-1]:
@ -107,11 +115,21 @@ for y in range(img.size[0])[::-1]:
w.close() w.close()
#B8 #COMPRESSED_HILO8
w = open("Texture-B8.raw", "wb") w = open("Texture-COMPRESSED_HILO8.raw", "wb")
for y in range(img.size[0])[::-1]: for y in range(img.size[0])[::-1]:
for x in range(img.size[1]): for x in range(0, img.size[1]):
w.write(chr(pix[x,y][2])) 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() w.close()
@ -204,6 +222,15 @@ for y in range(img.size[0])[::-1]:
w.close() 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 #Y16_X16
w = open("Texture-Y16_X16.raw", "wb") w = open("Texture-Y16_X16.raw", "wb")
for y in range(img.size[0])[::-1]: for y in range(img.size[0])[::-1]:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 148 KiB