diff options
Diffstat (limited to 'include/mupdf/fitz')
-rw-r--r-- | include/mupdf/fitz/colorspace.h | 8 | ||||
-rw-r--r-- | include/mupdf/fitz/function.h | 4 | ||||
-rw-r--r-- | include/mupdf/fitz/hash.h | 10 | ||||
-rw-r--r-- | include/mupdf/fitz/math.h | 4 |
4 files changed, 13 insertions, 13 deletions
diff --git a/include/mupdf/fitz/colorspace.h b/include/mupdf/fitz/colorspace.h index 9b66ee9e..1572211f 100644 --- a/include/mupdf/fitz/colorspace.h +++ b/include/mupdf/fitz/colorspace.h @@ -74,8 +74,8 @@ struct fz_colorspace_s unsigned int size; char name[16]; int n; - void (*to_rgb)(fz_context *ctx, fz_colorspace *, float *src, float *rgb); - void (*from_rgb)(fz_context *ctx, fz_colorspace *, float *rgb, float *dst); + void (*to_rgb)(fz_context *ctx, fz_colorspace *, const float *src, float *rgb); + void (*from_rgb)(fz_context *ctx, fz_colorspace *, const float *rgb, float *dst); void (*free_data)(fz_context *Ctx, fz_colorspace *); void *data; }; @@ -86,7 +86,7 @@ fz_colorspace *fz_keep_colorspace(fz_context *ctx, fz_colorspace *colorspace); void fz_drop_colorspace(fz_context *ctx, fz_colorspace *colorspace); void fz_free_colorspace_imp(fz_context *ctx, fz_storable *colorspace); -void fz_convert_color(fz_context *ctx, fz_colorspace *dsts, float *dstv, fz_colorspace *srcs, float *srcv); +void fz_convert_color(fz_context *ctx, fz_colorspace *dsts, float *dstv, fz_colorspace *srcs, const float *srcv); void fz_new_colorspace_context(fz_context *ctx); fz_colorspace_context *fz_keep_colorspace_context(fz_context *ctx); @@ -100,7 +100,7 @@ typedef struct fz_color_converter_s fz_color_converter; */ struct fz_color_converter_s { - void (*convert)(fz_color_converter *, float *, float *); + void (*convert)(fz_color_converter *, float *, const float *); fz_context *ctx; fz_colorspace *ds; fz_colorspace *ss; diff --git a/include/mupdf/fitz/function.h b/include/mupdf/fitz/function.h index e3a1469b..b623172c 100644 --- a/include/mupdf/fitz/function.h +++ b/include/mupdf/fitz/function.h @@ -12,7 +12,7 @@ typedef struct fz_function_s fz_function; -void fz_eval_function(fz_context *ctx, fz_function *func, float *in, int inlen, float *out, int outlen); +void fz_eval_function(fz_context *ctx, fz_function *func, const float *in, int inlen, float *out, int outlen); fz_function *fz_keep_function(fz_context *ctx, fz_function *func); void fz_drop_function(fz_context *ctx, fz_function *func); unsigned int fz_function_size(fz_function *func); @@ -32,7 +32,7 @@ struct fz_function_s unsigned int size; int m; /* number of input values */ int n; /* number of output values */ - void (*evaluate)(fz_context *ctx, fz_function *func, float *in, float *out); + void (*evaluate)(fz_context *ctx, fz_function *func, const float *in, float *out); #ifndef NDEBUG void (*debug)(fz_function *func); #endif diff --git a/include/mupdf/fitz/hash.h b/include/mupdf/fitz/hash.h index 9179a5d3..f70e9693 100644 --- a/include/mupdf/fitz/hash.h +++ b/include/mupdf/fitz/hash.h @@ -14,11 +14,11 @@ fz_hash_table *fz_new_hash_table(fz_context *ctx, int initialsize, int keylen, i void fz_empty_hash(fz_context *ctx, fz_hash_table *table); void fz_free_hash(fz_context *ctx, fz_hash_table *table); -void *fz_hash_find(fz_context *ctx, fz_hash_table *table, void *key); -void *fz_hash_insert(fz_context *ctx, fz_hash_table *table, void *key, void *val); -void *fz_hash_insert_with_pos(fz_context *ctx, fz_hash_table *table, void *key, void *val, unsigned *pos); -void fz_hash_remove(fz_context *ctx, fz_hash_table *table, void *key); -void fz_hash_remove_fast(fz_context *ctx, fz_hash_table *table, void *key, unsigned pos); +void *fz_hash_find(fz_context *ctx, fz_hash_table *table, const void *key); +void *fz_hash_insert(fz_context *ctx, fz_hash_table *table, const void *key, void *val); +void *fz_hash_insert_with_pos(fz_context *ctx, fz_hash_table *table, const void *key, void *val, unsigned *pos); +void fz_hash_remove(fz_context *ctx, fz_hash_table *table, const void *key); +void fz_hash_remove_fast(fz_context *ctx, fz_hash_table *table, const void *key, unsigned pos); int fz_hash_len(fz_context *ctx, fz_hash_table *table); void *fz_hash_get_key(fz_context *ctx, fz_hash_table *table, int idx); diff --git a/include/mupdf/fitz/math.h b/include/mupdf/fitz/math.h index 387f73a4..b2a5cd4a 100644 --- a/include/mupdf/fitz/math.h +++ b/include/mupdf/fitz/math.h @@ -129,7 +129,7 @@ struct fz_rect_s */ static inline fz_point *fz_rect_min(fz_rect *f) { - return (fz_point *)(void *)&f->x0; + return (fz_point *)&f->x0; } /* @@ -137,7 +137,7 @@ static inline fz_point *fz_rect_min(fz_rect *f) */ static inline fz_point *fz_rect_max(fz_rect *f) { - return (fz_point *)(void *)&f->x1; + return (fz_point *)&f->x1; } /* |