Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
b4f9f5d0
T
Third Party Libpng
项目概览
OpenHarmony
/
Third Party Libpng
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
b4f9f5d0
编写于
2月 22, 2016
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libpng16] Fixed cut-and-paste errors in the new intel_sse.patch
and added PNG_NO_INTEL_SSE_3BPP macro.
上级
6c3d5bd2
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
12 addition
and
11 deletion
+12
-11
contrib/intel/intel_init.c
contrib/intel/intel_init.c
+2
-0
contrib/intel/intel_sse.patch
contrib/intel/intel_sse.patch
+10
-11
未找到文件。
contrib/intel/intel_init.c
浏览文件 @
b4f9f5d0
...
...
@@ -32,10 +32,12 @@ png_init_filter_functions_sse2(png_structp pp, unsigned int bpp)
png_debug
(
1
,
"in png_init_filter_functions_sse2"
);
if
(
bpp
==
3
)
{
#ifndef PNG_NO_INTEL_SSE_3BPP
pp
->
read_filter
[
PNG_FILTER_VALUE_SUB
-
1
]
=
png_read_filter_row_sub3_sse2
;
pp
->
read_filter
[
PNG_FILTER_VALUE_AVG
-
1
]
=
png_read_filter_row_avg3_sse2
;
pp
->
read_filter
[
PNG_FILTER_VALUE_PAETH
-
1
]
=
png_read_filter_row_paeth3_sse2
;
#endif
}
else
if
(
bpp
==
4
)
{
...
...
contrib/intel/intel_sse.patch
浏览文件 @
b4f9f5d0
diff --git a/configure.ac b/configure.ac
--- a/configure.ac 2016-02-22 1
4:31:48
.000000000 -0600
+++ b/configure.ac 2016-02-22 1
4:40:13.665955674
-0600
--- a/configure.ac 2016-02-22 1
7:24:25
.000000000 -0600
+++ b/configure.ac 2016-02-22 1
7:30:36.949159871
-0600
@@ -1,10 +1,13 @@
# configure.ac
...
...
@@ -15,8 +15,7 @@ diff --git a/configure.ac b/configure.ac
# and license in png.h
dnl Process this file with autoconf to produce a configure script.
@@ -314,16 +317,50 @@
AC_ARG_ENABLE([arm-neon],
# future host CPU does not match 'arm*')
@@ -316,16 +319,50 @@
AC_ARG_ENABLE([arm-neon],
AM_CONDITIONAL([PNG_ARM_NEON],
[test "$enable_arm_neon" != 'no' &&
...
...
@@ -24,7 +23,7 @@ diff --git a/configure.ac b/configure.ac
arm*|aarch64*) :;;
*) test "$enable_arm_neon" != '';;
esac])
+
+# INTEL
+# =====
+#
...
...
@@ -58,17 +57,18 @@ diff --git a/configure.ac b/configure.ac
+ case "$host_cpu" in
+ i?86|x86_64) :;;
+ *) test "$enable_intel_sse" != '';;
esac])
+ esac])
AC_MSG_NOTICE([[Extra options for compiler: $PNG_COPTS]])
# Config files, substituting as above
AC_CONFIG_FILES([Makefile libpng.pc:libpng.pc.in])
AC_CONFIG_FILES([libpng-config:libpng-config.in],
[chmod +x libpng-config])
AC_OUTPUT
diff --git a/Makefile.am b/Makefile.am
--- a/Makefile.am 2016-02-22 1
4:31:47
.000000000 -0600
+++ b/Makefile.am 2016-02-22 1
4:42:40.380041684
-0600
--- a/Makefile.am 2016-02-22 1
7:24:24
.000000000 -0600
+++ b/Makefile.am 2016-02-22 1
7:32:18.387223996
-0600
@@ -1,10 +1,13 @@
# Makefile.am, the source file for Makefile.in (and hence Makefile), is
#
...
...
@@ -83,7 +83,7 @@ diff --git a/Makefile.am b/Makefile.am
# and license in png.h
PNGLIB_BASENAME= libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@
@@ -83,16 +8
8,21
@@
libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SO
@@ -83,16 +8
6,20
@@
libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SO
pngset.c pngtrans.c pngwio.c pngwrite.c pngwtran.c pngwutil.c\
png.h pngconf.h pngdebug.h pnginfo.h pngpriv.h pngstruct.h pngusr.dfa
...
...
@@ -96,7 +96,6 @@ diff --git a/Makefile.am b/Makefile.am
+libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES += contrib/intel/intel_init.c\
+ contrib/intel/filter_sse2_intrinsics.c
+endif
+
nodist_libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES = pnglibconf.h
libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_LDFLAGS = -no-undefined -export-dynamic \
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录