1QImageFormat(3qt)                                            QImageFormat(3qt)
2
3
4

NAME

6       QImageFormat - Incremental image decoder for a specific image format
7

SYNOPSIS

9       #include <qasyncimageio.h>
10
11   Public Members
12       virtual int decode ( QImage & img, QImageConsumer * consumer, const
13           uchar * buffer, int length ) = 0
14

DESCRIPTION

16       The QImageFormat class is an incremental image decoder for a specific
17       image format.
18
19       By making a derived class of QImageFormatType, which in turn creates
20       objects that are a subclass of QImageFormat, you can add support for
21       more incremental image formats, allowing such formats to be sources for
22       a QMovie or for the first frame of the image stream to be loaded as a
23       QImage or QPixmap.
24
25       Your new subclass must reimplement the decode() function in order to
26       process your new format.
27
28       New QImageFormat objects are generated by new QImageFormatType
29       factories.
30
31       See also Graphics Classes, Image Processing Classes, and Multimedia
32       Classes.
33

MEMBER FUNCTION DOCUMENTATION

int QImageFormat::decode ( QImage & img, QImageConsumer * consumer, const

36       uchar * buffer, int length ) [pure virtual]
37       New subclasses must reimplement this method.
38
39       It should decode some or all of the bytes from buffer into img, calling
40       the methods of consumer as the decoding proceeds to inform that
41       consumer of changes to the image. The length of the data is given in
42       length. The consumer may be 0, in which case the function should just
43       process the data into img without telling any consumer about the
44       changes. Note that the decoder must store enough state to be able to
45       continue in subsequent calls to this method - this is the essence of
46       the incremental image loading.
47
48       The function should return without processing all the data if it
49       reaches the end of a frame in the input.
50
51       The function must return the number of bytes it has processed.
52
53

SEE ALSO

55       http://doc.trolltech.com/qimageformat.html
56       http://www.trolltech.com/faq/tech.html
57
59       Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
60       license file included in the distribution for a complete license
61       statement.
62

AUTHOR

64       Generated automatically from the source code.
65

BUGS

67       If you find a bug in Qt, please report it as described in
68       http://doc.trolltech.com/bughowto.html.  Good bug reports help us to
69       help you. Thank you.
70
71       The definitive Qt documentation is provided in HTML format; it is
72       located at $QTDIR/doc/html and can be read using Qt Assistant or with a
73       web browser. This man page is provided as a convenience for those users
74       who prefer man pages, although this format is not officially supported
75       by Trolltech.
76
77       If you find errors in this manual page, please report them to qt-
78       bugs@trolltech.com.  Please include the name of the manual page
79       (qimageformat.3qt) and the Qt version (3.3.8).
80
81
82
83Trolltech AS                    2 February 2007              QImageFormat(3qt)
Impressum