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

(adbede1e675be185da233673be853ced3423033c)

#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

static QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY (lcTiff, "qt.imageformats.tiff") tsize_t qtiffReadProc(thandle_t fd
 
return device isReadable () ? device -> read(static_cast< char * >(buf), size) :-1
 
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)
 

Variables

static QT_BEGIN_NAMESPACE tdata_t buf
 
static QT_BEGIN_NAMESPACE tdata_t tsize_t size
 

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

◆ isReadable()

return device isReadable ( ) -> read(static_cast< char * >(buf), size) :-1

Referenced by QMetaProperty::isValid().

+ Here is the caller graph for this function:

◆ Q_LOGGING_CATEGORY()

static QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY ( lcTiff ,
"qt.imageformats.tiff"  )
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:

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

References size.

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 size, and write().

Referenced by QTiffHandlerPrivate::openInternal().

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

Variable Documentation

◆ buf

Definition at line 26 of file qtiffhandler.cpp.

◆ size

QT_BEGIN_NAMESPACE tdata_t tsize_t size
Initial value:
{
QIODevice *device = static_cast<QIODevice *>(fd)
IOBluetoothDevice * device
\inmodule QtCore \reentrant
Definition qiodevice.h:34
GLuint64 GLenum GLint fd

Definition at line 26 of file qtiffhandler.cpp.

Referenced by qtiffSizeProc(), and qtiffWriteProc().