Sign in
skia
/
external
/
github.com
/
BinomialLLC
/
basis_universal
/
18baffddc0fea4168587dddb758be1aa99b703b2
/
.
/
python
/
tests
/
test_basic_transcode.py
blob: fc10a2305d882b49b2d6aa44a69133b4a6b20542 [
file
] [
log
] [
blame
]
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
)