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-22 07:38:49 +0200
commitec09091309856a3b00235a9e93dc27a2921c27e4 (patch)
tree0eacd517b7aca5e367c00d69b93b320f5e53fd5b
parentb34fe631987b90cf6646271c874f8fa61ed81fbf (diff)
downloadfiv-ec09091309856a3b00235a9e93dc27a2921c27e4.tar.gz
fiv-ec09091309856a3b00235a9e93dc27a2921c27e4.tar.xz
fiv-ec09091309856a3b00235a9e93dc27a2921c27e4.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;