mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-06-12 02:23:49 +00:00
adding new files
This commit is contained in:
10
python/tests/test_basic_transcode.py
Normal file
10
python/tests/test_basic_transcode.py
Normal file
@@ -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