summaryrefslogtreecommitdiff
path: root/jpg2ff.c
diff options
context:
space:
mode:
authorFRIGN <dev@frign.de>2016-01-20 22:31:25 +0100
committerFRIGN <dev@frign.de>2016-01-20 22:31:25 +0100
commite9feca5c2bda05b9a356617868fd4b08ec903d0d (patch)
treec2365c79339e2b020fbd1ecb61ae60c85ae38cdb /jpg2ff.c
parent291e677210c6c2c1d1eba2f0ba2243806ef63b07 (diff)
Use linear RGB
Makes things a lot easier for image manipulation algorithms which can be expected to be applied to farbfeld data.
Diffstat (limited to 'jpg2ff.c')
-rw-r--r--jpg2ff.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/jpg2ff.c b/jpg2ff.c
index c1a0f92..cdf5d56 100644
--- a/jpg2ff.c
+++ b/jpg2ff.c
@@ -12,7 +12,7 @@
static char *argv0;
-/* ProPhoto RGB */
+/* ROMM RGB primaries (ISO 22028-2:2013) */
static cmsCIExyYTRIPLE primaries = {
/* x, y, Y */
{ 0.7347, 0.2653, 0.288040 }, /* red */
@@ -33,7 +33,7 @@ main(int argc, char *argv[])
{
cmsHPROFILE in_profile = NULL, out_profile;
cmsHTRANSFORM transform;
- cmsToneCurve *gamma18, *out_curves[3];
+ cmsToneCurve *gamma10, *out_curves[3];
struct jpeg_decompress_struct cinfo;
jpeg_saved_marker_ptr marker;
struct jpeg_error_mgr jerr;
@@ -97,12 +97,12 @@ main(int argc, char *argv[])
return 1;
}
- /* icc profile (output ProPhoto RGB) */
+ /* icc profile (output linear ROMM RGB (ISO 22028-2:2013)) */
if (!in_profile && !(in_profile = cmsCreate_sRGBProfile()))
goto lcmserr;
- if (!(gamma18 = cmsBuildGamma(NULL, 1.8)))
+ if (!(gamma10 = cmsBuildGamma(NULL, 1.0)))
goto lcmserr;
- out_curves[0] = out_curves[1] = out_curves[2] = gamma18;
+ out_curves[0] = out_curves[1] = out_curves[2] = gamma10;
if (!(out_profile = cmsCreateRGBProfile(cmsD50_xyY(), &primaries,
out_curves)))
goto lcmserr;