Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wolfi323:branches:KDE:Frameworks5
krita5
0003-JPEG-XL-Disable-export-bug-workaround-for-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-JPEG-XL-Disable-export-bug-workaround-for-libjxl-0.9.patch of Package krita5
From b299812aaf8b79223b4523a43c1427e343b2e753 Mon Sep 17 00:00:00 2001 From: "Rasyuqa A. H." <qampidh@gmail.com> Date: Mon, 8 Jan 2024 17:48:34 +0700 Subject: [PATCH 3/3] JPEG-XL: Disable export bug workaround for libjxl >= 0.9.0 (cherry picked from commit 546765dfd396a4bb482b98a7b6ca22f1dca809af) --- plugins/impex/jxl/JPEGXLExport.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/impex/jxl/JPEGXLExport.cpp b/plugins/impex/jxl/JPEGXLExport.cpp index e0d22f0d298a..f662cf4476cd 100644 --- a/plugins/impex/jxl/JPEGXLExport.cpp +++ b/plugins/impex/jxl/JPEGXLExport.cpp @@ -832,14 +832,16 @@ KisImportExportErrorCode JPEGXLExport::convert(KisDocument *document, QIODevice }(); // XXX: Workaround for a buggy lossless patches. Set to disable instead. - // TODO Kampidh: revisit this when upstream got fixed. + // Patch only for libjxl under v0.9.0 // // See: https://github.com/libjxl/libjxl/issues/2463 const int setPatches = [&]() -> int { +#if JPEGXL_NUMERIC_VERSION < JPEGXL_COMPUTE_NUMERIC_VERSION(0, 9, 0) if ((cfg->getInt("effort", 7) > 4) && !cfg->getBool("flattenLayers", true)) { warnFile << "Using workaround for layer exports, disabling patches option on effort > 4"; return 0; } +#endif return cfg->getInt("patches", -1); }(); -- 2.43.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor