Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
38d73aff
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看板
提交
38d73aff
编写于
3月 07, 1998
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Imported from libpng-0.99n.tar
上级
7cd899c7
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
18 addition
and
25 deletion
+18
-25
libpng.3
libpng.3
+1
-1
png.h
png.h
+2
-2
pngrutil.c
pngrutil.c
+1
-1
pngtest.c
pngtest.c
+8
-12
pngwrite.c
pngwrite.c
+1
-1
scripts/makefile.tc3
scripts/makefile.tc3
+4
-7
scripts/makefile.wat
scripts/makefile.wat
+1
-1
未找到文件。
libpng.3
浏览文件 @
38d73aff
...
...
@@ -2306,7 +2306,7 @@ the first widely used release:
0.97c 0.97 2.0.97
0.98 0.98 2.0.98
0.99 0.99 2.0.99
0.99a-
g
0.99 2.0.99
0.99a-
m
0.99 2.0.99
1.0 1.00 2.1.0
Henceforth the source version will match the shared-library minor
...
...
png.h
浏览文件 @
38d73aff
...
...
@@ -27,7 +27,7 @@
* 0.97c 0.97 2.0.97
* 0.98 0.98 2.0.98
* 0.99 0.99 2.0.99
* 0.99a-
i
0.99 2.0.99
* 0.99a-
m
0.99 2.0.99
* 1.00 1.00 2.1.0
*
* Henceforth the source version will match the shared-library minor
...
...
@@ -812,7 +812,7 @@ extern PNG_EXPORT(void,png_set_swap) PNGARG((png_structp png_ptr));
extern
PNG_EXPORT
(
void
,
png_set_packing
)
PNGARG
((
png_structp
png_ptr
));
#endif
/* PNG_READ_PACK_SUPPORTED || PNG_WRITE_PACK_SUPPORTED */
#if defined(PNG_READ_PACKSWAP_SUPPORTED) || defined(PNG_WRITE_PACKSWAP_SUPPOR)
#if defined(PNG_READ_PACKSWAP_SUPPORTED) || defined(PNG_WRITE_PACKSWAP_SUPPOR
TED
)
/* Swap packing order of pixels in bytes. */
extern
PNG_EXPORT
(
void
,
png_set_packswap
)
PNGARG
((
png_structp
png_ptr
));
#endif
/* PNG_READ_PACKSWAP_SUPPORTED || PNG_WRITE_PACKSWAP_SUPPOR */
...
...
pngrutil.c
浏览文件 @
38d73aff
/* pngrutil.c - utilities to read a PNG file
*
* libpng
0.99
* libpng
1.00
* For conditions of distribution and use, see copyright notice in png.h
* Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.
* Copyright (c) 1996, 1997 Andreas Dilger
...
...
pngtest.c
浏览文件 @
38d73aff
...
...
@@ -79,8 +79,7 @@ write_row_callback(png_structp png_ptr, png_uint_32 row_number, int pass)
}
#if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \
defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
#if defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
/* example of using user transform callback (we don't transform anything,
but merely count the black pixels) */
...
...
@@ -166,7 +165,7 @@ count_black_pixels(png_structp png_ptr, png_row_infop row_info, png_bytep data)
}
}
}
#endif
/* PNG_
READ|
WRITE_USER_TRANSFORM_SUPPORTED */
#endif
/* PNG_WRITE_USER_TRANSFORM_SUPPORTED */
static
int
verbose
=
0
;
static
int
wrote_question
=
0
;
...
...
@@ -563,11 +562,10 @@ test_one_file(PNG_CONST char *inname, PNG_CONST char *outname)
png_set_read_status_fn
(
read_ptr
,
NULL
);
}
#if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \
defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
black_pixels
=
0
;
png_set_write_user_transform_fn
(
write_ptr
,
count_black_pixels
);
#endif
# if defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
black_pixels
=
0
;
png_set_write_user_transform_fn
(
write_ptr
,
count_black_pixels
);
# endif
png_debug
(
0
,
"Reading info struct
\n
"
);
png_read_info
(
read_ptr
,
read_info_ptr
);
...
...
@@ -949,8 +947,7 @@ main(int argc, char *argv[])
fprintf
(
STDERR
,
"Testing %s:"
,
argv
[
i
]);
kerror
=
test_one_file
(
argv
[
i
],
outname
);
if
(
kerror
==
0
)
#if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \
defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
#if defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
fprintf
(
STDERR
,
" PASS (%lu black pixels)
\n
"
,
black_pixels
);
#else
fprintf
(
STDERR
,
" PASS
\n
"
);
...
...
@@ -996,8 +993,7 @@ main(int argc, char *argv[])
if
(
kerror
==
0
)
{
if
(
verbose
==
1
||
i
==
2
)
#if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \
defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
#if defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
fprintf
(
STDERR
,
" PASS (%lu black pixels)
\n
"
,
black_pixels
);
#else
fprintf
(
STDERR
,
" PASS
\n
"
);
...
...
pngwrite.c
浏览文件 @
38d73aff
...
...
@@ -225,7 +225,7 @@ png_write_end(png_structp png_ptr, png_infop info_ptr)
png_charp
png_convert_to_rfc1123
(
png_structp
png_ptr
,
png_timep
ptime
)
{
static
const
char
short_months
[
12
][
4
]
=
static
PNG_CONST
char
short_months
[
12
][
4
]
=
{
"Jan"
,
"Feb"
,
"Mar"
,
"Apr"
,
"May"
,
"Jun"
,
"Jul"
,
"Aug"
,
"Sep"
,
"Oct"
,
"Nov"
,
"Dec"
};
...
...
scripts/makefile.tc3
浏览文件 @
38d73aff
...
...
@@ -14,15 +14,12 @@ O=.obj
E
=
.exe
# variables
OBJS1
=
png
$(O)
pngset
$(O)
pngget
$(O)
pngrutil
$(O)
pngtrans
$(O)
pngwutil$(O)
OBJS1
=
png
$(O)
pngset
$(O)
pngget
$(O)
pngrutil
$(O)
pngtrans
$(O)
pngwutil
$(O)
OBJS2
=
pngmem
$(O)
pngpread
$(O)
pngread
$(O)
pngerror
$(O)
pngwrite
$(O)
OBJS3
=
pngrtran
$(O)
pngwtran
$(O)
pngrio
$(O)
pngwio
$(O)
OBJSL1
=
+png
$(O)
+pngset
$(O)
+pngget
$(O)
+pngrutil
$(O)
+pngtrans
$(O)
OBJSL2
=
+pngwutil
$(O)
+pngmem
$(O)
+pngpread
$(O)
+pngread
$(O)
+pngerror$(O)
OBJSL3
=
+pngwrite
$(O)
+pngrtran
$(O)
+pngwtran
$(O)
+pngrio
$(O)
+pngwio$(O)
OBJSL2
=
+pngwutil
$(O)
+pngmem
$(O)
+pngpread
$(O)
+pngread
$(O)
+pngerror
$(O)
OBJSL3
=
+pngwrite
$(O)
+pngrtran
$(O)
+pngwtran
$(O)
+pngrio
$(O)
+pngwio
$(O)
all
:
libpng.lib pngtest.exe
...
...
@@ -82,4 +79,4 @@ libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3)
pngtest$(E)
:
pngtest$(O) libpng.lib
$(CC)
$(LDFLAGS)
pngtest.obj
libpng.lib
zlib.lib
#
End
of
makefile
for
libpng
\ No newline at end of file
# End of makefile for libpng
scripts/makefile.wat
浏览文件 @
38d73aff
...
...
@@ -9,7 +9,7 @@
# ------------- Watcom 10a+ -------------
MODEL
=
-mf
CFLAGS
=
$(MODEL)
-fpi87
-fp5
-5r
-oaeilmnrt
-s
-i
=
..
\z
lib
CFLAGS
=
$(MODEL)
-fpi87
-fp5
-5r
-oaeilmnrt
-s
-
zp4
-
i
=
..
\z
lib
CC
=
wcc386
LD
=
wcl386
LIB
=
wlib
-b
-c
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录