Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
9c06d784
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,发现更多精彩内容 >>
提交
9c06d784
编写于
9月 04, 2012
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libpng16] Imported from libpng-1.6.0beta29.tar
上级
b98681b4
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
15 addition
and
15 deletion
+15
-15
ANNOUNCE
ANNOUNCE
+1
-1
CHANGES
CHANGES
+1
-1
png.c
png.c
+10
-10
pngstruct.h
pngstruct.h
+3
-3
未找到文件。
ANNOUNCE
浏览文件 @
9c06d784
...
...
@@ -499,7 +499,7 @@ Version 1.6.0beta29 [September 4, 2012]
checking. Several errors that caused rejection of the profile are now
handled with a warning in such a way that the invalid profiles will be
read by default in release (but not pre-RC) builds but will not be
written by default. The easy part of handling
a
cHRM chunk is written,
written by default. The easy part of handling
the
cHRM chunk is written,
where the ICC profile contains the required data. The more difficult
part plus guessing a gAMA value requires code to pass selected RGB values
through the profile.
...
...
CHANGES
浏览文件 @
9c06d784
...
...
@@ -4251,7 +4251,7 @@ Version 1.6.0beta29 [September 4, 2012]
checking. Several errors that caused rejection of the profile are now
handled with a warning in such a way that the invalid profiles will be
read by default in release (but not pre-RC) builds but will not be
written by default. The easy part of handling
a
cHRM chunk is written,
written by default. The easy part of handling
the
cHRM chunk is written,
where the ICC profile contains the required data. The more difficult
part plus guessing a gAMA value requires code to pass selected RGB values
through the profile.
...
...
png.c
浏览文件 @
9c06d784
...
...
@@ -1995,10 +1995,10 @@ png_icc_check_header(png_const_structrp png_ptr, png_colorspacerp colorspace,
return
profile_error
(
png_ptr
,
colorspace
,
name
,
temp
,
"invalid signature"
);
/* Currently the PCS illuminant/ad
o
pted white point are required to be D50,
/* Currently the PCS illuminant/ad
a
pted white point are required to be D50,
* however the profile contains a record of the illuminant so perhaps ICC
* expects to be able to change this in the future (despite the rationale in
* the introduction for using a fixed PCS ad
o
pted white.) Consequently the
* the introduction for using a fixed PCS ad
a
pted white.) Consequently the
* following is just a warning.
*/
if
(
memcmp
(
profile
+
68
,
D50_nCIEXYZ
,
12
)
!=
0
)
...
...
@@ -2371,7 +2371,7 @@ png_icc_find_wtpt(png_const_structrp png_ptr, png_const_charp name,
temp
==
0x73706163
/* 'spac' */
)
&&
memcmp
(
profile
+
68
,
tag
+
8
,
12
)
!=
0
)
(
void
)
profile_error
(
png_ptr
,
NULL
,
name
,
temp
,
"media white point differs from image ad
o
pted white"
);
"media white point differs from image ad
a
pted white"
);
(
*
adapted_white_point
)[
0
]
=
png_get_int_32
(
tag
+
8
);
(
*
adapted_white_point
)[
1
]
=
png_get_int_32
(
tag
+
12
);
...
...
@@ -2437,10 +2437,10 @@ png_icc_find_chad(png_const_structrp png_ptr, png_const_charp name,
* colorant values.
*
* All of the methods for determining the cHRM values depend on
* reversing the adaptatation to the PCS ad
o
pted white (D50); this is
* reversing the adaptatation to the PCS ad
a
pted white (D50); this is
* because in all cases one or other PCS value has to be used.
*
* This routine determines if 'chad' tag is present (if not the ad
o
pted white
* This routine determines if 'chad' tag is present (if not the ad
a
pted white
* of the scene is D50 and no adaptation was performed) and returns the
* inverted matrix.
*/
...
...
@@ -2515,7 +2515,7 @@ png_icc_set_cHRM_from_chrm(png_const_structrp png_ptr,
* the PCS white, however the white point, which tells us the relative
* intensity of the colorants, is not given. We can get the white point from
* the mediaWhitePointTag value, which should be present in all profiles,
* however this is adapted to the PCS illuminated/ad
o
pted white, so must be
* however this is adapted to the PCS illuminated/ad
a
pted white, so must be
* unadapted.
*/
{
...
...
@@ -2593,7 +2593,7 @@ png_icc_set_cHRM_from_chrm(png_const_structrp png_ptr,
{
/* For the perfect reflector 'Y' shall be normalized
* to 1,0 (see ICC 2010 4.14, XYZNumber), but this is
* the media white point (not the ad
o
pted white)
* the media white point (not the ad
a
pted white)
* adapted to the PCS illuminant, so Y might be some
* other value, this sanity check is mainly to avoid
* integer overflow.
...
...
@@ -2771,7 +2771,7 @@ png_icc_set_cHRM_from_endpoints(png_const_structrp png_ptr,
png_XYZ
cHRM_XYZ
;
/* Now we have colorant XYZ values in their unadapted form
* (i.e. implicitly with an ad
o
pted white of the media).
* (i.e. implicitly with an ad
a
pted white of the media).
* This is what PNG uses for cHRM, but they need to be
* converted to the libpng structure.
*
...
...
@@ -3028,8 +3028,8 @@ png_icc_check_tag_table(png_const_structrp png_ptr, png_colorspacerp colorspace,
case
0x63686164
:
/* 'chad' - chromaticAdaptationTag */
/* The tag must be a 9 element array of s15Fixed16ArrayType, the tag
* is optional, if absent it indicates that the original ad
o
pted
* white was the same as the PCS ad
o
pted white - D50.
* is optional, if absent it indicates that the original ad
a
pted
* white was the same as the PCS ad
a
pted white - D50.
*/
if
(
tag_length
!=
44
)
(
void
)
profile_error
(
png_ptr
,
NULL
,
name
,
tag_start
,
...
...
pngstruct.h
浏览文件 @
9c06d784
...
...
@@ -147,11 +147,11 @@ typedef const png_colorspace * PNG_RESTRICT png_const_colorspacerp;
/* The profile description and copyright must be present in all valid ICC
* profiles, however libpng does not use them so absence is just reported as
* a warning. The media white point should be present too, but if it isn't
* all we lose is the ability to know if it differs from the ad
o
pted white
* all we lose is the ability to know if it differs from the ad
a
pted white
* (i.e. the information that the device maxima are actually colored;
* a non-white substrate for a printer, or an uncorrected scan for example.)
* The chromaticAdaptationTag tells us that the ad
o
pted white of the original
* differs from the PCS ad
o
pted white (which is identical to the PCS
* The chromaticAdaptationTag tells us that the ad
a
pted white of the original
* differs from the PCS ad
a
pted white (which is identical to the PCS
* illuminant and should always be D50).
*/
# define PNG_ICC_profileDescriptionTag 0x00000010U
/* required */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录