!12 需要升级到社区最新稳定版本:2.15.1

From: @xing_xing1992
Reviewed-by: @zzm_567,@small_leek,@yanan-rock,@small_leek
Signed-off-by: @yanan-rock
This commit is contained in:
openeuler-ci-bot 2021-12-07 02:13:33 +00:00 committed by Gitee
commit 16c7637f68
4 changed files with 5 additions and 24 deletions

Binary file not shown.

BIN
libimagequant-2.15.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,13 +1,12 @@
Name: libimagequant
Version: 2.14.0
Release: 2
Version: 2.15.1
Release: 1
Summary: Palette quantization library
License: GPLv3+ and MIT
URL: https://github.com/ImageOptim/libimagequant
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Patch0000: libimagequant_solibperm.patch
Patch0001: libimagequant_omp.patch
BuildRequires: gcc
@ -48,6 +47,9 @@ rm -f %{buildroot}%{_libdir}/%{name}.a
%{_libdir}/pkgconfig/imagequant.pc
%changelog
* Fri Dec 03 2021 xingxing <xingxing9@huawei.com> - 2.15.1-1
- update to 2.15.1
* Tue Jun 08 2021 liuyumeng <liuyumeng5@huawei.com> - 2.14.0-2
- Add a BuildRequires for gcc

View File

@ -1,21 +0,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