summaryrefslogtreecommitdiff
path: root/fitz/image_save.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-03-13 13:57:11 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-03-13 13:57:11 +0100
commit48652e529ed1c0ae23cfd45f14d9655ad2849c89 (patch)
treea34e7562a30f3a7e42070f1f5a8763f6d1d608cb /fitz/image_save.c
parent9cbfb766564d0e80d259e3e0a919d72a75bbb6ee (diff)
downloadmupdf-48652e529ed1c0ae23cfd45f14d9655ad2849c89.tar.xz
Rename some functions and accessors to be more consistent.
Debug printing functions: debug -> print. Accessors: get noun attribute -> noun attribute. Find -> lookup when the returned value is not reference counted. pixmap_with_rect -> pixmap_with_bbox. We are reserving the word "find" to mean lookups that give ownership of objects to the caller. Lookup is used in other places where the ownership is not transferred, or simple values are returned. The rename is done by the sed script in scripts/rename3.sed
Diffstat (limited to 'fitz/image_save.c')
-rw-r--r--fitz/image_save.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fitz/image_save.c b/fitz/image_save.c
index 29d3e8fc..614d18ce 100644
--- a/fitz/image_save.c
+++ b/fitz/image_save.c
@@ -1,6 +1,6 @@
#include "fitz-internal.h"
-void fz_save_pixmap(fz_context *ctx, fz_pixmap *img, char *file, int rgb)
+void fz_write_pixmap(fz_context *ctx, fz_pixmap *img, char *file, int rgb)
{
char name[1024];
fz_pixmap *converted = NULL;
@@ -10,7 +10,7 @@ void fz_save_pixmap(fz_context *ctx, fz_pixmap *img, char *file, int rgb)
if (rgb && img->colorspace && img->colorspace != fz_device_rgb)
{
- converted = fz_new_pixmap_with_rect(ctx, fz_device_rgb, fz_bound_pixmap(img));
+ converted = fz_new_pixmap_with_bbox(ctx, fz_device_rgb, fz_bound_pixmap(img));
fz_convert_pixmap(ctx, converted, img);
img = converted;
}