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>2023-10-17 15:34:45 +0200
commitec0d58b5633bd83be5277149c05320d67b51bf4e (patch)
tree6550ccb3bae17236e1170f259c97ab3c98c2e28c
parentb07fba0c9c0af509dd4fd05846c22b07730751aa (diff)
downloadfiv-ec0d58b5633bd83be5277149c05320d67b51bf4e.tar.gz
fiv-ec0d58b5633bd83be5277149c05320d67b51bf4e.tar.xz
fiv-ec0d58b5633bd83be5277149c05320d67b51bf4e.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 ed93e62..5c0b320 100644
--- a/fiv-io.c
+++ b/fiv-io.c
@@ -2098,8 +2098,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;