Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libimagequant for openSUSE:Factory 
checked in at 2021-06-25 15:01:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libimagequant (Old)
 and      /work/SRC/openSUSE:Factory/.libimagequant.new.2625 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libimagequant"

Fri Jun 25 15:01:07 2021 rev:8 rq:901439 version:2.15.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/libimagequant/libimagequant.changes      
2021-06-05 23:31:10.956401503 +0200
+++ /work/SRC/openSUSE:Factory/.libimagequant.new.2625/libimagequant.changes    
2021-06-25 15:01:31.640165438 +0200
@@ -1,0 +2,6 @@
+Sun Jun  6 13:00:05 UTC 2021 - Dirk M??ller <[email protected]>
+
+- update to 2.15.1:
+  - speed and quality improvements 
+
+-------------------------------------------------------------------

Old:
----
  libimagequant-2.14.1.tar.gz

New:
----
  libimagequant-2.15.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libimagequant.spec ++++++
--- /var/tmp/diff_new_pack.Jr5apA/_old  2021-06-25 15:01:32.072165965 +0200
+++ /var/tmp/diff_new_pack.Jr5apA/_new  2021-06-25 15:01:32.076165970 +0200
@@ -19,7 +19,7 @@
 %define sover   0
 %define libname %{name}%{sover}
 Name:           libimagequant
-Version:        2.14.1
+Version:        2.15.1
 Release:        0
 Summary:        Palette quantization library
 License:        GPL-3.0-or-later

++++++ libimagequant-2.14.1.tar.gz -> libimagequant-2.15.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libimagequant-2.14.1/CHANGELOG 
new/libimagequant-2.15.1/CHANGELOG
--- old/libimagequant-2.14.1/CHANGELOG  2021-02-28 19:12:44.000000000 +0100
+++ new/libimagequant-2.15.1/CHANGELOG  2021-05-13 11:29:53.000000000 +0200
@@ -1,3 +1,8 @@
+
+version 2.15
+------------
+ - speed and quality improvements
+
 version 2.14
 ------------
  - improved Rust API
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libimagequant-2.14.1/CMakeLists.txt 
new/libimagequant-2.15.1/CMakeLists.txt
--- old/libimagequant-2.14.1/CMakeLists.txt     2021-02-28 19:12:44.000000000 
+0100
+++ new/libimagequant-2.15.1/CMakeLists.txt     2021-05-13 11:29:53.000000000 
+0200
@@ -2,7 +2,6 @@
 
 project(imagequant C)
 
-option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
 option(BUILD_WITH_SSE "Use SSE" ON)
 
 if(BUILD_WITH_SSE)
@@ -29,4 +28,23 @@
   nearest.c
   pam.c
   kmeans.c
-)
\ No newline at end of file
+)
+
+add_library(imagequant_a STATIC
+  libimagequant.c
+  blur.c
+  mediancut.c
+  mempool.c
+  nearest.c
+  pam.c
+  kmeans.c
+)
+
+set(PREFIX ${CMAKE_INSTALL_PREFIX})
+file(READ version.txt VERSION)
+configure_file(imagequant.pc.in imagequant.pc @ONLY)
+
+install(TARGETS imagequant        LIBRARY           DESTINATION lib)
+install(FILES                     libimagequant.h   DESTINATION include)
+install(FILES ${CMAKE_BINARY_DIR}/libimagequant_a.a DESTINATION lib RENAME 
libimagequant.a)
+install(FILES ${CMAKE_BINARY_DIR}/imagequant.pc     DESTINATION lib/pkgconfig)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libimagequant-2.14.1/Cargo.toml 
new/libimagequant-2.15.1/Cargo.toml
--- old/libimagequant-2.14.1/Cargo.toml 2021-02-28 19:12:44.000000000 +0100
+++ new/libimagequant-2.15.1/Cargo.toml 2021-05-13 11:29:53.000000000 +0200
@@ -1,7 +1,7 @@
 # libimagequant is a pure C library.
 # Rust/Cargo is entirely optional. You can also use ./configure && make
 [package]
