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 <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 39 of file qiiofhelpers_p.h.
NS_IIOF_HELPERS::QIIOFHelper::QIIOFHelper | ( | QImageIOHandler * | q | ) |
Definition at line 94 of file qiiofhelpers.cpp.
|
protected |
Definition at line 146 of file qiiofhelpers.cpp.
References cfImageDict, and property.
Referenced by imageProperty(), and readImage().
QVariant NS_IIOF_HELPERS::QIIOFHelper::imageProperty | ( | QImageIOHandler::ImageOption | option | ) |
Definition at line 210 of file qiiofhelpers.cpp.
References NS_IIOF_HELPERS::exif2Qt(), getIntProperty(), QImageIOHandler::ImageTransformation, initRead(), QSize::rheight(), QSize::rwidth(), and QImageIOHandler::Size.
|
protected |
Definition at line 99 of file qiiofhelpers.cpp.
References NS_IIOF_HELPERS::cbGetBytes(), NS_IIOF_HELPERS::cbRewind(), NS_IIOF_HELPERS::cbSkipForward(), cfImageDict, cgDataProvider, cgImageSource, QImageIOHandler::device(), and q_ptr.
Referenced by imageProperty(), and readImage().
bool NS_IIOF_HELPERS::QIIOFHelper::readImage | ( | QImage * | out | ) |
Definition at line 124 of file qiiofhelpers.cpp.
References cgImageSource, getIntProperty(), initRead(), out, qRound(), and qt_mac_toQImage().
void NS_IIOF_HELPERS::QIIOFHelper::setOption | ( | QImageIOHandler::ImageOption | option, |
const QVariant & | value ) |
Definition at line 237 of file qiiofhelpers.cpp.
References QList< T >::resize(), QList< T >::size(), and writeOptions.
Definition at line 244 of file qiiofhelpers.cpp.
References NS_IIOF_HELPERS::cbPutBytes(), QImageIOHandler::device(), QImageIOHandler::ImageTransformation, ok, q_ptr, qMin(), NS_IIOF_HELPERS::qt2Exif(), qt_mac_toCGImage(), QImageIOHandler::Quality, QImageIOHandler::supportsOption(), QVariant::toInt(), QList< T >::value(), and writeOptions.
Definition at line 57 of file qiiofhelpers_p.h.
Referenced by getIntProperty(), and initRead().
Definition at line 55 of file qiiofhelpers_p.h.
Referenced by initRead().
Definition at line 56 of file qiiofhelpers_p.h.
Referenced by initRead(), and readImage().
|
protected |
Definition at line 53 of file qiiofhelpers_p.h.
Referenced by initRead(), and writeImage().
Definition at line 54 of file qiiofhelpers_p.h.
Referenced by setOption(), and writeImage().