Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_heightmap_utils.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Victor Wåhlström <victor.wahlstrom@initiali.se>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6
8
10#include <QByteArray>
11
12KoID KisHeightmapUtils::mimeTypeToKoID(const QByteArray& mimeType)
13{
14 if (mimeType == "image/x-r8") {
16 }
17 else if (mimeType == "image/x-r16") {
19 }
20 else if (mimeType == "image/x-r32") {
22 }
23 return KoID();
24}
const KoID Float32BitsColorDepthID("F32", ki18n("32-bit float/channel"))
const KoID Integer8BitsColorDepthID("U8", ki18n("8-bit integer/channel"))
const KoID Integer16BitsColorDepthID("U16", ki18n("16-bit integer/channel"))
Definition KoID.h:30
KoID mimeTypeToKoID(const class QByteArray &mimeType)