![]() |
Qt 6.x
The Qt SDK
|
#include <QtQuick3DRuntimeRender/private/qssgrenderloadedtexture_p.h>
#include <QtQuick3DRuntimeRender/private/qssgrendererutil_p.h>
#include <QtQuick3DRuntimeRender/private/qssgruntimerenderlogging_p.h>
#include <QtQuick3DRuntimeRender/private/qssgrendertexturedata_p.h>
#include <QtGui/QImageReader>
#include <QtGui/QColorSpace>
#include <QtMath>
#include <QtQuick3DUtils/private/qssgutils_p.h>
#include <private/qtexturefilereader_p.h>
#include <zlib.h>
#include <tinyexr.h>
Go to the source code of this file.
Macros | |
#define | TINYEXR_IMPLEMENTATION |
#define | TINYEXR_USE_MINIZ 0 |
#define | TINYEXR_USE_THREAD 1 |
#define | R 0 |
#define | G 1 |
#define | B 2 |
#define | E 3 |
#define | MINELEN 8 |
#define | MAXELEN 0x7fff |
Functions | |
static QSSGRenderTextureFormat | fromGLtoTextureFormat (quint32 internalFormat) |
static QImage | loadImage (const QString &inPath, bool flipVertical) |
static bool | isCompatible (const QImage &img1, const QImage &img2) |
static QSSGLoadedTexture * | loadCubeMap (const QString &inPath, bool flipY) |
#define B 2 |
Definition at line 349 of file qssgrenderloadedtexture.cpp.
#define E 3 |
Definition at line 350 of file qssgrenderloadedtexture.cpp.
#define G 1 |
Definition at line 348 of file qssgrenderloadedtexture.cpp.
#define MAXELEN 0x7fff |
Definition at line 353 of file qssgrenderloadedtexture.cpp.
#define MINELEN 8 |
Definition at line 352 of file qssgrenderloadedtexture.cpp.
#define R 0 |
Definition at line 347 of file qssgrenderloadedtexture.cpp.
#define TINYEXR_IMPLEMENTATION |
Definition at line 17 of file qssgrenderloadedtexture.cpp.
#define TINYEXR_USE_MINIZ 0 |
Definition at line 18 of file qssgrenderloadedtexture.cpp.
#define TINYEXR_USE_THREAD 1 |
Definition at line 19 of file qssgrenderloadedtexture.cpp.
|
inlinestatic |
Definition at line 95 of file qssgrenderloadedtexture.cpp.
References QSSGRenderTextureFormat::Alpha8, QSSGRenderTextureFormat::Depth16, QSSGRenderTextureFormat::Depth24, QSSGRenderTextureFormat::Depth24Stencil8, QSSGRenderTextureFormat::Depth32, QSSGRenderTextureFormat::Luminance16, QSSGRenderTextureFormat::Luminance8, QSSGRenderTextureFormat::LuminanceAlpha8, QSSGRenderTextureFormat::R11_EAC_SNorm, QSSGRenderTextureFormat::R11_EAC_UNorm, QSSGRenderTextureFormat::R11G11B10, QSSGRenderTextureFormat::R16, QSSGRenderTextureFormat::R16F, QSSGRenderTextureFormat::R32F, QSSGRenderTextureFormat::R32I, QSSGRenderTextureFormat::R32UI, QSSGRenderTextureFormat::R8, QSSGRenderTextureFormat::RG11_EAC_SNorm, QSSGRenderTextureFormat::RG11_EAC_UNorm, QSSGRenderTextureFormat::RG16F, QSSGRenderTextureFormat::RG32F, QSSGRenderTextureFormat::RG8, QSSGRenderTextureFormat::RGB10_A2, QSSGRenderTextureFormat::RGB16F, QSSGRenderTextureFormat::RGB16I, QSSGRenderTextureFormat::RGB16UI, QSSGRenderTextureFormat::RGB32F, QSSGRenderTextureFormat::RGB32I, QSSGRenderTextureFormat::RGB32UI, QSSGRenderTextureFormat::RGB565, QSSGRenderTextureFormat::RGB8, QSSGRenderTextureFormat::RGB8_ETC2, QSSGRenderTextureFormat::RGB8_PunchThrough_Alpha1_ETC2, QSSGRenderTextureFormat::RGB8I, QSSGRenderTextureFormat::RGB8UI, QSSGRenderTextureFormat::RGB9E5, QSSGRenderTextureFormat::RGB_DXT1, QSSGRenderTextureFormat::RGBA16F, QSSGRenderTextureFormat::RGBA16I, QSSGRenderTextureFormat::RGBA16UI, QSSGRenderTextureFormat::RGBA32F, QSSGRenderTextureFormat::RGBA32I, QSSGRenderTextureFormat::RGBA32UI, QSSGRenderTextureFormat::RGBA8, QSSGRenderTextureFormat::RGBA8_ETC2_EAC, QSSGRenderTextureFormat::RGBA8I, QSSGRenderTextureFormat::RGBA8UI, QSSGRenderTextureFormat::RGBA_ASTC_10x10, QSSGRenderTextureFormat::RGBA_ASTC_10x5, QSSGRenderTextureFormat::RGBA_ASTC_10x6, QSSGRenderTextureFormat::RGBA_ASTC_10x8, QSSGRenderTextureFormat::RGBA_ASTC_12x10, QSSGRenderTextureFormat::RGBA_ASTC_12x12, QSSGRenderTextureFormat::RGBA_ASTC_4x4, QSSGRenderTextureFormat::RGBA_ASTC_5x4, QSSGRenderTextureFormat::RGBA_ASTC_5x5, QSSGRenderTextureFormat::RGBA_ASTC_6x5, QSSGRenderTextureFormat::RGBA_ASTC_6x6, QSSGRenderTextureFormat::RGBA_ASTC_8x5, QSSGRenderTextureFormat::RGBA_ASTC_8x6, QSSGRenderTextureFormat::RGBA_ASTC_8x8, QSSGRenderTextureFormat::RGBA_DXT1, QSSGRenderTextureFormat::RGBA_DXT3, QSSGRenderTextureFormat::RGBA_DXT5, QSSGRenderTextureFormat::SRGB8, QSSGRenderTextureFormat::SRGB8_Alpha8_ASTC_10x10, QSSGRenderTextureFormat::SRGB8_Alpha8_ASTC_10x5, QSSGRenderTextureFormat::SRGB8_Alpha8_ASTC_10x6, QSSGRenderTextureFormat::SRGB8_Alpha8_ASTC_10x8, QSSGRenderTextureFormat::SRGB8_Alpha8_ASTC_12x10, QSSGRenderTextureFormat::SRGB8_Alpha8_ASTC_12x12, QSSGRenderTextureFormat::SRGB8_Alpha8_ASTC_4x4, QSSGRenderTextureFormat::SRGB8_Alpha8_ASTC_5x4, QSSGRenderTextureFormat::SRGB8_Alpha8_ASTC_5x5, QSSGRenderTextureFormat::SRGB8_Alpha8_ASTC_6x5, QSSGRenderTextureFormat::SRGB8_Alpha8_ASTC_6x6, QSSGRenderTextureFormat::SRGB8_Alpha8_ASTC_8x5, QSSGRenderTextureFormat::SRGB8_Alpha8_ASTC_8x6, QSSGRenderTextureFormat::SRGB8_Alpha8_ASTC_8x8, QSSGRenderTextureFormat::SRGB8_Alpha8_ETC2_EAC, QSSGRenderTextureFormat::SRGB8_ETC2, QSSGRenderTextureFormat::SRGB8_PunchThrough_Alpha1_ETC2, QSSGRenderTextureFormat::SRGB8A8, and QSSGRenderTextureFormat::Unknown.
Referenced by QSSGLoadedTexture::loadCompressedImage().
Definition at line 868 of file qssgrenderloadedtexture.cpp.
References QPixelFormat::channelCount(), QImage::pixelFormat(), and QImage::size().
Referenced by loadCubeMap().
|
static |
Definition at line 878 of file qssgrenderloadedtexture.cpp.
References QImage::bits(), QPixelFormat::channelCount(), QImage::colorSpace(), QSSGLoadedTexture::components, QString::contains(), QSSGLoadedTexture::data, QSSGLoadedTexture::dataSizeInBytes, fileName, fileNames, QSSGInputUtil::getStreamForFile(), QImage::height(), QSSGLoadedTexture::height, i, QSSGLoadedTexture::image, QTextureFileData::ImageMode, isCompatible(), QImage::isNull(), QSSGLoadedTexture::isSRGB, QColorSpace::Linear, loadImage(), QImage::pixelFormat(), QStringLiteral, QSSGLoadedTexture::setFormatFromComponents(), QImage::sizeInBytes(), QString::split(), QSSGLoadedTexture::textureFileData, QString::toUtf8(), QColorSpace::transferFunction(), QImage::width(), and QSSGLoadedTexture::width.
Referenced by QSSGLoadedTexture::load().
Definition at line 269 of file qssgrenderloadedtexture.cpp.
References QPixelFormat::alphaUsage(), QPixelFormat::channelCount(), QImage::Format_Grayscale8, QImage::Format_RGBA8888, QImage::Format_RGBA8888_Premultiplied, QImage::Format_RGBX8888, QPixelFormat::IgnoresAlpha, QPixelFormat::NotPremultiplied, and QPixelFormat::premultiplied().
Referenced by loadCubeMap(), and QSSGLoadedTexture::loadQImage().