4#include "QtGui/qimage.h"
6#include <QtCore/qsize.h>
7#include <QtCore/qvarlengtharray.h>
8#include <QtCore/qmap.h>
52 for (
auto &levelList : *faceList)
56 for (
auto &levelList :
images)
122 if (numFacesOffset == 0 || numFacesLength == 0 || d->
numFaces != numFacesOffset
132 if (numLevelsOffset == 0 || numLevelsLength == 0 || d->
numLevels != numLevelsOffset
314 dbg.nospace() <<
"QTextureFileData(";
316 dbg.space() <<
d.logName() <<
d.size();
318 dbg <<
"glInternalFormat:" <<
glFormatName(
d.glInternalFormat());
319 dbg <<
"glBaseInternalFormat:" <<
glFormatName(
d.glBaseInternalFormat());
320 dbg.nospace() <<
"Levels: " <<
d.numLevels();
321 dbg.nospace() <<
"Faces: " <<
d.numFaces();
325 dbg << (
d.d->mode ?
"[bytearray-based]" :
"[image-based]");
qsizetype size() const noexcept
Returns the number of bytes in this byte array.
const char * constData() const noexcept
Returns a pointer to the const data stored in the byte array.
bool isEmpty() const noexcept
Returns true if the byte array has size 0; otherwise returns false.
static QByteArray number(int, int base=10)
Returns a byte-array representing the whole number n as text.
qsizetype size() const noexcept
const T * constData() const noexcept
Returns a const pointer to the shared data object.
constexpr bool isEmpty() const noexcept
Returns true if either of the width and height is less than or equal to 0; otherwise returns false.
void setLength(int value, int level, int face)
QTextureFileDataPrivate(const QTextureFileDataPrivate &other)
bool isValid(int level, int face) const
QMap< QByteArray, QByteArray > keyValues
quint32 baseInternalFormat
~QTextureFileDataPrivate()
QVarLengthArray< QList< QImage >, MAX_FACES > images
QVarLengthArray< QList< int >, MAX_FACES > lengths
QTextureFileData::Mode mode
int getLength(int level, int face) const
QVarLengthArray< QList< int >, MAX_FACES > offsets
void ensureSize(int levels, int faces, bool force=false)
void setOffset(int value, int level, int face)
QTextureFileDataPrivate()
int getOffset(int level, int face) const
void setKeyValueMetadata(const QMap< QByteArray, QByteArray > &keyValues)
int dataLength(int level=0, int face=0) const
QTextureFileData & operator=(const QTextureFileData &other)
void setDataLength(int length, int level=0, int face=0)
void setSize(const QSize &size)
quint32 glInternalFormat() const
quint32 glBaseInternalFormat() const
void setGLInternalFormat(quint32 format)
QByteArray logName() const
QTextureFileData(Mode mode=ByteArrayMode)
QMap< QByteArray, QByteArray > keyValueMetadata() const
void setGLFormat(quint32 format)
void setDataOffset(int offset, int level=0, int face=0)
void setData(const QByteArray &data)
int dataOffset(int level=0, int face=0) const
void setLogName(const QByteArray &name)
QByteArrayView getDataView(int level=0, int face=0) const
void setGLBaseInternalFormat(quint32 format)
void setNumLevels(int num)
void setNumFaces(int num)
constexpr size_type size() const noexcept
const T & at(qsizetype idx) const
void resize(qsizetype sz)
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_LOGGING_CATEGORY(name,...)
constexpr const T & qMax(const T &a, const T &b)
GLenum GLuint GLint level
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLenum GLsizei length
GLsizei GLenum GLenum GLuint GLenum GLsizei * lengths
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLuint GLintptr offset
GLint GLsizei GLsizei GLenum format
GLsizei GLenum internalFormat
GLuint GLsizei const GLuint const GLintptr * offsets
constexpr size_t MAX_FACES
static QByteArray glFormatName(quint32 fmt)
QDebug operator<<(QDebug dbg, const QTextureFileData &d)
QVideoFrameFormat::PixelFormat fmt