Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#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 <QtQuick3DUtils/private/qssgassert_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 350 of file qssgrenderloadedtexture.cpp.
Referenced by _q_PKCS12_keygen(), QSGCurveStrokeNode::appendTriangle(), QTextDocumentPrivate::insert(), QTextDocumentPrivate::insertBlock(), QTextDocumentPrivate::move(), QSSGTonemapper::tonemapAces(), QSSGTonemapper::tonemapFilmicSub(), and QTextDocumentPrivate::undoRedo().
#define E 3 |
Definition at line 351 of file qssgrenderloadedtexture.cpp.
Referenced by QSpan< T, E >::first(), QSpan< T, E >::last(), QSpan< T, E >::subspan(), QSSGTonemapper::tonemapAces(), and QSSGTonemapper::tonemapFilmicSub().
#define G 1 |
Definition at line 349 of file qssgrenderloadedtexture.cpp.
#define MAXELEN 0x7fff |
Definition at line 354 of file qssgrenderloadedtexture.cpp.
#define MINELEN 8 |
Definition at line 353 of file qssgrenderloadedtexture.cpp.
#define R 0 |
Definition at line 348 of file qssgrenderloadedtexture.cpp.
Referenced by QtPrivate::QHypotHelper< T >::add(), QHashPrivate::Data< Node >::allocateSpans(), QNativeInterface::Private::QInterfaceProxyImp< R, I, func, Args >::apply(), QtPrivate::FunctorCallable< Func, Args >::call(), QtPrivate::FunctionPointer< Ret(Obj::*)(Args...)>::call(), QtPrivate::FunctionPointer< Ret(Obj::*)(Args...) const >::call(), QtPrivate::FunctionPointer< Ret(Obj::*)(Args...) noexcept >::call(), QtPrivate::FunctionPointer< Ret(Obj::*)(Args...) const noexcept >::call(), QtPrivate::FunctionPointer< Ret(*)(Args...)>::call(), QtPrivate::FunctionPointer< Ret(*)(Args...) noexcept >::call(), QtPrivate::FunctorCallBase::call_internal(), QRomanCalendrical::dayInYearToYmd(), fullConvertCase(), QMetaObject::invokeMethod(), QMetaObject::invokeMethod(), QMetaObject::invokeMethod(), QtPrivate::invokeMethodHelper(), mappingBoundaries(), QV4::GlobalFunctions::method_parseInt(), QV4::ArrayPrototype::method_toLocaleString(), QV4::IntrinsicTypedArrayPrototype::method_toLocaleString(), millisToWithinRange(), nextUtf32Character(), openFileForWriting(), QPartialOrdering::operator Qt::partial_ordering(), QtPrivate::q_boyer_moore_searcher_hashed_needle< RandomIt1, Hash, BinaryPredicate >::operator()(), QtPrivate::q_boyer_moore_searcher< RandomIt1, Hash, BinaryPredicate >::operator()(), parse_comment(), parse_content_type(), parse_OWS(), parse_parameter(), parse_quoted_string(), parse_scope(), parse_token(), scanLangEnv(), scanPrefix(), toInt(), and QRomanCalendrical::yearMonthToYearDays().
#define TINYEXR_IMPLEMENTATION |
Definition at line 18 of file qssgrenderloadedtexture.cpp.
#define TINYEXR_USE_MINIZ 0 |
Definition at line 19 of file qssgrenderloadedtexture.cpp.
#define TINYEXR_USE_THREAD 1 |
Definition at line 20 of file qssgrenderloadedtexture.cpp.
|
inlinestatic |
Definition at line 96 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 875 of file qssgrenderloadedtexture.cpp.
Referenced by loadCubeMap().
|
static |
Definition at line 885 of file qssgrenderloadedtexture.cpp.
References fileName, fileNames, QSSGInputUtil::getStreamForFile(), i, QTextureFileData::ImageMode, isCompatible(), QColorSpace::Linear, loadImage(), QSSG_CHECK_X, QStringLiteral, QString::replace(), and QSSGLoadedTexture::textureFileData.
Referenced by QSSGLoadedTexture::load().
Definition at line 270 of file qssgrenderloadedtexture.cpp.
References QImage::Format_Grayscale8, QImage::Format_RGBA8888, QImage::Format_RGBA8888_Premultiplied, QImage::Format_RGBX8888, QPixelFormat::IgnoresAlpha, and QPixelFormat::NotPremultiplied.
Referenced by loadCubeMap(), and QSSGLoadedTexture::loadQImage().