Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QIIOFHelper Class Reference

#include <qiiofhelpers_p.h>

+ Collaboration diagram for QIIOFHelper:

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

QImageIOHandlerq_ptr = nullptr
 
QList< QVariantwriteOptions
 
QCFType< CGDataProviderRef > cgDataProvider = nullptr
 
QCFType< CGImageSourceRef > cgImageSource = nullptr
 
QCFType< CFDictionaryRef > cfImageDict = nullptr
 

Detailed Description

Definition at line 37 of file qiiofhelpers_p.h.

Constructor & Destructor Documentation

◆ QIIOFHelper()

QIIOFHelper::QIIOFHelper ( QImageIOHandler q)

Definition at line 92 of file qiiofhelpers.cpp.

Member Function Documentation

◆ getIntProperty()

bool QIIOFHelper::getIntProperty ( CFStringRef  property,
int *  value 
)
protected

Definition at line 144 of file qiiofhelpers.cpp.

References cfImageDict, and property.

Referenced by imageProperty(), and readImage().

+ Here is the caller graph for this function:

◆ imageProperty()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initRead()

bool QIIOFHelper::initRead ( )
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setOption()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeImage()

bool QIIOFHelper::writeImage ( const QImage in,
const QString uti 
)

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ cfImageDict

QCFType<CFDictionaryRef> QIIOFHelper::cfImageDict = nullptr
protected

Definition at line 55 of file qiiofhelpers_p.h.

Referenced by getIntProperty(), and initRead().

◆ cgDataProvider

QCFType<CGDataProviderRef> QIIOFHelper::cgDataProvider = nullptr
protected

Definition at line 53 of file qiiofhelpers_p.h.

Referenced by initRead().

◆ cgImageSource

QCFType<CGImageSourceRef> QIIOFHelper::cgImageSource = nullptr
protected

Definition at line 54 of file qiiofhelpers_p.h.

Referenced by initRead(), and readImage().

◆ q_ptr

QImageIOHandler* QIIOFHelper::q_ptr = nullptr
protected

Definition at line 51 of file qiiofhelpers_p.h.

Referenced by initRead(), and writeImage().

◆ writeOptions

QList<QVariant> QIIOFHelper::writeOptions
protected

Definition at line 52 of file qiiofhelpers_p.h.

Referenced by setOption(), and writeImage().


The documentation for this class was generated from the following files: