Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qiiofhelpers.cpp File Reference
#include <QGuiApplication>
#include <QBuffer>
#include <QImageIOHandler>
#include <QImage>
#include "qiiofhelpers_p.h"
+ Include dependency graph for qiiofhelpers.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE size_t cbGetBytes (void *info, void *buffer, size_t count)
 
static off_t cbSkipForward (void *info, off_t count)
 
static void cbRewind (void *)
 
static size_t cbPutBytes (void *info, const void *buffer, size_t count)
 
CGImageRef qt_mac_toCGImage (const QImage &qImage)
 
QImage qt_mac_toQImage (CGImageRef image)
 
static QImageIOHandler::Transformations exif2Qt (int exifOrientation)
 
static int qt2Exif (QImageIOHandler::Transformations transformation)
 

Function Documentation

◆ cbGetBytes()

static QT_BEGIN_NAMESPACE size_t cbGetBytes ( void info,
void buffer,
size_t  count 
)
static

Definition at line 16 of file qiiofhelpers.cpp.

References info, qMax(), and QIODevice::read().

Referenced by QIIOFHelper::initRead().

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

◆ cbPutBytes()

static size_t cbPutBytes ( void info,
const void buffer,
size_t  count 
)
static

Definition at line 48 of file qiiofhelpers.cpp.

References info, qMax(), and QIODevice::write().

Referenced by QIIOFHelper::writeImage().

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

◆ cbRewind()

static void cbRewind ( void )
static

Definition at line 43 of file qiiofhelpers.cpp.

Referenced by QIIOFHelper::initRead().

+ Here is the caller graph for this function:

◆ cbSkipForward()

static off_t cbSkipForward ( void info,
off_t  count 
)
static

Definition at line 25 of file qiiofhelpers.cpp.

References info, QIODevice::isSequential(), QIODevice::pos(), qMax(), QIODevice::read(), and QIODevice::seek().

Referenced by QIIOFHelper::initRead().

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

◆ exif2Qt()

◆ qt2Exif()

static int qt2Exif ( QImageIOHandler::Transformations  transformation)
static

◆ qt_mac_toCGImage()

CGImageRef qt_mac_toCGImage ( const QImage qImage)

Definition at line 47 of file qcoregraphics.mm.

References QImage::convertToFormat(), and QImage::Format_ARGB32_Premultiplied.

Referenced by QCoreGraphicsPaintEngine::drawImage(), QCoreGraphicsPaintEngine::drawPixmap(), qt_mac_draw_pattern(), and QIIOFHelper::writeImage().

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

◆ qt_mac_toQImage()

QImage qt_mac_toQImage ( CGImageRef  image)

Definition at line 79 of file qcoregraphics.mm.

References QImage::Format_ARGB32_Premultiplied, qt_mac_drawCGImage(), rect, ret, and Qt::transparent.

Referenced by QCocoaScreen::grabWindow(), QIOSScreen::grabWindow(), and QIIOFHelper::readImage().

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