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-01-26 21:58:38 +0100
commit6206ce91135402af21ea9b5417d07169cca5e49a (patch)
treedc5bf747759951450e3970ce6bea9a9b7a105e8c /fiv-io.c
parentf23afa080a227ab9200573da7eb4e5be9afd8e58 (diff)
downloadfiv-6206ce91135402af21ea9b5417d07169cca5e49a.tar.gz
fiv-6206ce91135402af21ea9b5417d07169cca5e49a.tar.xz
fiv-6206ce91135402af21ea9b5417d07169cca5e49a.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 ce30f2d..4fd3d29 100644
--- a/fiv-io.c
+++ b/fiv-io.c
@@ -1890,8 +1890,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;