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

Method startTranscoding

webgl/transcoder/basis_wrappers.cpp:1230–1237  ·  view source on GitHub ↗

Must be called before transcodeImage() can be called. On ETC1S files this method decompresses the ETC1S global data, along with fetching the ETC1S image desc array, so it's not free to call.

Source from the content-addressed store, hash-verified

1228 // Must be called before transcodeImage() can be called.
1229 // On ETC1S files this method decompresses the ETC1S global data, along with fetching the ETC1S image desc array, so it's not free to call.
1230 uint32_t startTranscoding()
1231 {
1232 assert(m_magic == KTX2_MAGIC);
1233 if (m_magic != KTX2_MAGIC)
1234 return 0;
1235
1236 return m_transcoder.start_transcoding();
1237 }
1238
1239 // Here for backwards compat, prefer transcodeImageWithFlags().
1240 // get_alpha_for_opaque_formats defaults to false

Callers 2

transcodeFunction · 0.45
EMSCRIPTEN_BINDINGSFunction · 0.45

Calls 1

start_transcodingMethod · 0.80

Tested by

no test coverage detected