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.
| 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 |
no test coverage detected