summaryrefslogtreecommitdiff
path: root/fitz/fitz-internal.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-10-01 16:55:08 +0100
committerRobin Watts <robin.watts@artifex.com>2012-10-05 15:51:26 +0100
commit8aa48c0f5766a0d62489cb42225cd03f3d1a2a62 (patch)
tree151cd16ac806c00c2ff84f22a730bb90b83b34c8 /fitz/fitz-internal.h
parent9463d7a87f46c4f50cb1074424c9c3ecda7a5da1 (diff)
downloadmupdf-8aa48c0f5766a0d62489cb42225cd03f3d1a2a62.tar.xz
Make shadings hold the data streams compressed.
This reduces memory use by another 10% on the 2 testfiles mentioned in the previous commit (see bug 693330).
Diffstat (limited to 'fitz/fitz-internal.h')
-rw-r--r--fitz/fitz-internal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fitz/fitz-internal.h b/fitz/fitz-internal.h
index 5c9270a1..b34f27f5 100644
--- a/fitz/fitz-internal.h
+++ b/fitz/fitz-internal.h
@@ -697,7 +697,9 @@ fz_bbox fz_pixmap_bbox_no_ctx(fz_pixmap *src);
typedef struct fz_compression_params_s fz_compression_params;
typedef struct fz_compressed_buffer_s fz_compressed_buffer;
+unsigned int fz_compressed_buffer_size(fz_compressed_buffer *buffer);
+fz_stream *fz_open_compressed_buffer(fz_context *ctx, fz_compressed_buffer *);
fz_stream *fz_open_image_decomp_stream(fz_context *ctx, fz_compressed_buffer *, int *factor);
enum
@@ -1077,7 +1079,7 @@ struct fz_shade_s
} f;
} u;
- fz_buffer *buffer;
+ fz_compressed_buffer *buffer;
};
fz_shade *fz_keep_shade(fz_context *ctx, fz_shade *shade);