I'm using ktx2_transcoder::get_image_level_info to determine if an image layer in a video file is an I-frame that can be seeked to. However, for UASTC-encoded video loaded from KTX2 file, m_iframe_flag is always false.
My workaround is to always assume layer 0 is an I-frame, but it would be nice if this worked the same way as .basis encoded UASTC video.
I'm using
ktx2_transcoder::get_image_level_info
to determine if an image layer in a video file is an I-frame that can be seeked to. However, for UASTC-encoded video loaded from KTX2 file,m_iframe_flag
is alwaysfalse
.My workaround is to always assume layer 0 is an I-frame, but it would be nice if this worked the same way as
.basis
encoded UASTC video.Relevant piece of code: https://github.com/BinomialLLC/basis_universal/blob/646a9f826131cb0b9e14b5e4740874808315f83a/transcoder/basisu_transcoder.cpp#L17159