![]() |
Qt 6.x
The Qt SDK
|
#include <qiiofhelpers_p.h>
Public Member Functions | |
QIIOFHelper (QImageIOHandler *q) | |
bool | readImage (QImage *out) |
bool | writeImage (const QImage &in, const QString &uti) |
QVariant | imageProperty (QImageIOHandler::ImageOption option) |
void | setOption (QImageIOHandler::ImageOption option, const QVariant &value) |
Protected Member Functions | |
bool | initRead () |
bool | getIntProperty (CFStringRef property, int *value) |
Protected Attributes | |
QImageIOHandler * | q_ptr = nullptr |
QList< QVariant > | writeOptions |
QCFType< CGDataProviderRef > | cgDataProvider = nullptr |
QCFType< CGImageSourceRef > | cgImageSource = nullptr |
QCFType< CFDictionaryRef > | cfImageDict = nullptr |
Definition at line 37 of file qiiofhelpers_p.h.
QIIOFHelper::QIIOFHelper | ( | QImageIOHandler * | q | ) |
Definition at line 92 of file qiiofhelpers.cpp.
|
protected |
Definition at line 144 of file qiiofhelpers.cpp.
References cfImageDict, and property.
Referenced by imageProperty(), and readImage().
QVariant QIIOFHelper::imageProperty | ( | QImageIOHandler::ImageOption | option | ) |
Definition at line 208 of file qiiofhelpers.cpp.
References exif2Qt(), getIntProperty(), QImageIOHandler::ImageTransformation, initRead(), QSize::rheight(), QSize::rwidth(), and QImageIOHandler::Size.
Referenced by QMacHeifHandler::option().
|
protected |
Definition at line 97 of file qiiofhelpers.cpp.
References cbGetBytes(), cbRewind(), cbSkipForward(), cfImageDict, cgDataProvider, cgImageSource, QImageIOHandler::device(), and q_ptr.
Referenced by imageProperty(), and readImage().
bool QIIOFHelper::readImage | ( | QImage * | out | ) |
Definition at line 122 of file qiiofhelpers.cpp.
References cgImageSource, getIntProperty(), initRead(), out, qRound(), and qt_mac_toQImage().
Referenced by QMacHeifHandler::read().
void QIIOFHelper::setOption | ( | QImageIOHandler::ImageOption | option, |
const QVariant & | value | ||
) |
Definition at line 235 of file qiiofhelpers.cpp.
References QList< T >::resize(), QList< T >::size(), and writeOptions.
Referenced by QMacHeifHandler::setOption().
Definition at line 242 of file qiiofhelpers.cpp.
References cbPutBytes(), QImageIOHandler::device(), QImageIOHandler::ImageTransformation, ok, q_ptr, qMin(), qt2Exif(), qt_mac_toCGImage(), QImageIOHandler::Quality, QImageIOHandler::supportsOption(), QVariant::toInt(), QList< T >::value(), and writeOptions.
Referenced by QMacHeifHandler::write().
Definition at line 55 of file qiiofhelpers_p.h.
Referenced by getIntProperty(), and initRead().
Definition at line 53 of file qiiofhelpers_p.h.
Referenced by initRead().
Definition at line 54 of file qiiofhelpers_p.h.
Referenced by initRead(), and readImage().
|
protected |
Definition at line 51 of file qiiofhelpers_p.h.
Referenced by initRead(), and writeImage().
Definition at line 52 of file qiiofhelpers_p.h.
Referenced by setOption(), and writeImage().