Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
079a7248
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,发现更多精彩内容 >>
提交
079a7248
编写于
2月 23, 2014
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libpng16] Fixed some nits in contrib/arm-neon/README and comments in
contrib/examples/*.c
上级
13013562
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
8 addition
and
8 deletion
+8
-8
contrib/arm-neon/README
contrib/arm-neon/README
+3
-3
contrib/examples/iccfrompng.c
contrib/examples/iccfrompng.c
+2
-2
contrib/examples/pngpixel.c
contrib/examples/pngpixel.c
+3
-3
未找到文件。
contrib/arm-neon/README
浏览文件 @
079a7248
...
...
@@ -7,7 +7,7 @@ operating system support. (The information is not available in user mode.)
HOW TO USE THIS
---------------
This directory contains C code fragments
which
can be included in arm/arm_init.c
This directory contains C code fragments
that
can be included in arm/arm_init.c
by setting the macro PNG_ARM_NEON_FILE to the file name in "" or <> at build
time. This setting is not recorded in pnglibconf.h and can be changed simply by
rebuilding arm/arm_init.o with the required macro definition.
...
...
@@ -66,8 +66,8 @@ You may send contributions of new implementations to
png-mng-implement@sourceforge.net. Please write code in strict C90 C where
possible. Obviously OS dependencies are to be expected. If you submit code you
must have the authors permission and it must have a license that is acceptable
to the current maintainer; in particular that license must permit
redistribution.
to the current maintainer; in particular that license must permit
modification
and
redistribution.
Please try to make the contribution a single file and give the file a clear and
unambiguous name that identifies the target OS. If multiple files really are
...
...
contrib/examples/iccfrompng.c
浏览文件 @
079a7248
...
...
@@ -6,9 +6,9 @@
* United States.
*
* Extract any icc profiles found in the given PNG files. This is a simple
* example of a program
which
extracts information from the header of a PNG file
* example of a program
that
extracts information from the header of a PNG file
* without processing the image. Notice that some header information may occur
* after the image data
, t
extual data and comments are an example; the approach
* after the image data
. T
extual data and comments are an example; the approach
* in this file won't work reliably for such data because it only looks for the
* information in the section of the file that preceeds the image data.
*
...
...
contrib/examples/pngpixel.c
浏览文件 @
079a7248
...
...
@@ -8,7 +8,7 @@
* Read a single pixel value from a PNG file.
*
* This code illustrates basic 'by-row' reading of a PNG file using libpng.
* Rows are read until a particular pixel is found
,
the value of this pixel is
* Rows are read until a particular pixel is found
;
the value of this pixel is
* then printed on stdout.
*
* The code illustrates how to do this on interlaced as well as non-interlaced
...
...
@@ -56,7 +56,7 @@ component(png_const_bytep row, png_uint_32 x, unsigned int c,
case
8
:
return
row
[
0
];
case
16
:
return
(
row
[
0
]
<<
8
)
+
row
[
1
];
default:
/* This should never happen
,
it indicates a bug in this program or in
/* This should never happen
;
it indicates a bug in this program or in
* libpng itself:
*/
fprintf
(
stderr
,
"pngpixel: invalid bit depth %u
\n
"
,
bit_depth
);
...
...
@@ -132,7 +132,7 @@ print_pixel(png_structp png_ptr, png_infop info_ptr, png_const_bytep row,
return
;
default:
png_error
(
png_ptr
,
"invalid color type"
);
png_error
(
png_ptr
,
"
pngpixel:
invalid color type"
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录