Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
fc58b177
T
Third Party Libpng
项目概览
OpenHarmony
/
Third Party Libpng
12 个月 前同步成功
通知
4
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Libpng
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fc58b177
编写于
6月 16, 2012
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libpng16] Imported from libpng-1.6.0beta25.tar
上级
96b91705
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
36 addition
and
36 deletion
+36
-36
LICENSE
LICENSE
+3
-3
README
README
+1
-1
autogen.sh
autogen.sh
+2
-2
contrib/libtests/pngstest.c
contrib/libtests/pngstest.c
+19
-19
contrib/libtests/tarith.c
contrib/libtests/tarith.c
+2
-2
libpngpf.3
libpngpf.3
+1
-1
png.5
png.5
+1
-1
png.c
png.c
+2
-2
pngconf.h
pngconf.h
+1
-1
projects/vstudio/readme.txt
projects/vstudio/readme.txt
+1
-1
projects/vstudio/zlib.props
projects/vstudio/zlib.props
+1
-1
scripts/README.txt
scripts/README.txt
+1
-1
scripts/pnglibconf.h.prebuilt
scripts/pnglibconf.h.prebuilt
+1
-1
未找到文件。
LICENSE
浏览文件 @
fc58b177
...
...
@@ -10,8 +10,8 @@ this sentence.
This code is released under the libpng license.
libpng versions 1.2.6, August 15, 2004, through 1.6.0beta25, June
7
, 2012, are
Copyright (c) 2004, 2006-201
1
Glenn Randers-Pehrson, and are
libpng versions 1.2.6, August 15, 2004, through 1.6.0beta25, June
16
, 2012, are
Copyright (c) 2004, 2006-201
2
Glenn Randers-Pehrson, and are
distributed according to the same disclaimer and license as libpng-1.2.5
with the following individual added to the list of Contributing Authors
...
...
@@ -108,4 +108,4 @@ certification mark of the Open Source Initiative.
Glenn Randers-Pehrson
glennrp at users.sourceforge.net
June
7
, 2012
June
16
, 2012
README
浏览文件 @
fc58b177
README for libpng version 1.6.0beta25 - June
7
, 2012 (shared library 16.0)
README for libpng version 1.6.0beta25 - June
16
, 2012 (shared library 16.0)
See the note about version numbers near the top of png.h
See INSTALL for instructions on how to install libpng.
...
...
autogen.sh
浏览文件 @
fc58b177
...
...
@@ -213,7 +213,7 @@ case "$mode" in
exec
>
&2
echo
"Your system has a partial set of autotools generated files."
echo
"autogen.sh is unable to proceed. The full set of files is"
echo
"contained in the
distribution archive and you do not need to run
"
echo
"autogen.sh if you use it."
echo
"contained in the
libpng 'tar' distribution archive and you do
"
echo
"
not need to run
autogen.sh if you use it."
exit
1
;;
esac
contrib/libtests/pngstest.c
浏览文件 @
fc58b177
...
...
@@ -39,7 +39,7 @@
/* KNOWN ISSUES
*
* These defines switch on alternate algorithms for format conver
t
ions to match
* These defines switch on alternate algorithms for format conver
s
ions to match
* the current libpng implementation; they are set to allow pngstest to pass
* even though libpng is producing answers that are not as correct as they
* should be.
...
...
@@ -124,7 +124,7 @@ u16d(double d)
}
/* sRGB support: use exact calculations rounded to the nearest int, see the
* fesetround() call in main(). sRGB_to_d optimizes the 8 to 16-bit conver
t
ion.
* fesetround() call in main(). sRGB_to_d optimizes the 8 to 16-bit conver
s
ion.
*/
static
double
sRGB_to_d
[
256
];
static
double
g22_to_d
[
256
];
...
...
@@ -235,7 +235,7 @@ power_law_error16(int value)
if (value > 0 && value < 65535)
{
/* Round trip the value through an 8-bit representation but using
* non-matching to/from conver
t
ions.
* non-matching to/from conver
s
ions.
*/
double vd = value / 65535.;
double e = fabs(
...
...
@@ -1066,7 +1066,7 @@ get_pixel(png_uint_32 format))(Pixel *p, png_const_voidp pb)
* 3) Convert between 8-bit and 16-bit components. (Both directtions are
* relevant.)
*
* This gives the following base format conver
t
ion matrix:
* This gives the following base format conver
s
ion matrix:
*
* OUT: ----- 8-bit ----- ----- 16-bit -----
* IN G GA RGB RGBA G GA RGB RGBA
...
...
@@ -1160,7 +1160,7 @@ gpc_nop6(Pixel *out, const Pixel *in, const Background *back)
}
#endif
/* 8-bit to 8-bit conver
t
ions */
/* 8-bit to 8-bit conver
s
ions */
/* bckg: composite on gray background */
static
void
gpc_bckg
(
Pixel
*
out
,
const
Pixel
*
in
,
const
Background
*
back
)
...
...
@@ -1255,7 +1255,7 @@ gpc_g8b(Pixel *out, const Pixel *in, const Background *back)
out
->
a
=
255
;
}
/* 8-bit to 16-bit conver
t
ions */
/* 8-bit to 16-bit conver
s
ions */
/* lin: make sRGB components linear, alpha := 65535 */
static
void
gpc_lin
(
Pixel
*
out
,
const
Pixel
*
in
,
const
Background
*
back
)
...
...
@@ -1412,7 +1412,7 @@ gpc_gprq(Pixel *out, const Pixel *in, const Background *back)
out
->
a
=
65535
;
}
/* 8-bit to 16-bit conver
t
ions for gAMA 45455 encoded values */
/* 8-bit to 16-bit conver
s
ions for gAMA 45455 encoded values */
/* Lin: make gAMA 45455 components linear, alpha := 65535 */
static
void
gpc_Lin
(
Pixel
*
out
,
const
Pixel
*
in
,
const
Background
*
back
)
...
...
@@ -1583,7 +1583,7 @@ gpc_Gprq(Pixel *out, const Pixel *in, const Background *back)
}
#endif
/* 16-bit to 8-bit conver
t
ions */
/* 16-bit to 8-bit conver
s
ions */
/* sRGB: convert linear components to sRGB, alpha := 255 */
static
void
gpc_sRGB
(
Pixel
*
out
,
const
Pixel
*
in
,
const
Background
*
back
)
...
...
@@ -1809,7 +1809,7 @@ gpc_cb16(Pixel *out, const Pixel *in, const Background *back)
out
->
a
=
255
;
}
/* 16-bit to 16-bit conver
t
ions */
/* 16-bit to 16-bit conver
s
ions */
/* A: set alpha to 65535 */
static
void
gpc_A
(
Pixel
*
out
,
const
Pixel
*
in
,
const
Background
*
back
)
...
...
@@ -1900,13 +1900,13 @@ static void (* const gpc_fn_colormapped[8/*in*/][8/*out*/])
};
/* The error arrays record the error in the same matrix; 64 entries, however
* the different algorithms used in libpng for colormap and direct conver
t
ions
* the different algorithms used in libpng for colormap and direct conver
s
ions
* mean that four separate matrices are used (for each combination of
* colormapped and direct.)
*
* In some cases the conver
t
ion between sRGB formats goes via a linear
* intermediate; an sRGB to linear conver
t
ion (as above) is followed by a simple
* linear to sRGB step with no other conver
t
ions. This is done by a separate
* In some cases the conver
s
ion between sRGB formats goes via a linear
* intermediate; an sRGB to linear conver
s
ion (as above) is followed by a simple
* linear to sRGB step with no other conver
s
ions. This is done by a separate
* error array from an arbitrary 'in' format to one of the four basic outputs
* (since final output is always sRGB not colormapped).
*
...
...
@@ -2120,7 +2120,7 @@ typedef struct
}
Transform
;
/* Return a 'transform' as above for the given format conver
t
ion. */
/* Return a 'transform' as above for the given format conver
s
ion. */
static
void
transform_from_formats
(
Transform
*
result
,
Image
*
in_image
,
const
Image
*
out_image
,
png_const_colorp
background
,
int
via_linear
)
...
...
@@ -2185,10 +2185,10 @@ transform_from_formats(Transform *result, Image *in_image,
else
{
/* The caller handles the colormap->pixel value conver
t
ion, so the
/* The caller handles the colormap->pixel value conver
s
ion, so the
* transform function just gets a pixel value, however because libpng
* currently contains a different implementation for mapping a colormap if
* both input and output are colormapped we need different conver
t
ion
* both input and output are colormapped we need different conver
s
ion
* functions to deal with errors in the libpng implementation.
*/
if
(
in_format
&
out_format
&
PNG_FORMAT_FLAG_COLORMAP
)
...
...
@@ -2249,7 +2249,7 @@ transform_from_formats(Transform *result, Image *in_image,
result
->
background_color
.
ir
=
background
->
red
;
result
->
background_color
.
ig
=
background
->
green
;
result
->
background_color
.
ib
=
background
->
blue
;
/* TODO: sometimes libpng uses the power law conver
t
ion here, how
/* TODO: sometimes libpng uses the power law conver
s
ion here, how
* to handle this?
*/
result
->
background_color
.
dr
=
sRGB_to_d
[
background
->
red
];
...
...
@@ -2262,7 +2262,7 @@ transform_from_formats(Transform *result, Image *in_image,
result
->
background_color
.
ir
=
result
->
background_color
.
ig
=
result
->
background_color
.
ib
=
background
->
green
;
/* TODO: sometimes libpng uses the power law conver
t
ion here, how
/* TODO: sometimes libpng uses the power law conver
s
ion here, how
* to handle this?
*/
result
->
background_color
.
dr
=
...
...
@@ -2276,7 +2276,7 @@ transform_from_formats(Transform *result, Image *in_image,
result
->
background_color
.
ir
=
result
->
background_color
.
ig
=
result
->
background_color
.
ib
=
BUFFER_INIT8
;
/* TODO: sometimes libpng uses the power law conver
t
ion here, how
/* TODO: sometimes libpng uses the power law conver
s
ion here, how
* to handle this?
*/
result
->
background_color
.
dr
=
...
...
contrib/libtests/tarith.c
浏览文件 @
fc58b177
...
...
@@ -195,7 +195,7 @@ int validation_ascii_to_fp(int count, int argc, char **argv)
* code above is not optimized and may drift outside the .5 in
* DBL_DIG allowed. In any case a small number of errors may
* occur (very small ones - 1 or 2%) because of rounding in the
* calculations, either in the conver
t
ion API or in atof.
* calculations, either in the conver
s
ion API or in atof.
*/
if
(
change
>=
allow
&&
(
isfinite
(
out
)
||
fabs
(
test
/
DBL_MAX
)
<=
1
-
allow
))
...
...
@@ -942,7 +942,7 @@ int validation_gamma(int argc, char **argv)
/* Various validation routines are included herein, they require some
* definition for png_warning and png_error, seetings of VALIDATION:
*
* 1: validates the ASCII to floating point conver
t
ions
* 1: validates the ASCII to floating point conver
s
ions
* 2: validates png_muldiv
* 3: accuracy test of fixed point gamma tables
*/
...
...
libpngpf.3
浏览文件 @
fc58b177
.TH LIBPNGPF 3 "June
7
, 2012"
.TH LIBPNGPF 3 "June
16
, 2012"
.SH NAME
libpng \- Portable Network Graphics (PNG) Reference Library 1.6.0beta25
(private functions)
...
...
png.5
浏览文件 @
fc58b177
.TH PNG 5 "June
7
, 2012"
.TH PNG 5 "June
16
, 2012"
.SH NAME
png \- Portable Network Graphics (PNG) format
.SH DESCRIPTION
...
...
png.c
浏览文件 @
fc58b177
...
...
@@ -748,13 +748,13 @@ png_get_copyright(png_const_structrp png_ptr)
#else
# ifdef __STDC__
return
PNG_STRING_NEWLINE
\
"libpng version 1.6.0beta25 - June 1
2
, 2012"
PNG_STRING_NEWLINE
\
"libpng version 1.6.0beta25 - June 1
6
, 2012"
PNG_STRING_NEWLINE
\
"Copyright (c) 1998-2012 Glenn Randers-Pehrson"
PNG_STRING_NEWLINE
\
"Copyright (c) 1996-1997 Andreas Dilger"
PNG_STRING_NEWLINE
\
"Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc."
\
PNG_STRING_NEWLINE
;
# else
return
"libpng version 1.6.0beta25 - June 1
2
, 2012\
return
"libpng version 1.6.0beta25 - June 1
6
, 2012\
Copyright (c) 1998-2012 Glenn Randers-Pehrson\
Copyright (c) 1996-1997 Andreas Dilger\
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc."
;
...
...
pngconf.h
浏览文件 @
fc58b177
/* pngconf.h - machine configurable file for libpng
*
* libpng version 1.6.0beta25 - June
7
, 2012
* libpng version 1.6.0beta25 - June
16
, 2012
*
* Copyright (c) 1998-2012 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
...
...
projects/vstudio/readme.txt
浏览文件 @
fc58b177
VisualStudio instructions
libpng version 1.6.0beta25 - June
7
, 2012
libpng version 1.6.0beta25 - June
16
, 2012
Copyright (c) 1998-2010 Glenn Randers-Pehrson
...
...
projects/vstudio/zlib.props
浏览文件 @
fc58b177
...
...
@@ -2,7 +2,7 @@
<!--
* zlib.props - location of zlib source
*
* libpng version 1.6.0beta25 - June
7
, 2012
* libpng version 1.6.0beta25 - June
16
, 2012
*
* Copyright (c) 1998-2011 Glenn Randers-Pehrson
*
...
...
scripts/README.txt
浏览文件 @
fc58b177
Makefiles for libpng version 1.6.0beta25 - June
7
, 2012
Makefiles for libpng version 1.6.0beta25 - June
16
, 2012
pnglibconf.h.prebuilt => Stores configuration settings
makefile.linux => Linux/ELF makefile
...
...
scripts/pnglibconf.h.prebuilt
浏览文件 @
fc58b177
...
...
@@ -3,7 +3,7 @@
/* pnglibconf.h - library build configuration */
/* Libpng 1.6.0beta25 - June
7
, 2012 */
/* Libpng 1.6.0beta25 - June
16
, 2012 */
/* Copyright (c) 1998-2012 Glenn Randers-Pehrson */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录