summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-colorspace.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-01-21 12:55:36 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-01-21 12:55:36 +0100
commit6625a5b82671df7e79afc69a2ba366fb64df03a9 (patch)
treeb8bc2694b269fce2dc7c1e00ead0f47590993419 /source/pdf/pdf-colorspace.c
parent000b8df004b175781af5b071590cf3867ae16f3a (diff)
downloadmupdf-6625a5b82671df7e79afc69a2ba366fb64df03a9.tar.xz
Drop const from fz_colorspace.
It's an opaque immutable structure, that we don't expect to ever want to change after creation. Therefore the const keyword is not useful, and is only line noise.
Diffstat (limited to 'source/pdf/pdf-colorspace.c')
-rw-r--r--source/pdf/pdf-colorspace.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/pdf/pdf-colorspace.c b/source/pdf/pdf-colorspace.c
index b8c2e1cc..321b224b 100644
--- a/source/pdf/pdf-colorspace.c
+++ b/source/pdf/pdf-colorspace.c
@@ -53,7 +53,7 @@ static inline float fung(float x)
}
static void
-lab_to_rgb(fz_context *ctx, const fz_colorspace *cs, const 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;
@@ -75,7 +75,7 @@ lab_to_rgb(fz_context *ctx, const fz_colorspace *cs, const float *lab, float *rg
}
static void
-rgb_to_lab(fz_context *ctx, const fz_colorspace *cs, const 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];
@@ -95,7 +95,7 @@ struct separation
};
static void
-separation_to_rgb(fz_context *ctx, const fz_colorspace *cs, const 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];
@@ -104,7 +104,7 @@ separation_to_rgb(fz_context *ctx, const fz_colorspace *cs, const float *color,
}
static void
-free_separation(fz_context *ctx, const fz_colorspace *cs)
+free_separation(fz_context *ctx, fz_colorspace *cs)
{
struct separation *sep = cs->data;
fz_drop_colorspace(ctx, sep->base);
@@ -165,7 +165,7 @@ load_separation(fz_context *ctx, pdf_document *doc, pdf_obj *array)
}
int
-pdf_is_tint_colorspace(fz_context *ctx, const fz_colorspace *cs)
+pdf_is_tint_colorspace(fz_context *ctx, fz_colorspace *cs)
{
return cs && cs->to_rgb == separation_to_rgb;
}