[go: up one dir, main page]

Menu

[fbcc49]: / doc / liberror.xml  Maximize  Restore  History

Download this file

257 lines (225 with data), 8.3 kB

  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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE article PUBLIC
"-//OASIS//DTD DocBook XML V4.1.2//EN"
"docbook/docbookx.dtd" [
<!ENTITY homepage "http://catb.org/~esr/">
<!ENTITY email "esr@thyrsus.com">
]>
<article><title>GIFLIB error codes</title>
<articleinfo>
<author>
<firstname>Eric</firstname>
<othername>Steven</othername>
<surname>Raymond</surname>
<affiliation>
<orgname><ulink url="&homepage;">
Thyrsus Enterprises</ulink></orgname>
<address>
<email>&email;</email>
</address>
</affiliation>
</author>
<copyright>
<year>2012</year>
<holder role="mailto:&email;">Eric S. Raymond</holder>
</copyright>
</articleinfo>
<para>Errors as reported from the GIFLIB library are divided to two major
categories: the encoder (errors prefixed by E_GIF_ERR), and the
decoder (errors prefixed by D_GIF_ERR). This document explains them
briefly.</para>
<sect1><title>Encoding errors</title>
<variablelist>
<varlistentry>
<term><errorname>E_GIF_ERR_OpenFailed</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "Failed to open given file"
IO error result when attempt to open the given GIF file.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>E_GIF_ERR_WriteFailed</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "Failed to Write to given file"
IO error result when attempt to write to the given GIF file.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>E_GIF_ERR_HasScrnDscr</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "Screen Descriptor
already been set" Attempt to write second screen descriptor to same
GIF file. GIF file should have exactly one screen descriptor which
should be set directly after the file is opened.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>E_GIF_ERR_HasImagDscr</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "Image Descriptor is still active"
Image descriptor should be sent before and image dump, and no second
image descriptor should be sent before current image dump ended. This error
occurred probably because current image was not complete.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>E_GIF_ERR_NoColorMap</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "Neither Global Nor
Local color map" An image must have either global (screen) or local
(image) color map. Neither were given in this case.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>E_GIF_ERR_DataTooBig</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "#Pixels bigger than
Width * Height" The number of pixels dumped for this image is
bigger than specified by image Height times image Width.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>E_GIF_ERR_NotEnoughMem</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "Fail to allocate
required memory" Once an attemp is made to open GIF file, special
structures are allocated to hold internal data for it. If
allocation fails this error is returned.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>E_GIF_ERR_DiskIsFull</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "Write failed (disk full?)"
Writing encoded data failed.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>E_GIF_ERR_CloseFailed</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "Failed to close given file"
Closing file failed.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname> E_GIF_ERR_NotWriteable</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "Given file was not
opened for write" GIF files can be opened both for read (DGIF part
of library) and write (EGIF part of library). This error occurs
when a file is opened for read (using DGIF) is given to one of the
encoding (EGIF) routines.</para>
</listitem>
</varlistentry>
</variablelist>
</sect1>
<sect1><title>Encoding errors:</title>
<variablelist>
<varlistentry>
<term><errorname>D_GIF_ERR_OpenFailed</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "Failed to open given file"
IO error result when attempt to open the given GIF file.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>D_GIF_ERR_ReadFailed</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "Failed to Read from given file"
IO error result when attempt to write to the given GIF file.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>D_GIF_ERR_Notgif-file$</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "Given file is NOT GIF file"
GIF files should have special stamp identifies them as such, If that stamp
is not found, this error is issued.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>D_GIF_ERR_NoScrnDscr</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "No Screen Descriptor detected"
Each GIF file should have screen descriptor in its header. This error will
be generated if no such descriptor was found.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>D_GIF_ERR_NoImagDscr</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "No Image Descriptor detected"
Each image should have image descriptor in its header. This error will
be generated if no such descriptor was found.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>D_GIF_ERR_NoColorMap</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "Neither Global Nor
Local color map" An image must have either global (screen) or local
(image) color map. Neither were given in this case.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>D_GIF_ERR_WrongRecord</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "Wrong record type detected"
Each record in GIF file has special identifier, in its header. If the
record has wrong identifier, this error is generated.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>D_GIF_ERR_DataTooBig</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "#Pixels bigger than
Width * Height" The number of pixels dumped for this image is
bigger than specified by image Height times image Width.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>D_GIF_ERR_NotEnoughMem</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "Fail to allocate
required memory" Once an attemp is made to open GIF file, special
structures are allocated to hold internal data for it. If
allocation fails this error is returned.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>D_GIF_ERR_CloseFailed</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "Failed to close given file"
Closing file failed.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>D_GIF_ERR_NotReadable</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "Given file was not
opened for read" GIF files can be opened both for read (DGIF part
of library) and write (EGIF part of library). This error occurs
when a file is opened for write (using EGIF) is given to one of the
decoding (DGIF) routines.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>D_GIF_ERR_ImageDefect</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "Image is defective,
decoding aborted" This error is generated, once the decoding failed
- probably image is defect.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorname>D_GIF_ERR_EOFTooSoon</errorname></term>
<listitem>
<para>Message printed using PrintGifError: "Image EOF detected,
before image complete" This error is generated once EOF errorname
is detected in encoded image before all the pixels (Width *
Height) has be decoded.</para>
</listitem>
</varlistentry>
</variablelist>
</sect1>
</article>