32 static bool canRead(
const QByteArray &suffix,
const QByteArray &block);
37 bool checkHeader(
const KTXHeader &header);
38 std::optional<QMap<QByteArray, QByteArray>> decodeKeyValues(QByteArrayView view)
const;
39 quint32 decode(quint32 val)
const;
41 bool inverseEndian =
false;
static bool canRead(const QByteArray &suffix, const QByteArray &block)
QTextureFileData read() override
Combined button and popup list for selecting options.
static const char ktxIdentifier[KTX_IDENTIFIER_LENGTH]
static const std::optional< quint32 > nearestMultipleOf4(quint32 value)
static constexpr quint32 qktxh_headerSize
static QByteArrayView safeView(QByteArrayView view, quint32 start, quint32 length)
#define KTX_IDENTIFIER_LENGTH
static const quint32 platformEndianIdentifier
static const quint32 inversePlatformEndianIdentifier
quint32 keyAndValueByteSize