1 Star 0 Fork 15

zhanzhimin/libimagequant

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
libimagequant_omp.patch 992 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhanzhimin 提交于 2021-02-02 19:22 . update to 2.14.0
diff -rupN libimagequant-2.14.0/libimagequant.c libimagequant-2.14.0-new/libimagequant.c
---
libimagequant.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libimagequant.c b/libimagequant.c
index 4f0b48f..047c042 100644
--- a/libimagequant.c
+++ b/libimagequant.c
@@ -1279,7 +1279,7 @@ LIQ_NONNULL static float remap_to_palette(liq_image *const input_image, unsigned
#if __GNUC__ >= 9 || __clang__
#pragma omp parallel for if (rows*cols > 3000) \
- schedule(static) default(none) shared(acolormap,average_color,cols,input_image,map,n,output_pixels,rows,transparent_index) reduction(+:remapping_error)
+ schedule(static) default(none) shared(acolormap,average_color,cols,input_image,map,n,output_pixels,rows,transparent_index,background) reduction(+:remapping_error)
#else
#pragma omp parallel for if (rows*cols > 3000) \
schedule(static) default(none) shared(acolormap) shared(average_color) reduction(+:remapping_error)
--
2.23.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zzm_567/libimagequant.git
git@gitee.com:zzm_567/libimagequant.git
zzm_567
libimagequant
libimagequant
master

搜索帮助