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
QGIFFormat Class Reference
+ Collaboration diagram for QGIFFormat:

Public Member Functions

 QGIFFormat ()
 Constructs a QGIFFormat.
 
 ~QGIFFormat ()
 Destroys a QGIFFormat.
 
int decode (QImage *image, const uchar *buffer, int length, int *nextFrameDelay, int *loopCount)
 This function decodes some data into image changes.
 

Static Public Member Functions

static void scan (QIODevice *device, QList< QSize > *imageSizes, int *loopCount)
 Scans through the data stream defined by device and returns the image sizes found in the stream in the imageSizes list.
 

Public Attributes

bool newFrame
 
bool partialNewFrame
 

Detailed Description

Definition at line 27 of file qgifhandler.cpp.

Constructor & Destructor Documentation

◆ QGIFFormat()

QGIFFormat::QGIFFormat ( )

Constructs a QGIFFormat.

Definition at line 113 of file qgifhandler.cpp.

References newFrame, and partialNewFrame.

◆ ~QGIFFormat()

QGIFFormat::~QGIFFormat ( )

Destroys a QGIFFormat.

Definition at line 136 of file qgifhandler.cpp.

Member Function Documentation

◆ decode()

int QGIFFormat::decode ( QImage * image,
const uchar * buffer,
int length,
int * nextFrameDelay,
int * loopCount )

This function decodes some data into image changes.

Returns the number of bytes consumed.

Definition at line 199 of file qgifhandler.cpp.

References QImageIOHandler::allocateImage(), QImage::bits(), QImage::bytesPerLine(), ch, FAST_SCAN_LINE, QImage::Format_ARGB32, QImage::Format_RGB32, QImage::height(), i, line, LM, newFrame, partialNewFrame, Q_TRANSPARENT, qMax(), qMin(), QRgb, qRgb(), qstrncmp(), rgb, QImage::sizeInBytes(), and QImage::width().

Referenced by QGifHandler::read().

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

◆ scan()

void QGIFFormat::scan ( QIODevice * device,
QList< QSize > * imageSizes,
int * loopCount )
static

Scans through the data stream defined by device and returns the image sizes found in the stream in the imageSizes list.

Definition at line 657 of file qgifhandler.cpp.

References blockSize, ch, device, done, LM, qMax(), qstrncmp(), and state.

Referenced by QGifHandler::imageCount(), QGifHandler::loopCount(), and QGifHandler::option().

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

Member Data Documentation

◆ newFrame

bool QGIFFormat::newFrame

Definition at line 36 of file qgifhandler.cpp.

Referenced by QGIFFormat(), decode(), and QGifHandler::read().

◆ partialNewFrame

bool QGIFFormat::partialNewFrame

Definition at line 37 of file qgifhandler.cpp.

Referenced by QGIFFormat(), decode(), and QGifHandler::read().


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