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
qtiffhandler.cpp File Reference

(73c92eb99feb2908dec552f984643af28b9cda42)

#include "qtiffhandler_p.h"
#include <qcolorspace.h>
#include <qdebug.h>
#include <qfloat16.h>
#include <qimage.h>
#include <qloggingcategory.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 600 of file qtiffhandler.cpp.

References i, and qRgb().

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 638 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 614 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()

static int qt2Exif ( QImageIOHandler::Transformations transformation)
static

◆ qtiffCloseProc()

int qtiffCloseProc ( thandle_t )

Definition at line 55 of file qtiffhandler.cpp.

Referenced by QTiffHandlerPrivate::openInternal().

+ Here is the caller graph for this function:

◆ qtiffMapProc()

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

Definition at line 65 of file qtiffhandler.cpp.

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

Referenced by QTiffHandlerPrivate::openInternal().

+ 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 26 of file qtiffhandler.cpp.

References device.

Referenced by QTiffHandlerPrivate::openInternal().

+ Here is the caller graph for this function:

◆ qtiffSeekProc()

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

Definition at line 37 of file qtiffhandler.cpp.

References device.

Referenced by QTiffHandlerPrivate::openInternal().

+ Here is the caller graph for this function:

◆ qtiffSizeProc()

toff_t qtiffSizeProc ( thandle_t fd)

Definition at line 60 of file qtiffhandler.cpp.

Referenced by QTiffHandlerPrivate::openInternal().

+ Here is the caller graph for this function:

◆ qtiffUnmapProc()

void qtiffUnmapProc ( thandle_t fd,
void * base,
toff_t  )

Definition at line 87 of file qtiffhandler.cpp.

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

Referenced by QTiffHandlerPrivate::openInternal().

+ 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 32 of file qtiffhandler.cpp.

References write().

Referenced by QTiffHandlerPrivate::openInternal().

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