From 54e5388e761a9aa0e64f50839a2f0b1545369346 Mon Sep 17 00:00:00 2001 From: Jonas Diemer Date: Fri, 9 Jan 2026 16:47:51 +0100 Subject: [PATCH] Disable brightness and gamma corrections in JPG converter. They are no longer needed with updated quantization. --- lib/JpegToBmpConverter/JpegToBmpConverter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/JpegToBmpConverter/JpegToBmpConverter.cpp b/lib/JpegToBmpConverter/JpegToBmpConverter.cpp index 8c8db889..3910836c 100644 --- a/lib/JpegToBmpConverter/JpegToBmpConverter.cpp +++ b/lib/JpegToBmpConverter/JpegToBmpConverter.cpp @@ -24,9 +24,9 @@ constexpr bool USE_ATKINSON = true; // Atkinson dithering (cleaner than constexpr bool USE_FLOYD_STEINBERG = false; // Floyd-Steinberg error diffusion (can cause "worm" artifacts) constexpr bool USE_NOISE_DITHERING = false; // Hash-based noise dithering (good for downsampling) // Brightness/Contrast adjustments: -constexpr bool USE_BRIGHTNESS = true; // true: apply brightness/gamma adjustments +constexpr bool USE_BRIGHTNESS = false; // true: apply brightness/gamma adjustments constexpr int BRIGHTNESS_BOOST = 10; // Brightness offset (0-50) -constexpr bool GAMMA_CORRECTION = true; // Gamma curve (brightens midtones) +constexpr bool GAMMA_CORRECTION = false; // Gamma curve (brightens midtones) constexpr float CONTRAST_FACTOR = 1.15f; // Contrast multiplier (1.0 = no change, >1 = more contrast) // Pre-resize to target display size (CRITICAL: avoids dithering artifacts from post-downsampling) constexpr bool USE_PRESCALE = true; // true: scale image to target size before dithering