Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
ec3f9498
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,发现更多精彩内容 >>
提交
ec3f9498
编写于
11月 09, 2009
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[devel] Fixed some deprecated usages in the contrib directory.
上级
88429732
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
20 addition
and
9 deletion
+20
-9
ANNOUNCE
ANNOUNCE
+4
-0
CHANGES
CHANGES
+4
-0
contrib/gregbook/readpng2.c
contrib/gregbook/readpng2.c
+6
-3
contrib/pngminim/decoder/makefile
contrib/pngminim/decoder/makefile
+1
-1
contrib/pngminim/encoder/makefile
contrib/pngminim/encoder/makefile
+1
-1
contrib/pngminim/preader/makefile
contrib/pngminim/preader/makefile
+1
-1
contrib/pngminus/png2pnm.c
contrib/pngminus/png2pnm.c
+2
-2
contrib/visupng/PngFile.c
contrib/visupng/PngFile.c
+1
-1
未找到文件。
ANNOUNCE
浏览文件 @
ec3f9498
...
...
@@ -641,6 +641,10 @@ version 1.4.0beta94 [November 9, 2009]
Only #define PNG_DEPSTRUCT, etc. in pngconf.h if not already defined.
version 1.4.0beta95 [November 9, 2009]
Changed png_check_sig() to !png_sig_cmp() in contrib programs.
Added -DPNG_CONFIGURE_LIBPNG to contrib/pngminm/*/makefile
Changed png_check_sig() to !png_sig_cmp() in contrib programs.
Corrected the png_get_IHDR() call in contrib/gregbook/readpng2.c
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
CHANGES
浏览文件 @
ec3f9498
...
...
@@ -2327,6 +2327,10 @@ version 1.4.0beta94 [November 9, 2009]
Only #define PNG_DEPSTRUCT, etc. in pngconf.h if not already defined.
version 1.4.0beta95 [November 9, 2009]
Changed png_check_sig() to !png_sig_cmp() in contrib programs.
Added -DPNG_CONFIGURE_LIBPNG to contrib/pngminm/*/makefile
Changed png_check_sig() to !png_sig_cmp() in contrib programs.
Corrected the png_get_IHDR() call in contrib/gregbook/readpng2.c
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
contrib/gregbook/readpng2.c
浏览文件 @
ec3f9498
...
...
@@ -159,7 +159,7 @@ void readpng2_version_info(void)
int
readpng2_check_sig
(
uch
*
sig
,
int
num
)
{
return
(
!
png_sig_cmp
(
sig
,
0
,
num
)
);
return
!
png_sig_cmp
(
sig
,
0
,
num
);
}
...
...
@@ -379,6 +379,7 @@ static void readpng2_info_callback(png_structp png_ptr, png_infop info_ptr)
{
mainprog_info
*
mainprog_ptr
;
int
color_type
,
bit_depth
;
png_uint_32
width
,
height
;
double
gamma
;
...
...
@@ -414,8 +415,10 @@ static void readpng2_info_callback(png_structp png_ptr, png_infop info_ptr)
/* this is just like in the non-progressive case */
png_get_IHDR
(
png_ptr
,
info_ptr
,
&
mainprog_ptr
->
width
,
&
mainprog_ptr
->
height
,
&
bit_depth
,
&
color_type
,
NULL
,
NULL
,
NULL
);
png_get_IHDR
(
png_ptr
,
info_ptr
,
&
width
,
&
height
,
&
bit_depth
,
&
color_type
,
NULL
,
NULL
,
NULL
);
mainprog_ptr
->
width
=
(
ulg
)
width
;
mainprog_ptr
->
height
=
(
ulg
)
height
;
/* since we know we've read all of the PNG file's "header" (i.e., up
...
...
contrib/pngminim/decoder/makefile
浏览文件 @
ec3f9498
...
...
@@ -7,7 +7,7 @@ LD=$(CC)
RM
=
rm
-f
CFLAGS
=
-DPNG_USER_CONFIG
-DNO_GZCOMPRESS
-DNO_GZIP
\
CFLAGS
=
-DPNG_
CONFIGURE_LIBPNG
-DPNG_
USER_CONFIG
-DNO_GZCOMPRESS
-DNO_GZIP
\
-DdeflateParams
\(
a,b,c
\)
=
Z_OK
-I
.
-O1
C
=
.c
...
...
contrib/pngminim/encoder/makefile
浏览文件 @
ec3f9498
...
...
@@ -7,7 +7,7 @@ LD=$(CC)
RM
=
rm
-f
CFLAGS
=
-DPNG_USER_CONFIG
-DNO_GZIP
-I
.
-O1
CFLAGS
=
-DPNG_
CONFIGURE_LIBPNG
-DPNG_
USER_CONFIG
-DNO_GZIP
-I
.
-O1
C
=
.c
O
=
.o
...
...
contrib/pngminim/preader/makefile
浏览文件 @
ec3f9498
...
...
@@ -23,7 +23,7 @@ XLIB = -L/usr/X11R6/lib -lX11
#LIBS = $(XLIB)
LIBS
=
$(XLIB)
-lm
#platforms that need libm
CFLAGS
=
-DPNG_USER_CONFIG
-DNO_GZCOMPRESS
-DNO_GZIP
\
CFLAGS
=
-DPNG_
CONFIGURE_LIBPNG
-DPNG_
USER_CONFIG
-DNO_GZCOMPRESS
-DNO_GZIP
\
-DdeflateParams
\(
a,b,c
\)
=
Z_OK
-I
.
$(XINC)
-O1
C
=
.c
...
...
contrib/pngminus/png2pnm.c
浏览文件 @
ec3f9498
...
...
@@ -211,8 +211,8 @@ BOOL png2pnm (FILE *png_file, FILE *pnm_file, FILE *alpha_file, BOOL raw, BOOL a
if
(
ret
!=
8
)
return
FALSE
;
ret
=
png_
check_sig
(
buf
,
8
);
if
(
!
ret
)
ret
=
png_
sig_cmp
(
buf
,
0
,
8
);
if
(
ret
)
return
FALSE
;
/* create png and info structures */
...
...
contrib/visupng/PngFile.c
浏览文件 @
ec3f9498
...
...
@@ -126,7 +126,7 @@ BOOL PngLoadImage (PTSTR pstrFileName, png_byte **ppbImageData,
// first check the eight byte PNG signature
fread
(
pbSig
,
1
,
8
,
pfFile
);
if
(
!
png_check_sig
(
pbSig
,
8
))
if
(
png_sig_cmp
(
pbSig
,
0
,
8
))
{
*
ppbImageData
=
pbImageData
=
NULL
;
return
FALSE
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录