1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QASTCHANDLER_H
5#define QASTCHANDLER_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qtexturefilehandler_p.h"
19
20QT_BEGIN_NAMESPACE
21
22class QAstcHandler : public QTextureFileHandler
23{
24public:
25 using QTextureFileHandler::QTextureFileHandler;
26 ~QAstcHandler() override;
27
28 static bool canRead(const QByteArray &suffix, const QByteArray &block);
29
30 QTextureFileData read() override;
31
32private:
33 quint32 astcGLFormat(quint8 xBlockDim, quint8 yBlockDim) const;
34};
35
36QT_END_NAMESPACE
37
38#endif // QASTCHANDLER_H
39

source code of qtbase/src/gui/util/qastchandler_p.h