From cff6f809da556624fb1de34725935278093182e1 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 29 May 2013 14:41:05 +0200 Subject: Rename some find/lookup functions to be in line with documentation. --- fitz/fitz-internal.h | 2 +- fitz/fitz.h | 4 ++-- fitz/res_colorspace.c | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'fitz') diff --git a/fitz/fitz-internal.h b/fitz/fitz-internal.h index 40c7b516..e2bd2df4 100644 --- a/fitz/fitz-internal.h +++ b/fitz/fitz-internal.h @@ -1081,7 +1081,7 @@ struct fz_color_converter_s fz_colorspace *ss; }; -void fz_find_color_converter(fz_color_converter *cc, fz_context *ctx, fz_colorspace *ds, fz_colorspace *ss); +void fz_lookup_color_converter(fz_color_converter *cc, fz_context *ctx, fz_colorspace *ds, fz_colorspace *ss); /* * Fonts come in two variants: diff --git a/fitz/fitz.h b/fitz/fitz.h index 8817672d..fd999421 100644 --- a/fitz/fitz.h +++ b/fitz/fitz.h @@ -1418,10 +1418,10 @@ void fz_drop_bitmap(fz_context *ctx, fz_bitmap *bit); typedef struct fz_colorspace_s fz_colorspace; /* - fz_find_device_colorspace: Find a standard colorspace based upon + fz_lookup_device_colorspace: Find a standard colorspace based upon it's name. */ -fz_colorspace *fz_find_device_colorspace(fz_context *ctx, char *name); +fz_colorspace *fz_lookup_device_colorspace(fz_context *ctx, char *name); /* fz_colorspace_is_indexed: Return true, iff a given colorspace is diff --git a/fitz/res_colorspace.c b/fitz/res_colorspace.c index 2a99f9ba..9603f46d 100644 --- a/fitz/res_colorspace.c +++ b/fitz/res_colorspace.c @@ -243,7 +243,7 @@ fz_device_cmyk(fz_context *ctx) } fz_colorspace * -fz_find_device_colorspace(fz_context *ctx, char *name) +fz_lookup_device_colorspace(fz_context *ctx, char *name) { if (!strcmp(name, "DeviceGray")) return fz_device_gray(ctx); @@ -830,7 +830,7 @@ fz_std_conv_pixmap(fz_context *ctx, fz_pixmap *dst, fz_pixmap *src) { fz_color_converter cc; - fz_find_color_converter(&cc, ctx, ds, ss); + fz_lookup_color_converter(&cc, ctx, ds, ss); for (; xy > 0; xy--) { srcv[0] = *s++ / 255.0f * 100; @@ -851,7 +851,7 @@ fz_std_conv_pixmap(fz_context *ctx, fz_pixmap *dst, fz_pixmap *src) { fz_color_converter cc; - fz_find_color_converter(&cc, ctx, ds, ss); + fz_lookup_color_converter(&cc, ctx, ds, ss); for (; xy > 0; xy--) { for (k = 0; k < srcn; k++) @@ -872,7 +872,7 @@ fz_std_conv_pixmap(fz_context *ctx, fz_pixmap *dst, fz_pixmap *src) unsigned char lookup[FZ_MAX_COLORS * 256]; fz_color_converter cc; - fz_find_color_converter(&cc, ctx, ds, ss); + fz_lookup_color_converter(&cc, ctx, ds, ss); for (i = 0; i < 256; i++) { srcv[0] = i / 255.0f; @@ -899,7 +899,7 @@ fz_std_conv_pixmap(fz_context *ctx, fz_pixmap *dst, fz_pixmap *src) unsigned char *sold = &dummy; fz_color_converter cc; - fz_find_color_converter(&cc, ctx, ds, ss); + fz_lookup_color_converter(&cc, ctx, ds, ss); lookup = fz_new_hash_table(ctx, 509, srcn, -1); for (; xy > 0; xy--) @@ -1113,7 +1113,7 @@ cmyk2bgr(fz_color_converter *cc, float *dv, float *sv) #endif } -void fz_find_color_converter(fz_color_converter *cc, fz_context *ctx, fz_colorspace *ds, fz_colorspace *ss) +void fz_lookup_color_converter(fz_color_converter *cc, fz_context *ctx, fz_colorspace *ds, fz_colorspace *ss) { cc->ctx = ctx; cc->ds = ds; @@ -1173,7 +1173,7 @@ fz_convert_color(fz_context *ctx, fz_colorspace *ds, float *dv, fz_colorspace *s { fz_color_converter cc; - fz_find_color_converter(&cc, ctx, ds, ss); + fz_lookup_color_converter(&cc, ctx, ds, ss); cc.convert(&cc, dv, sv); } -- cgit v1.2.3