aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-06-25 02:20:34 +0200
committerPřemysl Eric Janouch <p@janouch.name>2024-04-13 05:16:49 +0200
commit9d17d1094ad6f0054d9aa74eeb76e88653790ad2 (patch)
tree8005dc3ca18cf88daf3ac0b3bc8332600e06a51a
parent3c8ddcaf264a08102b27ae96a8a8340cb0abc997 (diff)
downloadfiv-9d17d1094ad6f0054d9aa74eeb76e88653790ad2.tar.gz
fiv-9d17d1094ad6f0054d9aa74eeb76e88653790ad2.tar.xz
fiv-9d17d1094ad6f0054d9aa74eeb76e88653790ad2.zip
NOPUSH: Avoid JPEG enhancement within the TIFF/EP loader
I'm not sure if I want to get rid of it completely like this, it should just load progressively.
-rw-r--r--fiv-io.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fiv-io.c b/fiv-io.c
index 24db289..66e6fd3 100644
--- a/fiv-io.c
+++ b/fiv-io.c
@@ -1903,8 +1903,9 @@ load_tiff_ep(
return NULL;
}
- FivIoImage *image = open_libjpeg_turbo(
- (const char *) out.jpeg, out.jpeg_length, ctx, error);
+ // Ignore ctx->enhance explicitly, for when we don't have LibRaw at all.
+ FivIoImage *image = load_libjpeg_turbo((const char *) out.jpeg,
+ out.jpeg_length, ctx, load_libjpeg_simple, error);
if (!image)
return NULL;