Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
81a65de2
T
Third Party Libpng
项目概览
OpenHarmony
/
Third Party Libpng
大约 1 年 前同步成功
通知
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,发现更多精彩内容 >>
提交
81a65de2
编写于
11月 25, 2018
作者:
C
Cosmin Truta
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Clean up config, scripts, examples, etc.
上级
702a07e7
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
219 addition
and
246 deletion
+219
-246
example.c
example.c
+198
-226
png.c
png.c
+8
-8
pngconf.h
pngconf.h
+2
-2
scripts/descrip.mms
scripts/descrip.mms
+2
-2
scripts/makefile.hp64
scripts/makefile.hp64
+1
-1
scripts/makefile.hpux
scripts/makefile.hpux
+1
-1
scripts/makefile.std
scripts/makefile.std
+1
-1
scripts/pnglibconf.dfa
scripts/pnglibconf.dfa
+2
-1
scripts/pnglibconf.h.prebuilt
scripts/pnglibconf.h.prebuilt
+4
-4
未找到文件。
example.c
浏览文件 @
81a65de2
此差异已折叠。
点击以展开。
png.c
浏览文件 @
81a65de2
...
@@ -3128,11 +3128,11 @@ png_ascii_from_fp(png_const_structrp png_ptr, png_charp ascii, size_t size,
...
@@ -3128,11 +3128,11 @@ png_ascii_from_fp(png_const_structrp png_ptr, png_charp ascii, size_t size,
/* The total output count (max) is now 4+precision */
/* The total output count (max) is now 4+precision */
/* Check for an exponent, if we don't need one we are
/* Check for an exponent, if we don't need one we are
* done and just need to terminate the string. At
* done and just need to terminate the string. At
this
*
this point exp_b10==(-1) is effectively a flag -
it got
*
point, exp_b10==(-1) is effectively a flag:
it got
* to '-1' because of the decrement after outputting
* to '-1' because of the decrement
,
after outputting
* the decimal point above
(t
he exponent required is
* the decimal point above
. (T
he exponent required is
* *not* -1
!
)
* *not* -1
.
)
*/
*/
if
(
exp_b10
>=
(
-
1
)
&&
exp_b10
<=
2
)
if
(
exp_b10
>=
(
-
1
)
&&
exp_b10
<=
2
)
{
{
...
@@ -3978,10 +3978,10 @@ png_build_16bit_table(png_structrp png_ptr, png_uint_16pp *ptable,
...
@@ -3978,10 +3978,10 @@ png_build_16bit_table(png_structrp png_ptr, png_uint_16pp *ptable,
/* CSE the division and work round wacky GCC warnings (see the comments
/* CSE the division and work round wacky GCC warnings (see the comments
* in png_gamma_8bit_correct for where these come from.)
* in png_gamma_8bit_correct for where these come from.)
*/
*/
const
double
fmax
=
1
.
/
(((
png_int_32
)
1
<<
(
16U
-
shift
))
-
1
);
double
fmax
=
1
.
0
/
(((
png_int_32
)
1
<<
(
16U
-
shift
))
-
1
);
#endif
#endif
unsigned
int
max
=
(
1U
<<
(
16U
-
shift
))
-
1U
;
unsigned
int
max
=
(
1U
<<
(
16U
-
shift
))
-
1U
;
unsigned
int
max_by_2
=
1U
<<
(
15U
-
shift
);
unsigned
int
max_by_2
=
1U
<<
(
15U
-
shift
);
unsigned
int
i
;
unsigned
int
i
;
png_uint_16pp
table
=
*
ptable
=
png_uint_16pp
table
=
*
ptable
=
...
...
pngconf.h
浏览文件 @
81a65de2
...
@@ -63,8 +63,8 @@
...
@@ -63,8 +63,8 @@
*/
*/
#define PNG_CONST const
/* backward compatibility only */
#define PNG_CONST const
/* backward compatibility only */
/* This controls optimization of the reading of 16-bit and 32-bit
values
/* This controls optimization of the reading of 16-bit and 32-bit
*
from PNG files. It can be set on a per-app-file basis -
it
*
values from PNG files. It can be set on a per-app-file basis:
it
* just changes whether a macro is used when the function is called.
* just changes whether a macro is used when the function is called.
* The library builder sets the default; if read functions are not
* The library builder sets the default; if read functions are not
* built into the library the macro implementation is forced on.
* built into the library the macro implementation is forced on.
...
...
scripts/descrip.mms
浏览文件 @
81a65de2
...
@@ -16,10 +16,10 @@ OBJS = png.obj, pngset.obj, pngget.obj, pngrutil.obj, pngtrans.obj,\
...
@@ -16,10 +16,10 @@ OBJS = png.obj, pngset.obj, pngget.obj, pngrutil.obj, pngtrans.obj,\
CFLAGS= $(C_DEB) $(CC_DEFS) $(PREF)
CFLAGS= $(C_DEB) $(CC_DEFS) $(PREF)
all : pngtest.exe libpng.olb
all : pngtest.exe libpng.olb
@ write sys$output " pngtest available"
@ write sys$output " pngtest available"
libpng.olb : libpng.olb($(OBJS))
libpng.olb : libpng.olb($(OBJS))
@ write sys$output "
L
ibpng available"
@ write sys$output "
l
ibpng available"
pngtest.exe : pngtest.obj libpng.olb
pngtest.exe : pngtest.obj libpng.olb
...
...
scripts/makefile.hp64
浏览文件 @
81a65de2
# makefile for libpng, HPUX (10.20 and 11.00) using the ANSI/C product.
# makefile for libpng, HPUX (10.20 and 11.00) using the ANSI/C product.
# Copyright (C) 1999-2002, 2006, 2009, 2010-2014 Glenn Randers-Pehrson
# Copyright (C) 1999-2002, 2006, 2009, 2010-2014 Glenn Randers-Pehrson
# Copyright (C) 1995 Guy Eric Schalnat, Group 42
# Copyright (C) 1995 Guy Eric Schalnat, Group 42
#
c
ontributed by Jim Rice and updated by Chris Schleicher, Hewlett Packard
#
C
ontributed by Jim Rice and updated by Chris Schleicher, Hewlett Packard
#
#
# This code is released under the libpng license.
# This code is released under the libpng license.
# For conditions of distribution and use, see the disclaimer
# For conditions of distribution and use, see the disclaimer
...
...
scripts/makefile.hpux
浏览文件 @
81a65de2
# makefile for libpng, HPUX (10.20 and 11.00) using the ANSI/C product.
# makefile for libpng, HPUX (10.20 and 11.00) using the ANSI/C product.
# Copyright (C) 1999-2002, 2006, 2010-2014 Glenn Randers-Pehrson
# Copyright (C) 1999-2002, 2006, 2010-2014 Glenn Randers-Pehrson
# Copyright (C) 1995 Guy Eric Schalnat, Group 42
# Copyright (C) 1995 Guy Eric Schalnat, Group 42
#
c
ontributed by Jim Rice and updated by Chris Schleicher, Hewlett Packard
#
C
ontributed by Jim Rice and updated by Chris Schleicher, Hewlett Packard
#
#
# This code is released under the libpng license.
# This code is released under the libpng license.
# For conditions of distribution and use, see the disclaimer
# For conditions of distribution and use, see the disclaimer
...
...
scripts/makefile.std
浏览文件 @
81a65de2
...
@@ -122,6 +122,7 @@ pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.
...
@@ -122,6 +122,7 @@ pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.
pngmem.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngmem.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngset.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngset.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngget.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngget.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngpread.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngread.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngread.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngrtran.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngrtran.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngrutil.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngrutil.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
...
@@ -129,6 +130,5 @@ pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebu
...
@@ -129,6 +130,5 @@ pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebu
pngwrite.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngwrite.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngwtran.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngwtran.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngwutil.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngwutil.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngpread.o
:
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngtest.o
:
png.h pngconf.h pnglibconf.h
pngtest.o
:
png.h pngconf.h pnglibconf.h
scripts/pnglibconf.dfa
浏览文件 @
81a65de2
...
@@ -8,7 +8,8 @@ com pnglibconf.h - library build configuration
...
@@ -8,7 +8,8 @@ com pnglibconf.h - library build configuration
com
com
version
version
com
com
com Copyright (c) 1998-2017 Glenn Randers-Pehrson
com Copyright (c) 2018 Cosmin Truta
com Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
com
com
com This code is released under the libpng license.
com This code is released under the libpng license.
com For conditions of distribution and use, see the disclaimer
com For conditions of distribution and use, see the disclaimer
...
...
scripts/pnglibconf.h.prebuilt
浏览文件 @
81a65de2
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
/* pnglibconf.h - library build configuration */
/* pnglibconf.h - library build configuration */
/*
L
ibpng version 1.6.36.git */
/*
l
ibpng version 1.6.36.git */
/* Copyright (c) 2018 Cosmin Truta */
/* Copyright (c) 2018 Cosmin Truta */
/* Copyright (c) 1998-2018 Glenn Randers-Pehrson */
/* Copyright (c) 1998-20
02,2004,2006-20
18 Glenn Randers-Pehrson */
/* This code is released under the libpng license. */
/* This code is released under the libpng license. */
/* For conditions of distribution and use, see the disclaimer */
/* For conditions of distribution and use, see the disclaimer */
...
@@ -21,8 +21,6 @@
...
@@ -21,8 +21,6 @@
#define PNG_ALIGNED_MEMORY_SUPPORTED
#define PNG_ALIGNED_MEMORY_SUPPORTED
/*#undef PNG_ARM_NEON_API_SUPPORTED*/
/*#undef PNG_ARM_NEON_API_SUPPORTED*/
/*#undef PNG_ARM_NEON_CHECK_SUPPORTED*/
/*#undef PNG_ARM_NEON_CHECK_SUPPORTED*/
/*#undef PNG_POWERPC_VSX_API_SUPPORTED*/
/*#undef PNG_POWERPC_VSX_CHECK_SUPPORTED*/
#define PNG_BENIGN_ERRORS_SUPPORTED
#define PNG_BENIGN_ERRORS_SUPPORTED
#define PNG_BENIGN_READ_ERRORS_SUPPORTED
#define PNG_BENIGN_READ_ERRORS_SUPPORTED
/*#undef PNG_BENIGN_WRITE_ERRORS_SUPPORTED*/
/*#undef PNG_BENIGN_WRITE_ERRORS_SUPPORTED*/
...
@@ -47,6 +45,8 @@
...
@@ -47,6 +45,8 @@
#define PNG_IO_STATE_SUPPORTED
#define PNG_IO_STATE_SUPPORTED
#define PNG_MNG_FEATURES_SUPPORTED
#define PNG_MNG_FEATURES_SUPPORTED
#define PNG_POINTER_INDEXING_SUPPORTED
#define PNG_POINTER_INDEXING_SUPPORTED
/*#undef PNG_POWERPC_VSX_API_SUPPORTED*/
/*#undef PNG_POWERPC_VSX_CHECK_SUPPORTED*/
#define PNG_PROGRESSIVE_READ_SUPPORTED
#define PNG_PROGRESSIVE_READ_SUPPORTED
#define PNG_READ_16BIT_SUPPORTED
#define PNG_READ_16BIT_SUPPORTED
#define PNG_READ_ALPHA_MODE_SUPPORTED
#define PNG_READ_ALPHA_MODE_SUPPORTED
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录