35 bool bCanRead =
false;
37 if (iod && iod->
peek(
buf, 12) == 12)
38 bCanRead = !
qstrncmp(
buf,
"\000\000\000\fjP \r\n\207\n", 12);
74 const int quality =
value.toInt(&
ok);
76 d->writeQuality = quality;
static bool readImage(QImageIOHandler *q_ptr, QImage *out)
static bool writeImage(QImageIOHandler *q_ptr, const QImage &in, const QString &uti)
\inmodule QtCore \reentrant
qint64 peek(char *data, qint64 maxlen)
ImageOption
This enum describes the different options supported by QImageIOHandler.
QIODevice * device() const
Returns the device currently assigned to the QImageIOHandler.
void setFormat(const QByteArray &format)
Sets the format of the QImageIOHandler to format.
QMacJp2HandlerPrivate(QMacJp2Handler *q_ptr)
bool write(const QImage &image) override
Writes the image image to the assigned device.
bool supportsOption(ImageOption option) const override
Returns true if the QImageIOHandler supports the option option; otherwise returns false.
void setOption(ImageOption option, const QVariant &value) override
Sets the option option with the value value.
bool read(QImage *image) override
Read an image from the device, and stores it in image.
bool canRead() const override
Returns true if an image can be read from the device (i.e., the image format is supported,...
QVariant option(ImageOption option) const override
Returns the value assigned to option as a QVariant.
Combined button and popup list for selecting options.
int qstrncmp(const char *str1, const char *str2, size_t len)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLenum GLuint GLenum GLsizei const GLchar * buf
#define QStringLiteral(str)