Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
f1cf9023
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,发现更多精彩内容 >>
提交
f1cf9023
编写于
12月 07, 2010
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[devel] Documented the pngvalid gamma error summary with additional comments
and print statements.
上级
845b74e6
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
24 addition
and
2 deletion
+24
-2
ANNOUNCE
ANNOUNCE
+2
-0
CHANGES
CHANGES
+2
-0
pngvalid.c
pngvalid.c
+20
-2
未找到文件。
ANNOUNCE
浏览文件 @
f1cf9023
...
...
@@ -460,6 +460,8 @@ Version 1.5.0beta56 [December 7, 2010]
Included documentation of changes in 1.5.0 from 1.4.x in libpng-manual.txt
Version 1.5.0beta57 [December 7, 2010]
Documented the pngvalid gamma error summary with additional comments and
print statements.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
(subscription required; visit
...
...
CHANGES
浏览文件 @
f1cf9023
...
...
@@ -3098,6 +3098,8 @@ Version 1.5.0beta56 [December 7, 2010]
Included documentation of changes in 1.5.0 from 1.4.x in libpng-manual.txt
Version 1.5.0beta57 [December 7, 2010]
Documented the pngvalid gamma error summary with additional comments and
print statements.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
pngvalid.c
浏览文件 @
f1cf9023
...
...
@@ -3463,7 +3463,19 @@ perform_gamma_test(png_modifier *pm, int speed, int summary)
if
(
summary
)
{
printf
(
"Gamma correction error summary (output value error):
\n
"
);
printf
(
"Gamma correction error summary
\n\n
"
);
printf
(
"The printed value is the maximum error in the pixel values
\n
"
);
printf
(
"calculated by the libpng gamma correction code. The error
\n
"
);
printf
(
"is calculated as the difference between the output pixel
\n
"
);
printf
(
"value (always an integer) and the ideal value from the
\n
"
);
printf
(
"libpng specification (typically not an integer).
\n\n
"
);
printf
(
"Expect this value to be less than .5 for 8 bit formats,
\n
"
);
printf
(
"less than 1 for formats with fewer than 8 bits and a small
\n
"
);
printf
(
"number (typically less than 5) for the 16 bit formats.
\n
"
);
printf
(
"For performance reasons the value for 16 bit formats
\n
"
);
printf
(
"increases when the image file includes an sBIT chunk.
\n\n
"
);
printf
(
" 2 bit gray: %.5f
\n
"
,
pm
->
error_gray_2
);
printf
(
" 4 bit gray: %.5f
\n
"
,
pm
->
error_gray_4
);
printf
(
" 8 bit gray: %.5f
\n
"
,
pm
->
error_gray_8
);
...
...
@@ -3556,7 +3568,13 @@ int main(int argc, PNG_CONST char **argv)
pm
.
sbitlow
=
8U
;
/* because libpng doesn't do sBIT below 8! */
pm
.
use_input_precision_16to8
=
1U
;
/* Because of the way libpng does it */
/* Some default values (set the behavior for 'make check' here) */
/* Some default values (set the behavior for 'make check' here).
* These values simply control the maximum error permitted in the gamma
* transformations. The practial limits for human perception are described
* below (the setting for maxpc16), however for 8 bit encodings it isn't
* possible to meet the accepted capabilities of human vision - i.e. 8 bit
* images can never be good enough (regardless of encoding.)
*/
pm
.
maxout8
=
.
1
;
/* Arithmetic error in *encoded* value */
pm
.
maxabs8
=
.
00005
;
/* 1/20000 */
pm
.
maxpc8
=
.
499
;
/* I.e. .499% fractional error */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录