diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-02-17 15:45:22 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-02-17 16:36:06 +0100 |
commit | 41084f0023df8706fadfa2e2b6373ec03a7c7ca4 (patch) | |
tree | 0e2f4be0832654f5b5d3c8411822ab9de50a5abb /source/pdf/pdf-colorspace.c | |
parent | 3f0004acad7da3fcac4687844cb36e2b1ee855b0 (diff) | |
download | mupdf-41084f0023df8706fadfa2e2b6373ec03a7c7ca4.tar.xz |
Add const to colorspace source arguments and dependencies.
Diffstat (limited to 'source/pdf/pdf-colorspace.c')
-rw-r--r-- | source/pdf/pdf-colorspace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/pdf/pdf-colorspace.c b/source/pdf/pdf-colorspace.c index 12bc6a34..4b250f6c 100644 --- a/source/pdf/pdf-colorspace.c +++ b/source/pdf/pdf-colorspace.c @@ -54,7 +54,7 @@ static inline float fung(float x) } static void -lab_to_rgb(fz_context *ctx, fz_colorspace *cs, float *lab, float *rgb) +lab_to_rgb(fz_context *ctx, fz_colorspace *cs, const float *lab, float *rgb) { /* input is in range (0..100, -128..127, -128..127) not (0..1, 0..1, 0..1) */ float lstar, astar, bstar, l, m, n, x, y, z, r, g, b; @@ -76,7 +76,7 @@ lab_to_rgb(fz_context *ctx, fz_colorspace *cs, float *lab, float *rgb) } static void -rgb_to_lab(fz_context *ctx, fz_colorspace *cs, float *rgb, float *lab) +rgb_to_lab(fz_context *ctx, fz_colorspace *cs, const float *rgb, float *lab) { fz_warn(ctx, "cannot convert into L*a*b colorspace"); lab[0] = rgb[0]; @@ -96,7 +96,7 @@ struct separation }; static void -separation_to_rgb(fz_context *ctx, fz_colorspace *cs, float *color, float *rgb) +separation_to_rgb(fz_context *ctx, fz_colorspace *cs, const float *color, float *rgb) { struct separation *sep = cs->data; float alt[FZ_MAX_COLORS]; |