Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qtiffhandler.cpp File Reference
#include "qtiffhandler_p.h"
#include <qcolorspace.h>
#include <qdebug.h>
#include <qfloat16.h>
#include <qimage.h>
#include <qvariant.h>
#include <qvarlengtharray.h>
#include <qbuffer.h>
#include <qfiledevice.h>
#include "tiffio.h"
#include <memory>
+ Include dependency graph for qtiffhandler.cpp:

Go to the source code of this file.

Classes

class  QTiffHandlerPrivate
 

Functions

QT_BEGIN_NAMESPACE tsize_t qtiffReadProc (thandle_t fd, tdata_t buf, tsize_t size)
 
tsize_t qtiffWriteProc (thandle_t fd, tdata_t buf, tsize_t size)
 
toff_t qtiffSeekProc (thandle_t fd, toff_t off, int whence)
 
int qtiffCloseProc (thandle_t)
 
toff_t qtiffSizeProc (thandle_t fd)
 
int qtiffMapProc (thandle_t fd, void **base, toff_t *size)
 
void qtiffUnmapProc (thandle_t fd, void *base, toff_t)
 
static QImageIOHandler::Transformations exif2Qt (int exifOrientation)
 
static int qt2Exif (QImageIOHandler::Transformations transformation)
 
static bool checkGrayscale (const QList< QRgb > &colorTable)
 
static QList< QRgbeffectiveColorTable (const QImage &image)
 
static quint32 defaultStripSize (TIFF *tiff)
 

Function Documentation

◆ checkGrayscale()

static bool checkGrayscale ( const QList< QRgb > &  colorTable)
static

Definition at line 533 of file qtiffhandler.cpp.

References QList< T >::at(), i, qRgb(), and QList< T >::size().

Referenced by QTiffHandler::write().

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

◆ defaultStripSize()

static quint32 defaultStripSize ( TIFF *  tiff)
static

Definition at line 571 of file qtiffhandler.cpp.

References qBound(), and qMax().

Referenced by QTiffHandler::write().

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

◆ effectiveColorTable()

static QList< QRgb > effectiveColorTable ( const QImage image)
static

Definition at line 547 of file qtiffhandler.cpp.

References colors, QImage::Format_Alpha8, QImage::Format_Grayscale16, QImage::Format_Grayscale8, QImage::Format_Indexed8, i, qRgb(), and qRgba().

Referenced by QTiffHandler::write().

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

◆ exif2Qt()

static QImageIOHandler::Transformations exif2Qt ( int  exifOrientation)
static

◆ qt2Exif()

◆ qtiffCloseProc()

int qtiffCloseProc ( thandle_t  )

Definition at line 52 of file qtiffhandler.cpp.

Referenced by QTiffHandlerPrivate::openForRead(), and QTiffHandler::write().

+ Here is the caller graph for this function:

◆ qtiffMapProc()

int qtiffMapProc ( thandle_t  fd,
void **  base,
toff_t *  size 
)

Definition at line 62 of file qtiffhandler.cpp.

References base, device, file, QFileDevice::map(), QString::size(), and QFile::size().

Referenced by QTiffHandlerPrivate::openForRead(), and QTiffHandler::write().

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

◆ qtiffReadProc()

QT_BEGIN_NAMESPACE tsize_t qtiffReadProc ( thandle_t  fd,
tdata_t  buf,
tsize_t  size 
)

Definition at line 23 of file qtiffhandler.cpp.

References device.

Referenced by QTiffHandlerPrivate::openForRead(), and QTiffHandler::write().

+ Here is the caller graph for this function:

◆ qtiffSeekProc()

toff_t qtiffSeekProc ( thandle_t  fd,
toff_t  off,
int  whence 
)

Definition at line 34 of file qtiffhandler.cpp.

References device.

Referenced by QTiffHandlerPrivate::openForRead(), and QTiffHandler::write().

+ Here is the caller graph for this function:

◆ qtiffSizeProc()

toff_t qtiffSizeProc ( thandle_t  fd)

Definition at line 57 of file qtiffhandler.cpp.

Referenced by QTiffHandlerPrivate::openForRead(), and QTiffHandler::write().

+ Here is the caller graph for this function:

◆ qtiffUnmapProc()

void qtiffUnmapProc ( thandle_t  fd,
void base,
toff_t   
)

Definition at line 84 of file qtiffhandler.cpp.

References base, file, and QFileDevice::unmap().

Referenced by QTiffHandlerPrivate::openForRead(), and QTiffHandler::write().

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

◆ qtiffWriteProc()

tsize_t qtiffWriteProc ( thandle_t  fd,
tdata_t  buf,
tsize_t  size 
)

Definition at line 29 of file qtiffhandler.cpp.

References write().

Referenced by QTiffHandlerPrivate::openForRead(), and QTiffHandler::write().

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