49
En
07
co
p
y
r
ighted mate
r
ial, only this license, o
r
anothe
r
one
cont
r
acted with the autho
r
s, g
r
ants you the
r
ight to use,
dist
r
ibute, and modify it. The
r
efo
r
e, by using,
dist
r
ibuting, o
r
modifying the F
r
eeTy
p
e P
r
oject, you
indicate that you unde
r
stand and acce
p
t all the te
r
ms of
this license.
4. Contacts
The
r
e a
r
e two mailing lists
r
elated to F
r
eeTy
p
e:
• f
r
eety
p
r
g
Discusses gene
r
al use and a
pp
lications of F
r
eeTy
p
e,
as well as futu
r
e and wanted additions to the lib
r
a
r
y
and dist
r
ibution. If you a
r
e looking fo
r
su
pp
o
r
t, sta
r
t in
this list if you haven’t found anything to hel
p
you in the
documentation.
• f
r
eety
p
r
g
Discusses bugs, as well as engine inte
r
nals, design
issues, s
p
ecific licenses,
p
o
r
ting, etc.
Ou
r
home
p
age can be found at
htt
p
://www.f
r
eety
p
e.o
r
g
libpng
COPYRIGHT NOTICE, DISCLAIMER, and LICENSE:
If you modify lib
p
ng you may inse
r
t additional notices
immediately following this sentence.
lib
p
ng ve
r
sions 1.2.6, August 15, 2004, th
r
ough 1.2.26, A
pr
il
2, 2008, a
r
e Co
p
y
r
ight © 2004, 2006-2008 Glenn Rande
r
s-
Peh
r
son, and a
r
e dist
r
ibuted acco
r
ding to the same
disclaime
r
and license as lib
p
ng-1.2.5 with the following
individual added to the list of Cont
r
ibuting Autho
r
s
Cosmin T
r
uta
lib
p
ng ve
r
sions 1.0.7, July 1, 2000, th
r
ough 1.2.5 - Octobe
r
3, 2002, a
r
e Co
p
y
r
ight © 2000-2002 Glenn Rande
r
s-
Peh
r
son, and a
r
e dist
r
ibuted acco
r
ding to the same
disclaime
r
and license as lib
p
ng-1.0.6 with the following
individuals added to the list of Cont
r
ibuting Autho
r
s
Simon-Pie
rr
e Cadieux
E
r
ic S. Raymond
Gilles Vollant
and with the following additions to the disclaime
r
:
The
r
e is no wa
rr
anty against inte
r
fe
r
ence with you
r
enjoyment of the lib
r
a
r
y o
r
against inf
r
ingement. The
r
e is
no wa
rr
anty that ou
r
effo
r
ts o
r
the lib
r
a
r
y will fulfill any of
you
r
p
a
r
ticula
r
p
u
rp
oses o
r
needs. This lib
r
a
r
y is
pr
ovided
with all faults, and the enti
r
e
r
isk of satisfacto
r
y quality,
p
e
r
fo
r
mance, accu
r
acy, and effo
r
t is with the use
r
.
lib
p
ng ve
r
sions 0.97, Janua
r
y 1998, th
r
ough 1.0.6, Ma
r
ch
20, 2000, a
r
e Co
p
y
r
ight © 1998, 1999 Glenn Rande
r
s-
Peh
r
son, and a
r
e dist
r
ibuted acco
r
ding to the same
disclaime
r
and license as lib
p
ng-0.96, with the following
individuals added to the list of Cont
r
ibuting Autho
r
s:
Tom Lane
Glenn Rande
r
s-Peh
r
son
Willem van Schaik
lib
p
ng ve
r
sions 0.89, June 1996, th
r
ough 0.96, May 1997,
a
r
e Co
p
y
r
ight © 1996, 1997 And
r
eas Dilge
r
Dist
r
ibuted
acco
r
ding to the same disclaime
r
and license as lib
p
ng-
0.88, with the following individuals added to the list of
Cont
r
ibuting Autho
r
s:
John Bowle
r
Kevin B
r
acey
Sam Bushell
Magnus Holmg
r
en
G
r
eg Roelofs
Tom Tanne
r
lib
p
ng ve
r
sions 0.5, May 1995, th
r
ough 0.88, Janua
r
y 1996,
a
r
e Co
p
y
r
ight © 1995, 1996 Guy E
r
ic Schalnat, G
r
ou
p
42,
Inc.
Fo
r
the
p
u
rp
oses of this co
p
y
r
ight and license,
“Cont
r
ibuting Autho
r
s” is defined as the following set of
individuals:
And
r
eas Dilge
r
Dave Ma
r
tindale
Guy E
r
ic Schalnat
Paul Schmidt
Tim Wegne
r
The PNG Refe
r
ence Lib
r
a
r
y is su
pp
lied “AS IS”. The
Cont
r
ibuting Autho
r
s and G
r
ou
p
42, Inc. disclaim all
wa
rr
anties, ex
pr
essed o
r
im
p
lied, including, without
limitation, the wa
rr
anties of me
r
chantability and of fitness
fo
r
any
p
u
rp
ose. The Cont
r
ibuting Autho
r
s and G
r
ou
p
42,
Inc. assume no liability fo
r
di
r
ect, indi
r
ect, incidental,
s
p
ecial, exem
p
la
r
y, o
r
consequential damages, which may
r
esult f
r
om the use of the PNG Refe
r
ence Lib
r
a
r
y, even if
advised of the
p
ossibility of such damage.
Pe
r
mission is he
r
eby g
r
anted to use, co
p
y, modify, and
dist
r
ibute this sou
r
ce code, o
r
p
o
r
tions he
r
eof, fo
r
any
p
u
rp
ose, without fee, subject to the following
r
est
r
ictions:
1. The o
r
igin of this sou
r
ce code must not be mis
r
e
pr
esented.
2. Alte
r
ed ve
r
sions must be
p
lainly ma
r
ked as such and
must not be mis
r
e
pr
esented as being the o
r
iginal sou
r
ce.
3. This Co
p
y
r
ight notice may not be
r
emoved o
r
alte
r
ed f
r
om
any sou
r
ce o
r
alte
r
ed sou
r
ce dist
r
ibution.
The Cont
r
ibuting Autho
r
s and G
r
ou
p
42, Inc. s
p
ecifically
p
e
r
mit, without fee, and encou
r
age the use of this sou
r
ce
code as a com
p
onent to su
pp
o
r
ting the PNG file fo
r
mat in
comme
r
cial
pr
oducts. If you use this sou
r
ce code in a
pr
oduct, acknowledgment is not
r
equi
r
ed but would be
a
ppr
eciated.
A “
p
ng_get_co
p
y
r
ight” function is available, fo
r
convenient
use in “about” boxes and the like:
pr
intf(“%s”,
p
ng_get_co
p
y
r
ight(NULL));Also, the PNG logo
(in PNG fo
r
mat, of cou
r
se) is su
pp
lied in the files
“
p
ngba
r
.
p
ng” and “
p
ngba
r
.j
p
g (88x31) and “
p
ngnow.
p
ng”
(98x31).
Lib
p
ng is OSI Ce
r
tified O
p
en Sou
r
ce Softwa
r
e. OSI Ce
r
tified
O
p
en Sou
r
ce is a ce
r
tification ma
r
k of the O
p
en Sou
r
ce
Initiative.
Glenn Rande
r
s-Peh
r
son
glenn
rp
at use
r
s.sou
r
cefo
r
ge.net
2-A
pr
-08
libjpg
The Inde
p
endent JPEG G
r
ou
p
’s JPEG softwa
r
e
README fo
r
r
elease 6b of 27-Ma
r
-1998
This dist
r
ibution contains the sixth
p
ublic
r
elease of the
Inde
p
endent JPEG G
r
ou
p
’s f
r
ee JPEG softwa
r
e. You a
r
e
welcome to
r
edist
r
ibute this softwa
r
e and to use it fo
r
any
p
u
rp
ose, subject to the conditions unde
r
LEGAL ISSUES,
below.
Se
r
ious use
r
s of this softwa
r
e (
p
a
r
ticula
r
ly those
inco
rp
o
r
ating it into la
r
ge
r
pr
og
r
ams) should contact IJG at
j
p
[email protected] to be added to ou
r
elect
r
onic
mailing list. Mailing list membe
r
s a
r
e notified of u
p
dates
and have a chance to
p
a
r
tici
p
ate in technical discussions,
etc.
This softwa
r
e is the wo
r
k of Tom Lane, Phili
p
Gladstone, Jim
Bouche
r
, Lee C
r
ocke
r
, Julian Minguillon, Luis O
r
tiz, Geo
r
ge
Philli
p
s, Davide Rossi, Guido Vollbeding, Ge’ Weije
r
s, and
othe
r
membe
r
s of the Inde
p
endent JPEG G
r
ou
p
.
IJG is not affiliated with the official ISO JPEG standa
r
ds
committee.
DOCUMENTATION ROADMAP
This file contains the following sections:
OVERVIEW
Gene
r
al desc
r
i
p
tion of JPEG and
the IJG softwa
r
e.
LEGAL ISSUES
Co
p
y
r
ight, lack of wa
rr
anty, te
r
ms
of dist
r
ibution.
REFERENCES
Whe
r
e to lea
r
n mo
r
e about JPEG.
ARCHIVE LOCATIONS Whe
r
e to find newe
r
ve
r
sions of
this softwa
r
e.
RELATED SOFTWARE Othe
r
stuff you should get.
FILE FORMAT WARS
Softwa
r
e *not* to get.
TO DO
Plans fo
r
futu
r
e IJG
r
eleases.
Othe
r
documentation files in the dist
r
ibution a
r
e:
Use
r
documentation:
install.doc How
to
configu
r
e and install the IJG
softwa
r
e.
usage.doc Usage
inst
r
uctions fo
r
cj
p
eg, dj
p
eg,
j
p
egt
r
an,
r
dj
p
gcom, and w
r
j
p
gcom.
*.1 Unix-style man
p
ages fo
r
pr
og
r
ams (same info as
usage.doc).
wiza
r
d.doc
Advanced usage inst
r
uctions fo
r
JPEG
wiza
r
ds only.
change.log
Ve
r
sion-to-ve
r
sion change highlights.
P
r
og
r
amme
r
and inte
r
nal documentation:
libj
p
eg.doc
How to use the JPEG lib
r
a
r
y in you
r
own
pr
og
r
ams.
exam
p
le.c
Sam
p
le code fo
r
calling the JPEG lib
r
a
r
y.
st
r
uctu
r
e.doc Ove
r
view of the JPEG lib
r
a
r
y’s inte
r
nal
st
r
uctu
r
e.
filelist.doc
Road ma
p
of IJG files.
code
r
ules.doc Coding style
r
ules ---
p
lease
r
ead if you
cont
r
ibute code.
Please
r
ead at least the files install.doc and usage.doc.
Useful info
r
mation can also be found in the JPEG FAQ
(F
r
equently Asked Questions) a
r
ticle. See ARCHIVE
LOCATIONS below to find out whe
r
e to obtain the FAQ
a
r
ticle.
If you want to unde
r
stand how the JPEG code wo
r
ks, we
suggest
r
eading one o
r
mo
r
e of the REFERENCES, then
looking at the documentation files (in
r
oughly the o
r
de
r
listed) befo
r
e diving into the code.
OVERVIEW
This
p
ackage contains C softwa
r
e to im
p
lement JPEG
image com
pr
ession and decom
pr
ession. JPEG
(
pr
onounced “jay-
p
eg”) is a standa
r
dized com
pr
ession
method fo
r
full-colo
r
and g
r
ay-scale images. JPEG is
intended fo
r
com
pr
essing
r
eal-wo
r
ld scenes; line d
r
awings,
ca
r
toons and othe
r
non-
r
ealistic images a
r
e not its st
r
ong
suit. JPEG is lossy, meaning that the out
p
ut image is not
exactly identical to the in
p
ut image. Hence you must not
use JPEG if you have to have identical out
p
ut bits. Howeve
r
,
on ty
p
ical
p
hotog
r
a
p
hic images, ve
r
y good com
pr
ession
levels can be obtained with no visible change, and
r
ema
r
kably high com
pr
ession levels a
r
e
p
ossible if you can
tole
r
ate a low-quality image. Fo
r
mo
r
e details, see the
r
efe
r
ences, o
r
just ex
p
e
r
iment with va
r
ious com
pr
ession
settings.
This softwa
r
e im
p
lements JPEG baseline, extended-
sequential, and
pr
og
r
essive com
pr
ession
pr
ocesses.
P
r
ovision is made fo
r
su
pp
o
r
ting all va
r
iants of these
pr
ocesses, although some uncommon
p
a
r
amete
r
settings
a
r
en’t im
p
lemented yet. Fo
r
legal
r
easons, we a
r
e not
dist
r
ibuting code fo
r
the a
r
ithmetic-coding va
r
iants of
JPEG; see LEGAL ISSUES. We have made no
pr
ovision fo
r
su
pp
o
r
ting the hie
r
a
r
chical o
r
lossless
pr
ocesses defined
in the standa
r
d.
We
pr
ovide a set of lib
r
a
r
y
r
outines fo
r
r
eading and w
r
iting
JPEG image files,
p
lus two sam
p
le a
pp
lications “cj
p
eg” and
“dj
p
eg”, which use the lib
r
a
r
y to
p
e
r
fo
r
m conve
r
sion
between JPEG and some othe
r
p
o
p
ula
r
image file fo
r
mats.
The lib
r
a
r
y is intended to be
r
eused in othe
r
a
pp
lications.
In o
r
de
r
to su
pp
o
r
t file conve
r
sion and viewing softwa
r
e, we
have included conside
r
able functionality beyond the ba
r
e
JPEG coding/decoding ca
p
ability; fo
r
exam
p
le, the colo
r
quantization modules a
r
e not st
r
ictly
p
a
r
t of JPEG
decoding, but they a
r
e essential fo
r
out
p
ut to colo
r
ma
pp
ed
file fo
r
mats o
r
colo
r
ma
pp
ed dis
p
lays. These ext
r
a functions
can be com
p
iled out of the lib
r
a
r
y if not
r
equi
r
ed fo
r
a
p
a
r
ticula
r
a
pp
lication. We have also included j
p
egt
r
an, a
utility fo
r
lossless t
r
anscoding between diffe
r
ent JPEG
pr
ocesses, and “
r
dj
p
gcom” and “w
r
j
p
gcom”, two sim
p
le
a
pp
lications fo
r
inse
r
ting and ext
r
acting textual comments
in JFIF files.
The em
p
hasis in designing this softwa
r
e has been on
achieving
p
o
r
tability and flexibility, while also making it fast
enough to be useful. In
p
a
r
ticula
r
, the softwa
r
e is not
intended to be
r
ead as a tuto
r
ial on JPEG. (See the
REFERENCES section fo
r
int
r
oducto
r
y mate
r
ial.) Rathe
r
, it
is intended to be
r
eliable,
p
o
r
table, indust
r
ial-st
r
ength
code. We do not claim to have achieved that goal in eve
r
y
as
p
ect of the softwa
r
e, but we st
r
ive fo
r
it.
We welcome the use of this softwa
r
e as a com
p
onent of
comme
r
cial
pr
oducts. No
r
oyalty is
r
equi
r
ed, but we do ask
fo
r
an acknowledgement in
pr
oduct documentation, as
desc
r
ibed unde
r
LEGAL ISSUES.
LEGAL ISSUES
In
p
lain English:
1. We don’t
pr
omise that this softwa
r
e wo
r
ks. (But if you
find any bugs,
p
lease let us know!)
2. You can use this softwa
r
e fo
r
whateve
r
you want. You
don’t have to
p
ay us.
3. You may not
pr
etend that you w
r
ote this softwa
r
e. If you
use it in a
pr
og
r
am, you must acknowledge somewhe
r
e
in you
r
documentation that you’ve used the IJG code.
In legalese:
The autho
r
s make NO WARRANTY o
r
r
e
pr
esentation, eithe
r
ex
pr
ess o
r
im
p
lied, with
r
es
p
ect to this softwa
r
e, its quality,
accu
r
acy, me
r
chantability, o
r
fitness fo
r
a
p
a
r
ticula
r
p
u
rp
ose. This softwa
r
e is
pr
ovided “AS IS”, and you, its
use
r
, assume the enti
r
e
r
isk as to its quality and accu
r
acy.
This softwa
r
e is co
p
y
r
ight © 1991-1998, Thomas G. Lane. All
Rights Rese
r
ved exce
p
t as s
p
ecified below.
Pe
r
mission is he
r
eby g
r
anted to use, co
p
y, modify, and
dist
r
ibute this softwa
r
e (o
r
p
o
r
tions the
r
eof) fo
r
any
p
u
rp
ose, without fee, subject to these conditions:
(1)If any
p
a
r
t of the sou
r
ce code fo
r
this softwa
r
e is
dist
r
ibuted, then this README file must be included,
with this co
p
y
r
ight and no-wa
rr
anty notice unalte
r
ed;
and any additions, deletions, o
r
changes to the o
r
iginal
files must be clea
r
ly indicated in accom
p
anying
documentation.
(2)If only executable code is dist
r
ibuted, then the
accom
p
anying documentation must state that “this
softwa
r
e is based in
p
a
r
t on the wo
r
k of the Inde
p
endent
JPEG G
r
ou
p
”.
(3)Pe
r
mission fo
r
use of this softwa
r
e is g
r
anted only if the
use
r
acce
p
ts full
r
es
p
onsibility fo
r
any undesi
r
able
consequences; the autho
r
s acce
p
t NO LIABILITY fo
r
damages of any kind.
These conditions a
pp
ly to any softwa
r
e de
r
ived f
r
om o
r
based on the IJG code, not just to the unmodified lib
r
a
r
y. If
you use ou
r
wo
r
k, you ought to acknowledge us.
Pe
r
mission is NOT g
r
anted fo
r
the use of any IJG autho
r
’s
name o
r
com
p
any name in adve
r
tising o
r
p
ublicity
r
elating
to this softwa
r
e o
r
pr
oducts de
r
ived f
r
om it. This softwa
r
e
may be
r
efe
rr
ed to only as “the Inde
p
endent JPEG G
r
ou
p
’s
softwa
r
e”.
We s
p
ecifically
p
e
r
mit and encou
r
age the use of this
softwa
r
e as the basis of comme
r
cial
pr
oducts,
pr
ovided
that all wa
rr
anty o
r
liability claims a
r
e assumed by the
pr
oduct vendo
r
.
ansi2kn
r
.c is included in this dist
r
ibution by
p
e
r
mission of
L. Pete
r
Deutsch, sole
pr
o
pr
ieto
r
of its co
p
y
r
ight holde
r
,
Aladdin Ente
rpr
ises of Menlo Pa
r
k, CA. ansi2kn
r
.c is NOT
cove
r
ed by the above co
p
y
r
ight and conditions, but instead
by the usual dist
r
ibution te
r
ms of the F
r
ee Softwa
r
e
Foundation;
pr
inci
p
ally, that you must include sou
r
ce code
if you
r
edist
r
ibute it. (See the file ansi2kn
r
.c fo
r
full details.)
Howeve
r
, since ansi2kn
r
.c is not needed as
p
a
r
t of any
pr
og
r
am gene
r
ated f
r
om the IJG code, this does not limit
you mo
r
e than the fo
r
egoing
p
a
r
ag
r
a
p
hs do.
The Unix configu
r
ation sc
r
i
p
t “configu
r
e” was
pr
oduced
with GNU Autoconf. It is co
p
y
r
ight by the F
r
ee Softwa
r
e
Foundation but is f
r
eely dist
r
ibutable. The same holds fo
r
its
su
pp
o
r
ting sc
r
i
p
ts (config.guess, config.sub, ltconfig,
ltmain.sh). Anothe
r
su
pp
o
r
t sc
r
i
p
t, install-sh, is co
p
y
r
ight
by M.I.T. but is also f
r
eely dist
r
ibutable.
LX52_VXJ5_IBD_EN.book 49 ページ 2009年3月3日 火曜日 午後7時29分