Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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.
 QGIFFormat ()
 ~QGIFFormat ()
int decode (QImage *image, const uchar *buffer, int length, int *nextFrameDelay, int *loopCount)

Static Public Member Functions

static void scan (QIODevice *device, QSize *imageSize, int *imageCount, int *loopCount)
 Scans through the data stream defined by device and returns the image size in imageSize and the number of frames found in the stream in imageCount.
static void scan (QIODevice *device, QSize *imageSize, int *imageCount, int *loopCount)

Public Attributes

bool newFrame
bool partialNewFrame

Detailed Description

Definition at line 30 of file qgifhandler.cpp.

Constructor & Destructor Documentation

◆ QGIFFormat() [1/2]

QGIFFormat::QGIFFormat ( )

Constructs a QGIFFormat.

Definition at line 116 of file qgifhandler.cpp.

References newFrame, and partialNewFrame.

◆ ~QGIFFormat() [1/2]

QGIFFormat::~QGIFFormat ( )

Destroys a QGIFFormat.

Definition at line 139 of file qgifhandler.cpp.

◆ QGIFFormat() [2/2]

QGIFFormat::QGIFFormat ( )

◆ ~QGIFFormat() [2/2]

QGIFFormat::~QGIFFormat ( )

Member Function Documentation

◆ decode() [1/2]

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 202 of file qgifhandler.cpp.

◆ decode() [2/2]

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

◆ scan() [1/2]

void QGIFFormat::scan ( QIODevice * device,
QSize * imageSize,
int * imageCount,
int * loopCount )
static

Scans through the data stream defined by device and returns the image size in imageSize and the number of frames found in the stream in imageCount.

Although frames may vary in size, they are all decoded onto an imageSize canvas.

Definition at line 664 of file qgifhandler.cpp.

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

Here is the caller graph for this function:

◆ scan() [2/2]

void QGIFFormat::scan ( QIODevice * device,
QSize * imageSize,
int * imageCount,
int * loopCount )
static

Member Data Documentation

◆ newFrame

bool QGIFFormat::newFrame

Definition at line 39 of file qgifhandler.cpp.

Referenced by QGIFFormat().

◆ partialNewFrame

bool QGIFFormat::partialNewFrame

Definition at line 40 of file qgifhandler.cpp.

Referenced by QGIFFormat().


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