Qt 4.8
|
Public Functions | |
int | decode (QImage *image, const uchar *buffer, int length, int *nextFrameDelay, int *loopCount) |
This function decodes some data into image changes. More... | |
QGIFFormat () | |
Constructs a QGIFFormat. More... | |
~QGIFFormat () | |
Destroys a QGIFFormat. More... | |
Static Public Functions | |
static void | scan (QIODevice *device, QVector< QSize > *imageSizes, int *loopCount) |
Scans through the data stream defined by device and returns the image sizes found in the stream in the imageSizes vector. More... | |
Public Variables | |
bool | newFrame |
bool | partialNewFrame |
Private Types | |
enum | { max_lzw_bits =12 } |
enum | Disposal { NoDisposal, DoNotChange, RestoreBackground, RestoreImage } |
enum | State { Header, LogicalScreenDescriptor, GlobalColorMap, LocalColorMap, Introducer, ImageDescriptor, TableImageLZWSize, ImageDataBlockSize, ImageDataBlock, ExtensionLabel, GraphicControlExtension, ApplicationExtension, NetscapeExtensionBlockSize, NetscapeExtensionBlock, SkipBlockSize, SkipBlock, Done, Error } |
Private Functions | |
QRgb | color (uchar index) const |
void | disposePrevious (QImage *image) |
void | fillRect (QImage *image, int x, int y, int w, int h, QRgb col) |
void | nextY (unsigned char *bits, int bpl) |
Properties | |
int | accum |
QImage | backingstore |
int | bgcol |
int | bitcount |
int | bottom |
int | ccount |
int | clear_code |
int | code_size |
int | count |
bool | digress |
Disposal | disposal |
bool | disposed |
int | end_code |
int | expectcount |
int | firstcode |
int | frame |
bool | gcmap |
bool | gif89 |
QRgb * | globalcmap |
int | gncols |
int | height |
unsigned char | hold [16] |
int | incode |
int | interlace |
bool | lcmap |
int | left |
int | lncols |
QRgb * | localcmap |
int | lzwsize |
int | max_code |
int | max_code_size |
int | ncols |
bool | needfirst |
int | oldcode |
bool | out_of_bounds |
int | right |
int | sheight |
short * | sp |
short * | stack |
enum QGIFFormat::State | state |
int | swidth |
short * | table [2] |
int | top |
int | trans_index |
int | width |
int | x |
int | y |
Definition at line 68 of file qgifhandler.cpp.
|
private |
Enumerator | |
---|---|
max_lzw_bits |
Definition at line 131 of file qgifhandler.cpp.
|
private |
Enumerator | |
---|---|
NoDisposal | |
DoNotChange | |
RestoreBackground | |
RestoreImage |
Definition at line 121 of file qgifhandler.cpp.
|
private |
Definition at line 93 of file qgifhandler.cpp.
QGIFFormat::QGIFFormat | ( | ) |
Constructs a QGIFFormat.
Definition at line 150 of file qgifhandler.cpp.
Referenced by QGifHandler::QGifHandler().
QGIFFormat::~QGIFFormat | ( | ) |
Definition at line 1028 of file qgifhandler.cpp.
Referenced by decode(), disposePrevious(), and fillRect().
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 236 of file qgifhandler.cpp.
|
private |
Definition at line 180 of file qgifhandler.cpp.
Referenced by decode().
Definition at line 927 of file qgifhandler.cpp.
Referenced by decode(), and disposePrevious().
|
private |
Definition at line 938 of file qgifhandler.cpp.
Referenced by decode().
Scans through the data stream defined by device and returns the image sizes found in the stream in the imageSizes vector.
Definition at line 664 of file qgifhandler.cpp.
Referenced by QGifHandler::imageCount(), QGifHandler::loopCount(), and QGifHandler::option().
|
private |
Definition at line 128 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 87 of file qgifhandler.cpp.
Referenced by decode(), and disposePrevious().
|
private |
Definition at line 126 of file qgifhandler.cpp.
Referenced by decode(), and disposePrevious().
|
private |
Definition at line 129 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 120 of file qgifhandler.cpp.
Referenced by decode(), disposePrevious(), and nextY().
|
private |
Definition at line 91 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 133 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 133 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 90 of file qgifhandler.cpp.
Referenced by decode(), QGIFFormat(), and scan().
|
private |
Definition at line 142 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 122 of file qgifhandler.cpp.
Referenced by decode(), disposePrevious(), and QGIFFormat().
|
private |
Definition at line 123 of file qgifhandler.cpp.
Referenced by decode(), disposePrevious(), and QGIFFormat().
|
private |
Definition at line 133 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 92 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 134 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 140 of file qgifhandler.cpp.
Referenced by decode(), disposePrevious(), and QGIFFormat().
|
private |
Definition at line 125 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 89 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 85 of file qgifhandler.cpp.
Referenced by color(), decode(), QGIFFormat(), and ~QGIFFormat().
|
private |
Definition at line 113 of file qgifhandler.cpp.
Referenced by decode(), and QGIFFormat().
|
private |
Definition at line 119 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 88 of file qgifhandler.cpp.
|
private |
Definition at line 134 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 127 of file qgifhandler.cpp.
|
private |
Definition at line 117 of file qgifhandler.cpp.
Referenced by color(), decode(), and QGIFFormat().
|
private |
Definition at line 120 of file qgifhandler.cpp.
Referenced by decode(), disposePrevious(), and nextY().
|
private |
Definition at line 114 of file qgifhandler.cpp.
Referenced by decode(), and QGIFFormat().
|
private |
Definition at line 86 of file qgifhandler.cpp.
Referenced by color(), decode(), QGIFFormat(), and ~QGIFFormat().
|
private |
Definition at line 116 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 133 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 133 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 115 of file qgifhandler.cpp.
|
private |
Definition at line 138 of file qgifhandler.cpp.
Referenced by decode().
bool QGIFFormat::newFrame |
Definition at line 77 of file qgifhandler.cpp.
Referenced by decode(), and QGIFFormat().
|
private |
Definition at line 134 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 141 of file qgifhandler.cpp.
Referenced by decode(), disposePrevious(), nextY(), and QGIFFormat().
bool QGIFFormat::partialNewFrame |
Definition at line 78 of file qgifhandler.cpp.
Referenced by decode(), and QGIFFormat().
|
private |
Definition at line 120 of file qgifhandler.cpp.
Referenced by decode(), disposePrevious(), and nextY().
|
private |
Definition at line 118 of file qgifhandler.cpp.
Referenced by decode(), disposePrevious(), and nextY().
|
private |
Definition at line 137 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 136 of file qgifhandler.cpp.
Referenced by decode(), QGIFFormat(), and ~QGIFFormat().
|
private |
Referenced by decode(), QGIFFormat(), and scan().
|
private |
Definition at line 118 of file qgifhandler.cpp.
Referenced by decode(), and disposePrevious().
|
private |
Definition at line 135 of file qgifhandler.cpp.
Referenced by decode(), and QGIFFormat().
|
private |
Definition at line 120 of file qgifhandler.cpp.
Referenced by decode(), disposePrevious(), and nextY().
|
private |
Definition at line 124 of file qgifhandler.cpp.
Referenced by color(), decode(), disposePrevious(), and nextY().
|
private |
Definition at line 119 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 139 of file qgifhandler.cpp.
Referenced by decode().
|
private |
Definition at line 139 of file qgifhandler.cpp.