![]() |
Qt 6.x
The Qt SDK
|
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 |
Definition at line 27 of file qgifhandler.cpp.
QGIFFormat::QGIFFormat | ( | ) |
Constructs a QGIFFormat.
Definition at line 113 of file qgifhandler.cpp.
References newFrame, and partialNewFrame.
QGIFFormat::~QGIFFormat | ( | ) |
Destroys a QGIFFormat.
Definition at line 136 of file qgifhandler.cpp.
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().
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().
bool QGIFFormat::newFrame |
Definition at line 36 of file qgifhandler.cpp.
Referenced by QGIFFormat(), decode(), and QGifHandler::read().
bool QGIFFormat::partialNewFrame |
Definition at line 37 of file qgifhandler.cpp.
Referenced by QGIFFormat(), decode(), and QGifHandler::read().