Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
4ea93e69
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,发现更多精彩内容 >>
提交
4ea93e69
编写于
5月 08, 2013
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libpng16] Renamed pnginflate to png-fix-too-far-back in contrib/tools.
上级
ff141eb2
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
11 deletion
+14
-11
ANNOUNCE
ANNOUNCE
+1
-0
CHANGES
CHANGES
+1
-0
Makefile.am
Makefile.am
+4
-4
contrib/tools/png-fix-too-far-back.c
contrib/tools/png-fix-too-far-back.c
+8
-7
未找到文件。
ANNOUNCE
浏览文件 @
4ea93e69
...
...
@@ -73,6 +73,7 @@ Version 1.6.3beta05 [May 9, 2013]
both the correct libpng and the correct zlib to function correctly.
Check ZLIB_VERNUM for mismatches, enclose #error in quotes
Renamed contrib/tools/fixitxt to contrib/tools/png-fix-itxt.
Renamed contrib/tools/pnginflate to contrib/tools/png-fix-too-far-back.
Added information in the documentation about problems with and fixes for
the bad CRC and bad iTXt chunk situations.
...
...
CHANGES
浏览文件 @
4ea93e69
...
...
@@ -4556,6 +4556,7 @@ Version 1.6.3beta05 [May 9, 2013]
both the correct libpng and the correct zlib to function correctly.
Check ZLIB_VERNUM for mismatches, enclose #error in quotes
Renamed contrib/tools/fixitxt to contrib/tools/png-fix-itxt.
Renamed contrib/tools/pnginflate to contrib/tools/png-fix-too-far-back.
Added information in the documentation about problems with and fixes for
the bad CRC and bad iTXt chunk situations.
...
...
Makefile.am
浏览文件 @
4ea93e69
...
...
@@ -10,7 +10,7 @@ ACLOCAL_AMFLAGS = -I scripts
check_PROGRAMS
=
pngtest pngunknown pngstest pngvalid
# Utilities - installed
bin_PROGRAMS
=
png
deflate
png-fix-itxt
bin_PROGRAMS
=
png
-fix-too-far-back
png-fix-itxt
pngtest_SOURCES
=
pngtest.c
pngtest_LDADD
=
libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
...
...
@@ -24,8 +24,8 @@ pngstest_LDADD = libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
pngunknown_SOURCES
=
contrib/libtests/pngunknown.c
pngunknown_LDADD
=
libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
png
deflate_SOURCES
=
contrib/tools/pngdeflate
.c
png
deflate
_LDADD
=
libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
png
_fix_too_far_back_SOURCES
=
contrib/tools/png-fix-too-far-back
.c
png
_fix_too_far_back
_LDADD
=
libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
png_fix_itxt_SOURCES
=
contrib/tools/png-fix-itxt.c
...
...
@@ -196,7 +196,7 @@ $(srcdir)/scripts/pnglibconf.h.prebuilt:
# an installed one (this can happen immediately after on a clean system if
# 'make test' is the first thing the user does.)
pngstest.o pngvalid.o pngtest.o pngunknown.o timepng.o
:
pnglibconf.h
png
deflate
.o png-fix-itxt.o
:
pnglibconf.h
png
-fix-too-far-back
.o png-fix-itxt.o
:
pnglibconf.h
# We must use -DPNG_NO_USE_READ_MACROS here even when the library may actually
# be built with PNG_USE_READ_MACROS; this prevents the read macros from
...
...
contrib/tools/png
deflate
.c
→
contrib/tools/png
-fix-too-far-back
.c
浏览文件 @
4ea93e69
/* png
deflate
.c
/* png
-fix-too-far-back
.c
*
* Copyright (c) 2013 John Cunningham Bowler
*
...
...
@@ -8,7 +8,7 @@
* For conditions of distribution and use, see the disclaimer
* and license in png.h
*
* Tool to check and fix the
de
flate 'too far back' problem, see the usage
* Tool to check and fix the
zlib in
flate 'too far back' problem, see the usage
* message for more information.
*/
#include <stdlib.h>
...
...
@@ -26,14 +26,14 @@
#endif
#if PNG_LIBPNG_VER < 10603
/* 1.6.3 */
# error "png
deflate will not work with libpng versions
prior to 1.6.3"
# error "png
-fix-too-far-back will not work with libpng
prior to 1.6.3"
#endif
#ifdef PNG_READ_SUPPORTED
#include <zlib.h>
#ifndef PNG_MAXIMUM_INFLATE_WINDOW
# error "png
deflate
not supported in this libpng version"
# error "png
-fix-too-far-back
not supported in this libpng version"
#endif
#if PNG_ZLIB_VERNUM >= 0x1240
...
...
@@ -592,7 +592,7 @@ fix_one(FILE *fp, FILE *fpIn, IDAT_info *info, png_uint_32 max_IDAT, int strip)
rx
(
fpIn
,
&
b
,
1
);
--
len
;
/* Do this 1 byte at a time to
maximize the chance of
/* Do this 1 byte at a time to
guarantee
* detecting errors (in particular zlib can skip the
* 'too-far-back' error if the output buffer is bigger than
* the window size.)
...
...
@@ -1172,7 +1172,8 @@ main(int argc, const char **argv)
int
main
(
void
)
{
fprintf
(
stderr
,
"pngdeflate needs libpng with a zlib >=1.2.4 (not 0x%x)
\n
"
,
fprintf
(
stderr
,
"png-fix-too-far-back needs libpng with a zlib >=1.2.4 (not 0x%x)
\n
"
,
PNG_ZLIB_VERNUM
);
return
77
;
}
...
...
@@ -1183,7 +1184,7 @@ main(void)
int
main
(
void
)
{
fprintf
(
stderr
,
"png
deflate
does not work without read support
\n
"
);
fprintf
(
stderr
,
"png
-fix-too-far-back
does not work without read support
\n
"
);
return
77
;
}
#endif
/* PNG_READ_SUPPORTED */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录