MCPcopy Create free account
hub / github.com/BinomialLLC/basis_universal / open

Method open

python/basisu_py/transcoder.py:206–210  ·  view source on GitHub ↗
(self, ktx2_bytes: bytes)

Source from the content-addressed store, hash-verified

204 # KTX2 Handle API: open/close + all queries
205 # -----------------------------------------------------------------------
206 def open(self, ktx2_bytes: bytes) -> KTX2Handle:
207 ptr = self._alloc(len(ktx2_bytes))
208 self._write(ptr, ktx2_bytes)
209 handle = self.ktx2_open(ptr, len(ktx2_bytes))
210 return KTX2Handle(ptr, handle)
211
212 def close(self, ktx2_handle: KTX2Handle):
213 self.ktx2_close(ktx2_handle.handle)

Callers 8

mainFunction · 0.95
test_backendFunction · 0.95
decode_rgbaMethod · 0.95
decode_rgba_hdrMethod · 0.95
transcode_tfmtMethod · 0.95
transcodeMethod · 0.95

Calls 2

KTX2HandleClass · 0.85
ktx2_openMethod · 0.80

Tested by 1

test_backendFunction · 0.76