summaryrefslogtreecommitdiff
path: root/include/fitz/colorspace.h
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-11-01 03:25:13 +0100
committerTor Andersson <tor@ghostscript.com>2004-11-01 03:25:13 +0100
commit691028a1c0528158e8a8ec04631b26b46caa3804 (patch)
treea9fd4eabd25976fbce711e12da9496b41cdd5f06 /include/fitz/colorspace.h
parent082f865c4e16e525076a86df5da2a1b03da293bb (diff)
downloadmupdf-691028a1c0528158e8a8ec04631b26b46caa3804.tar.xz
great free -> drop renaming
Diffstat (limited to 'include/fitz/colorspace.h')
-rw-r--r--include/fitz/colorspace.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/include/fitz/colorspace.h b/include/fitz/colorspace.h
index 370c755f..9b5a5dbb 100644
--- a/include/fitz/colorspace.h
+++ b/include/fitz/colorspace.h
@@ -1,4 +1,8 @@
typedef struct fz_colorspace_s fz_colorspace;
+typedef struct fz_colorcube_s fz_colorcube;
+typedef struct fz_colorcube1_s fz_colorcube1;
+typedef struct fz_colorcube3_s fz_colorcube3;
+typedef struct fz_colorcube4_s fz_colorcube4;
struct fz_colorspace_s
{
@@ -7,9 +11,20 @@ struct fz_colorspace_s
int n;
void (*toxyz)(fz_colorspace *, float *src, float *xyz);
void (*fromxyz)(fz_colorspace *, float *xyz, float *dst);
- void (*free)(fz_colorspace *);
+ void (*drop)(fz_colorspace *);
};
-void fz_freecolorspace(fz_colorspace *cs);
+struct fz_colorcube1_s { unsigned char v[17]; };
+struct fz_colorcube3_s { unsigned char v[17][17][17]; };
+struct fz_colorcube4_s { unsigned char v[17][17][17][17]; };
+
+struct fz_colorcube_s
+{
+ fz_colorspace *src;
+ fz_colorspace *dst;
+ void **subcube; /* dst->n * colorcube(src->n) */
+};
+
+void fz_dropcolorspace(fz_colorspace *cs);
void fz_convertcolor(fz_colorspace *srcs, float *srcv, fz_colorspace *dsts, float *dstv);