mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-11-12 02:55:36 +00:00
adding new files
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
from basisu_py import Transcoder
|
||||
|
||||
with open("test.ktx2", "rb") as f:
|
||||
data = f.read()
|
||||
|
||||
t = Transcoder() # AUTO backend
|
||||
img = t.decode_rgba(data)
|
||||
|
||||
print("Decoded shape:", img.shape)
|
||||
print("dtype:", img.dtype)
|
||||
Reference in New Issue
Block a user