libimagequant: update to 2.11.0.
This commit is contained in:
parent
b81cb5f130
commit
3c6574d9c3
2 changed files with 14 additions and 2 deletions
12
srcpkgs/libimagequant/patches/fix-acolormap.patch
Normal file
12
srcpkgs/libimagequant/patches/fix-acolormap.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- libimagequant.c
|
||||
+++ libimagequant.c
|
||||
@@ -1256,7 +1256,7 @@ LIQ_NONNULL static float remap_to_palette(liq_image *const input_image, unsigned
|
||||
kmeans_init(map, max_threads, average_color);
|
||||
|
||||
#pragma omp parallel for if (rows*cols > 3000) \
|
||||
- schedule(static) default(none) shared(average_color) reduction(+:remapping_error)
|
||||
+ schedule(static) default(none) shared(acolormap) shared(average_color) reduction(+:remapping_error)
|
||||
for(int row = 0; row < rows; ++row) {
|
||||
const f_pixel *const row_pixels = liq_image_get_row_f(input_image, row);
|
||||
const f_pixel *const bg_pixels = input_image->background && acolormap[transparent_index].acolor.a < 1.f/256.f ? liq_image_get_row_f(input_image->background, row) : NULL;
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'libimagequant'
|
||||
pkgname=libimagequant
|
||||
version=2.10.2
|
||||
version=2.11.0
|
||||
revision=1
|
||||
build_style=configure
|
||||
configure_args="--with-openmp"
|
||||
|
@ -11,7 +11,7 @@ maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|||
homepage="https://pngquant.org/lib/"
|
||||
license="GPL-3"
|
||||
distfiles="https://github.com/ImageOptim/libimagequant/archive/${version}.tar.gz"
|
||||
checksum=c7a70caa87a72095f44d5b0e53737a1cb42c0b12ec599b42982224816f45abeb
|
||||
checksum=ab0b5331a04a304c2c83a372bc82eb221110a08542a345a67662e9153468e58f
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
x86_64*) configure_args+=" --enable-sse";;
|
||||
|
|
Loading…
Reference in a new issue