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>.
Loading...
Searching...
No Matches
NS_IIOF_HELPERS::QIIOFHelper Class Reference

#include <qiiofhelpers_p.h>

+ Collaboration diagram for NS_IIOF_HELPERS::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 39 of file qiiofhelpers_p.h.

Constructor & Destructor Documentation

◆ QIIOFHelper()

NS_IIOF_HELPERS::QIIOFHelper::QIIOFHelper ( QImageIOHandler * q)

Definition at line 94 of file qiiofhelpers.cpp.

Member Function Documentation

◆ getIntProperty()

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

Definition at line 146 of file qiiofhelpers.cpp.

References cfImageDict, and property.

Referenced by imageProperty(), and readImage().

+ Here is the caller graph for this function:

◆ imageProperty()

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.

+ Here is the call graph for this function:

◆ initRead()

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

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

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

+ Here is the call graph for this function:

◆ setOption()

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.

+ Here is the call graph for this function:

◆ writeImage()

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

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.

+ Here is the call graph for this function:

Member Data Documentation

◆ cfImageDict

QCFType<CFDictionaryRef> NS_IIOF_HELPERS::QIIOFHelper::cfImageDict = nullptr
protected

Definition at line 57 of file qiiofhelpers_p.h.

Referenced by getIntProperty(), and initRead().

◆ cgDataProvider

QCFType<CGDataProviderRef> NS_IIOF_HELPERS::QIIOFHelper::cgDataProvider = nullptr
protected

Definition at line 55 of file qiiofhelpers_p.h.

Referenced by initRead().

◆ cgImageSource

QCFType<CGImageSourceRef> NS_IIOF_HELPERS::QIIOFHelper::cgImageSource = nullptr
protected

Definition at line 56 of file qiiofhelpers_p.h.

Referenced by initRead(), and readImage().

◆ q_ptr

QImageIOHandler* NS_IIOF_HELPERS::QIIOFHelper::q_ptr = nullptr
protected

Definition at line 53 of file qiiofhelpers_p.h.

Referenced by initRead(), and writeImage().

◆ writeOptions

QList<QVariant> NS_IIOF_HELPERS::QIIOFHelper::writeOptions
protected

Definition at line 54 of file qiiofhelpers_p.h.

Referenced by setOption(), and writeImage().


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