-version = "3.0.5+sys2.14.1"
+version = "3.0.6+sys2.15.1"
 authors = ["Kornel Lesin??ski <[email protected]>"]
 build = "rust-sys/build.rs"
 categories = ["external-ffi-bindings"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libimagequant-2.14.1/Makefile 
new/libimagequant-2.15.1/Makefile
--- old/libimagequant-2.14.1/Makefile   2021-02-28 19:12:44.000000000 +0100
+++ new/libimagequant-2.15.1/Makefile   2021-05-13 11:29:53.000000000 +0200
@@ -134,7 +134,7 @@
 endif
 
 $(PKGCONFIG): config.mk
-       sed 's|PREFIX|$(PREFIX)|;s|VERSION|$(VERSION)|' < imagequant.pc.in > 
$(PKGCONFIG)
+       sed 's|@PREFIX@|$(PREFIX)|;s|@VERSION@|$(VERSION)|' < imagequant.pc.in 
> $(PKGCONFIG)
 
 .PHONY: all static shared clean dist distclean dll java cargo
 .DELETE_ON_ERROR:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libimagequant-2.14.1/imagequant.pc.in 
new/libimagequant-2.15.1/imagequant.pc.in
--- old/libimagequant-2.14.1/imagequant.pc.in   2021-02-28 19:12:44.000000000 
+0100
+++ new/libimagequant-2.15.1/imagequant.pc.in   2021-05-13 11:29:53.000000000 
+0200
@@ -1,10 +1,10 @@
-prefix=PREFIX
+prefix=@PREFIX@
 includedir=${prefix}/include
 libdir=${prefix}/lib
 
 Name: imagequant
 Description: Small, portable C library for high-quality conversion of RGBA 
images to 8-bit indexed-color (palette) images.
 URL: https://pngquant.org/lib/
-Version: VERSION
+Version: @VERSION@
 Libs: -L${libdir} -limagequant
 Cflags: -I${includedir}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libimagequant-2.14.1/kmeans.c 
new/libimagequant-2.15.1/kmeans.c
--- old/libimagequant-2.14.1/kmeans.c   2021-02-28 19:12:44.000000000 +0100
+++ new/libimagequant-2.15.1/kmeans.c   2021-05-13 11:29:53.000000000 +0200
@@ -91,13 +91,26 @@
 #endif
     for(int j=0; j < hist_size; j++) {
         float diff;
-        unsigned int match = nearest_search(n, &achv[j].acolor, 
achv[j].tmp.likely_colormap_index, &diff);
+        const f_pixel px = achv[j].acolor;
+        const unsigned int match = nearest_search(n, &px, 
achv[j].tmp.likely_colormap_index, &diff);
         achv[j].tmp.likely_colormap_index = match;
-        total_diff += diff * achv[j].perceptual_weight;
 
-        if (callback) callback(&achv[j], diff);
+        if (callback) {
+            // Check how average diff would look like if there was dithering
+            const f_pixel remapped = map->palette[match].acolor;
+            nearest_search(n, &(f_pixel){
+                .a = px.a + px.a - remapped.a,
+                .r = px.r + px.r - remapped.r,
+                .g = px.g + px.g - remapped.g,
+                .b = px.b + px.b - remapped.b,
+            }, match, &diff);
+
+            callback(&achv[j], diff);
+        }
+
+        total_diff += diff * achv[j].perceptual_weight;
 
-        kmeans_update_color(achv[j].acolor, achv[j].perceptual_weight, map, 
match, omp_get_thread_num(), average_color);
+        kmeans_update_color(px, achv[j].adjusted_weight, map, match, 
omp_get_thread_num(), average_color);
     }
 
     nearest_free(n);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libimagequant-2.14.1/libimagequant.h 
new/libimagequant-2.15.1/libimagequant.h
--- old/libimagequant-2.14.1/libimagequant.h    2021-02-28 19:12:44.000000000 
+0100
+++ new/libimagequant-2.15.1/libimagequant.h    2021-05-13 11:29:53.000000000 
+0200
@@ -13,8 +13,8 @@
 #define LIQ_EXPORT extern
 #endif
 
-#define LIQ_VERSION 21401
-#define LIQ_VERSION_STRING "2.14.1"
+#define LIQ_VERSION 21501
+#define LIQ_VERSION_STRING "2.15.1"
 
 #ifndef LIQ_PRIVATE
 #if defined(__GNUC__) || defined (__llvm__)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libimagequant-2.14.1/version.txt 
new/libimagequant-2.15.1/version.txt
--- old/libimagequant-2.14.1/version.txt        1970-01-01 01:00:00.000000000 
+0100
+++ new/libimagequant-2.15.1/version.txt        2021-05-13 11:29:53.000000000 
+0200
@@ -0,0 +1 @@
+2.15.1

Reply via email to