Compare commits
10 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 11eade99bd | |||
| b0f618dc9c | |||
| 08f354a904 | |||
| 0a35b757e2 | |||
| a163e2bc97 | |||
| a43b63138c | |||
| 7309929d43 | |||
| be880222fc | |||
| 40055476e1 | |||
| 285cd0e861 |
10
_service
10
_service
@@ -1,15 +1,15 @@
|
||||
<services>
|
||||
<service name="obs_scm" mode="disabled">
|
||||
<service name="obs_scm" mode="manual">
|
||||
<param name="url">https://github.com/sekrit-twc/zimg.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="versionformat">@PARENT_TAG@+%cd.g%h</param>
|
||||
<param name="versionrewrite-pattern">release-([0-9\.]*)</param>
|
||||
<param name="revision">release-3.0.5</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
</service>
|
||||
<service name="tar" mode="buildtime" />
|
||||
<service name="recompress" mode="buildtime">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
<param name="compression">zst</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled"/>
|
||||
<service name="set_version" mode="manual"/>
|
||||
</services>
|
||||
|
||||
4
_servicedata
Normal file
4
_servicedata
Normal file
@@ -0,0 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/sekrit-twc/zimg.git</param>
|
||||
<param name="changesrevision">df9c1472b9541d0e79c8d02dae37fdf12f189ec2</param></service></servicedata>
|
||||
BIN
zimg-3.0.5.obscpio
LFS
BIN
zimg-3.0.5.obscpio
LFS
Binary file not shown.
3
zimg-3.0.6+20250919.gdf9c147.obscpio
Normal file
3
zimg-3.0.6+20250919.gdf9c147.obscpio
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b93c084f899a647c0077fa428dfca67b0a2c18c7a888a576ea16516f6779a8a4
|
||||
size 10054669
|
||||
@@ -1,60 +0,0 @@
|
||||
From b2bee8460a0f6ecf049e27d0a2090c87e871d951 Mon Sep 17 00:00:00 2001
|
||||
From: Mike Gorse <mgorse@suse.com>
|
||||
Date: Wed, 22 Sep 2021 11:57:47 -0500
|
||||
Subject: [PATCH] FIx unit tests on big endian systems
|
||||
|
||||
---
|
||||
test/extra/sha1/config.h | 6 ++++++
|
||||
test/graph/filter_validator.cpp | 8 ++++++++
|
||||
2 files changed, 14 insertions(+)
|
||||
|
||||
diff --git a/test/extra/sha1/config.h b/test/extra/sha1/config.h
|
||||
index ea853f0..7bc4e00 100644
|
||||
--- a/test/extra/sha1/config.h
|
||||
+++ b/test/extra/sha1/config.h
|
||||
@@ -1,3 +1,5 @@
|
||||
+#include <endian.h>
|
||||
+
|
||||
#ifndef LITTLE_ENDIAN
|
||||
#define LITTLE_ENDIAN 4321
|
||||
#endif
|
||||
@@ -7,5 +9,9 @@
|
||||
#endif
|
||||
|
||||
#ifndef BYTE_ORDER
|
||||
+#if defined(__BYTE_ORDER) && (__BYTE_ORDER == __BIG_ENDIAN)
|
||||
+ #define BYTE_ORDER BIG_ENDIAN
|
||||
+#else
|
||||
#define BYTE_ORDER LITTLE_ENDIAN
|
||||
#endif
|
||||
+#endif
|
||||
diff --git a/test/graph/filter_validator.cpp b/test/graph/filter_validator.cpp
|
||||
index f0d6859..d768ebf 100644
|
||||
--- a/test/graph/filter_validator.cpp
|
||||
+++ b/test/graph/filter_validator.cpp
|
||||
@@ -13,6 +13,8 @@
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
+#include <endian.h>
|
||||
+
|
||||
extern "C" {
|
||||
#include "sha1/sha1.h"
|
||||
}
|
||||
@@ -40,7 +42,13 @@ void hash_buffer(const AuditBuffer<T> &buf, unsigned p, unsigned width, unsigned
|
||||
|
||||
for (unsigned i = 0; i < height; ++i) {
|
||||
const unsigned char *ptr = static_cast<const unsigned char *>(image_buffer[p][i]);
|
||||
+#if (__BYTE_ORDER == __LITTLE_ENDIAN)
|
||||
SHA1Update(&sha_ctx, ptr, width * sizeof(T));
|
||||
+#else
|
||||
+ for (unsigned j = 0; j < width; j++)
|
||||
+ for (int k = sizeof(T) - 1; k >= 0; k--)
|
||||
+ SHA1Update(&sha_ctx, ptr + (j * sizeof(T)) + k, 1);
|
||||
+#endif
|
||||
}
|
||||
|
||||
SHA1Final(digest, &sha_ctx);
|
||||
--
|
||||
2.32.0
|
||||
|
||||
37
zimg.changes
37
zimg.changes
@@ -1,3 +1,40 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Sep 20 00:34:55 UTC 2025 - Mia Herkt <mia@0x0.st>
|
||||
|
||||
- Update to version 3.0.6+20250919.gdf9c147:
|
||||
* test: fix NEON tests
|
||||
* depth: fix border handling in byte-word left shift conversion
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 18 21:28:01 UTC 2025 - Mia Herkt <mia@0x0.st>
|
||||
|
||||
- Update to 3.0.6+20250814.g1f53009
|
||||
* colorspace: fix AVX-512 sRGB/709 with negative input
|
||||
(introduced in 2.8)
|
||||
* resize: fix AVX-512 downscaling with certain tap counts
|
||||
(introduced in 2.6)
|
||||
- Switch to snapshots of master because the branch on which
|
||||
releases are tagged lacks a lot of fixes that are in master while
|
||||
both share the same version identifier.
|
||||
- Drop Patches
|
||||
* cmake-googletest.patch
|
||||
* zimg-gcc15.patch
|
||||
* zimg-s390x-unit-tests.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 13 06:20:40 UTC 2025 - Christoph G <foss@grueninger.de>
|
||||
|
||||
- add patch cmake-googletest.patch to fix incompatibility of
|
||||
old google-test with CMake 4.0. Upstream has already updated the
|
||||
dependency.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 12 11:28:14 UTC 2025 - pgajdos@suse.com
|
||||
|
||||
- added patches
|
||||
fix https://github.com/sekrit-twc/zimg/issues/214
|
||||
+ zimg-gcc15.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 14 17:48:12 UTC 2023 - Mia Herkt <mia@0x0.st>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
name: zimg
|
||||
version: 3.0.5
|
||||
mtime: 1688147727
|
||||
commit: e5b0de6bebbcbc66732ed5afaafef6b2c7dfef87
|
||||
version: 3.0.6+20250919.gdf9c147
|
||||
mtime: 1758327814
|
||||
commit: df9c1472b9541d0e79c8d02dae37fdf12f189ec2
|
||||
|
||||
12
zimg.spec
12
zimg.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package zimg
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,15 +18,13 @@
|
||||
|
||||
%define sover 2
|
||||
Name: zimg
|
||||
Version: 3.0.5
|
||||
Version: 3.0.6+20250919.gdf9c147
|
||||
Release: 0
|
||||
Summary: Scaling, colorspace conversion, and dithering library
|
||||
License: WTFPL
|
||||
Group: Development/Libraries/C and C++
|
||||
URL: https://github.com/sekrit-twc/zimg
|
||||
Source0: zimg-%{version}.tar.xz
|
||||
Source0: zimg-%{version}.tar.zst
|
||||
Source99: baselibs.conf
|
||||
Patch0: zimg-s390x-unit-tests.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: cmake
|
||||
@@ -40,7 +38,6 @@ basics of scaling, colorspace conversion, and depth conversion.
|
||||
|
||||
%package -n libzimg%{sover}
|
||||
Summary: Scaling, colorspace conversion, and dithering library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libzimg%{sover}
|
||||
The "z" image library implements the commonly required image processing
|
||||
@@ -48,7 +45,6 @@ basics of scaling, colorspace conversion, and depth conversion.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for libzimg%{sover}
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libzimg%{sover} = %{version}
|
||||
|
||||
%description devel
|
||||
@@ -56,7 +52,7 @@ The libzimg-devel package contains libraries and header files for
|
||||
developing applications that use libzimg%{sover}.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
autoreconf -fiv
|
||||
|
||||
Reference in New Issue
Block a user