aboutsummaryrefslogtreecommitdiff
path: root/fiv-io.c
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-07-27 08:43:57 +0200
commit1f04518f11a5f6cb15eecb9dcd0d8487281ab142 (patch)
treeb61fca00ef1027e37128ea69bf30434b359c0faf /fiv-io.c
parent192ffa0de914a102003664e987b7acf07aa954a9 (diff)
downloadfiv-1f04518f11a5f6cb15eecb9dcd0d8487281ab142.tar.gz
fiv-1f04518f11a5f6cb15eecb9dcd0d8487281ab142.tar.xz
fiv-1f04518f11a5f6cb15eecb9dcd0d8487281ab142.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.
Diffstat (limited to 'fiv-io.c')
-rw-r--r--fiv-io.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fiv-io.c b/fiv-io.c
index 2d32990..5c7e75d 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;