File: qimagedecoder.html

package info (click to toggle)
qt-embedded 2.3.2-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 68,608 kB
  • ctags: 45,998
  • sloc: cpp: 276,654; ansic: 71,987; makefile: 29,074; sh: 12,305; yacc: 2,465; python: 1,863; perl: 481; lex: 480; xml: 68; lisp: 15
file content (108 lines) | stat: -rw-r--r-- 6,726 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Qt Toolkit - QImageDecoder Class</title><style type="text/css"><!--
h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }
--></style>
</head><body bgcolor="#ffffff">

<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>

<h1 align=center>QImageDecoder Class Reference</h1><br clear="all">
<p>
Incremental image decoder for all supported image formats.
<a href="#details">More...</a>
<p>
<code>#include &lt;<a href="qasyncimageio-h.html">qasyncimageio.h</a>&gt;</code>
<p><a href="qimagedecoder-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn"><a href="#205a77"><b>QImageDecoder</b></a>(QImageConsumer*c)</div>
<li><div class="fn"><a href="#c3af87"><b>~QImageDecoder</b></a>()</div>
<li><div class="fn">constQImage&amp;<a href="#19be86"><b>image</b></a>()</div>
<li><div class="fn">int<a href="#06749a"><b>decode</b></a>(constuchar*buffer, intlength)</div>
</ul>
<h2>Static Public Members</h2>
<ul>
<li><div class="fn">constchar*<a href="#bb2d60"><b>formatName</b></a>(constuchar*buffer, intlength)</div>
<li><div class="fn">QImageFormatType*<a href="#7fb69f"><b>format</b></a>(constchar*name)</div>
<li><div class="fn">QStrList<a href="#576dce"><b>inputFormats</b></a>()</div>
<li><div class="fn">void<a href="#5150d8"><b>registerDecoderFactory</b></a>(QImageFormatType*)</div>
<li><div class="fn">void<a href="#189e1b"><b>unregisterDecoderFactory</b></a>(QImageFormatType*)</div>
</ul>
<hr><h2><a name="details"></a>Detailed Description</h2>
Incremental image decoder for all supported image formats.
<p>
New formats are installed by creating objects of class
<a href="qimageformattype.html">QImageFormatType</a>, and the <a href="qmovie.html">QMovie</a> class can be used for using
all installed incremental image formats; QImageDecoder is only
useful for creating new ways of feeding data to an <a href="qimageconsumer.html">QImageConsumer</a>.
<p>Qt supports GIF reading, if it is configured that way during
installation (see qgif.h). If it is, we are required to state that
"The Graphics Interchange Format(c) is the Copyright property of
CompuServe Incorporated. GIF(sm) is a Service Mark property of
CompuServe Incorporated.".

<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a name="205a77"></a>QImageDecoder::QImageDecoder(<a href="qimageconsumer.html">QImageConsumer</a>*c)</h3>
<p>Constructs a QImageDecoder which will send change information to
a given <a href="qimageconsumer.html">QImageConsumer</a>.
<h3 class="fn"><a name="c3af87"></a>QImageDecoder::~QImageDecoder()</h3>
<p>Destroys a QImageDecoder.  The image it built is destroyed.  The decoder
built by the factory for the file format is destroyed. The consumer
for which it decoded the image is <em>not</em> destroyed.
<h3 class="fn">int<a name="06749a"></a>QImageDecoder::decode(constuchar*buffer, intlength)</h3>
<p>Call this function to decode some data into image changes.  The data
will be decoded, sending change information to the <a href="qimageconsumer.html">QImageConsumer</a> of
this QImageDecoder, until one of the change functions of the consumer
returns FALSE.
<p>Returns the number of bytes consumed, 0 if consumption is complete,
and -1 if decoding fails due to invalid data.
<h3 class="fn"><a href="qimageformattype.html">QImageFormatType</a>*<a name="7fb69f"></a>QImageDecoder::format(constchar*name) <code>[static]</code></h3>
<p>Returns a <a href="qimageformattype.html">QImageFormatType</a> by name. This might be used in cases where
the user needs to force data to be interpreted as being in a certain
format.  <em>name</em> is one of the formats listed by
<a href="#576dce">QImageDecoder::inputFormats</a>(). Note that you will still need to supply
decodable data to result->decoderFor() before you can begin decoding
the data.
<h3 class="fn">constchar*<a name="bb2d60"></a>QImageDecoder::formatName(constuchar*buffer, intlength) <code>[static]</code></h3>
<p>Call this function to find the name of the format of the given header.
The returned string is statically allocated.
<p>Returns 0 if the format is not recognized.
<h3 class="fn">const<a href="qimage.html">QImage</a>&amp;<a name="19be86"></a>QImageDecoder::image()</h3>
<p>Returns the image currently being decoded.
<h3 class="fn"><a href="qstrlist.html">QStrList</a><a name="576dce"></a>QImageDecoder::inputFormats() <code>[static]</code></h3>
<p>Returns a sorted list of formats for which asynchronous loading is supported.
<h3 class="fn">void<a name="5150d8"></a>QImageDecoder::registerDecoderFactory(<a href="qimageformattype.html">QImageFormatType</a>*f) <code>[static]</code></h3>
<p>Registers a new <a href="qimageformattype.html">QImageFormatType</a>.  This is not needed in
application code as factories call this themselves.
<h3 class="fn">void<a name="189e1b"></a>QImageDecoder::unregisterDecoderFactory(<a href="qimageformattype.html">QImageFormatType</a>*f) <code>[static]</code></h3>
<p>Unregisters a new <a href="qimageformattype.html">QImageFormatType</a>.  This is not needed in
application code as factories call this themselves.
<hr><p>
Search the documentation, FAQ, qt-interest archive and more (uses
<a href="http://www.trolltech.com">www.trolltech.com</a>):<br>
<form method=post action="http://www.trolltech.com/search.cgi">
<input type=hidden name="version" value="2.3.2"><nobr>
<input size="50" name="search"><input type=submit value="Search">
</nobr></form><hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>,
copyright &copy; 1995-2001
<a href="http://www.trolltech.com">Trolltech</a>, all rights reserved.<p><address><hr><div align="center">
<table width="100%" cellspacing="0" border="0"><tr>
<td>Copyright  2001 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.2</div>
</table></div></address></body></html>