Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
82980f31
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,发现更多精彩内容 >>
提交
82980f31
编写于
6月 26, 2010
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[devel] Make png_set_sRGB_gAMA_and_cHRM set values using either the fixed or
floating point APIs, but not both.
上级
a691ca0f
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
23 addition
and
47 deletion
+23
-47
ANNOUNCE
ANNOUNCE
+2
-0
CHANGES
CHANGES
+3
-1
pngset.c
pngset.c
+18
-46
未找到文件。
ANNOUNCE
浏览文件 @
82980f31
...
...
@@ -258,6 +258,8 @@ version 1.5.0beta32 [June 26, 2010]
Made FIXED and FLOATING options consistent in the APIs they enable and
disable. Corrected scripts/options.awk to handle both command line
options and options specified in the .dfa files.
Make png_set_sRGB_gAMA_and_cHRM set values using either the fixed or
floating point APIs, but not both.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
(subscription required; visit
...
...
CHANGES
浏览文件 @
82980f31
...
...
@@ -2736,10 +2736,12 @@ version 1.5.0beta31 [June 26, 2010]
version 1.5.0beta32 [June 26, 2010]
Removed leftover scripts/options.patch and scripts/options.rej
version 1.5.0beta3
2
[June 26, 2010]
version 1.5.0beta3
3
[June 26, 2010]
Made FIXED and FLOATING options consistent in the APIs they enable and
disable. Corrected scripts/options.awk to handle both command line
options and options specified in the .dfa files.
Make png_set_sRGB_gAMA_and_cHRM set values using either the fixed or
floating point APIs, but not both.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
pngset.c
浏览文件 @
82980f31
...
...
@@ -46,6 +46,7 @@ png_set_cHRM(png_structp png_ptr, png_infop info_ptr,
if
(
png_ptr
==
NULL
||
info_ptr
==
NULL
)
return
;
/* TODO: call png_check_cHRM_fixed */
info_ptr
->
x_white
=
(
float
)
white_x
;
info_ptr
->
y_white
=
(
float
)
white_y
;
info_ptr
->
x_red
=
(
float
)
red_x
;
...
...
@@ -534,21 +535,6 @@ void PNGAPI
png_set_sRGB_gAMA_and_cHRM
(
png_structp
png_ptr
,
png_infop
info_ptr
,
int
intent
)
{
#ifdef PNG_gAMA_SUPPORTED
#ifdef PNG_FLOATING_POINT_SUPPORTED
float
file_gamma
;
#endif
#ifdef PNG_FIXED_POINT_SUPPORTED
png_fixed_point
int_file_gamma
;
#endif
#endif
#ifdef PNG_cHRM_SUPPORTED
#ifdef PNG_FLOATING_POINT_SUPPORTED
float
white_x
,
white_y
,
red_x
,
red_y
,
green_x
,
green_y
,
blue_x
,
blue_y
;
#endif
png_fixed_point
int_white_x
,
int_white_y
,
int_red_x
,
int_red_y
,
int_green_x
,
int_green_y
,
int_blue_x
,
int_blue_y
;
#endif
png_debug1
(
1
,
"in %s storage function"
,
"sRGB_gAMA_and_cHRM"
);
if
(
png_ptr
==
NULL
||
info_ptr
==
NULL
)
...
...
@@ -558,45 +544,31 @@ png_set_sRGB_gAMA_and_cHRM(png_structp png_ptr, png_infop info_ptr,
#ifdef PNG_gAMA_SUPPORTED
#ifdef PNG_FIXED_POINT_SUPPORTED
int_file_gamma
=
45455L
;
png_set_gAMA_fixed
(
png_ptr
,
info_ptr
,
int_file_gamma
);
#endif
#ifdef PNG_FLOATING_POINT_SUPPORTED
png_set_gAMA_fixed
(
png_ptr
,
info_ptr
,
45455L
);
#else
/* Floating point must be set! */
file_gamma
=
(
float
).
45455
;
png_set_gAMA
(
png_ptr
,
info_ptr
,
file_gamma
);
png_set_gAMA
(
png_ptr
,
info_ptr
,
.
45455
);
#endif
#endif
#ifdef PNG_cHRM_SUPPORTED
int_white_x
=
31270L
;
int_white_y
=
32900L
;
int_red_x
=
64000L
;
int_red_y
=
33000L
;
int_green_x
=
30000L
;
int_green_y
=
60000L
;
int_blue_x
=
15000L
;
int_blue_y
=
6000L
;
#ifdef PNG_FLOATING_POINT_SUPPORTED
white_x
=
(
float
).
3127
;
white_y
=
(
float
).
3290
;
red_x
=
(
float
).
64
;
red_y
=
(
float
).
33
;
green_x
=
(
float
).
30
;
green_y
=
(
float
).
60
;
blue_x
=
(
float
).
15
;
blue_y
=
(
float
).
06
;
#endif
#ifdef PNG_FIXED_POINT_SUPPORTED
png_set_cHRM_fixed
(
png_ptr
,
info_ptr
,
int_white_x
,
int_white_y
,
int_red_x
,
int_red_y
,
int_green_x
,
int_green_y
,
int_blue_x
,
int_blue_y
);
#endif
#ifdef PNG_FLOATING_POINT_SUPPORTED
/* color x y */
/* white */
31270L
,
32900L
,
/* red */
64000L
,
33000L
,
/* green */
30000L
,
60000L
,
/* blue */
15000L
,
6000L
);
#else
/* Floating point must be supported! */
png_set_cHRM
(
png_ptr
,
info_ptr
,
white_x
,
white_y
,
red_x
,
red_y
,
green_x
,
green_y
,
blue_x
,
blue_y
);
/* color x y */
/* while */
.
3127
,
.
3290
,
/* red */
.
64
,
.
33
,
/* green */
.
30
,
.
60
,
/* blue */
.
15
,
.
06
);
#endif
#endif
/* cHRM */
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录