summaryrefslogtreecommitdiff
path: root/include/fitz/pixmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/fitz/pixmap.h')
-rw-r--r--include/fitz/pixmap.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/fitz/pixmap.h b/include/fitz/pixmap.h
index 90071a30..f46c2c05 100644
--- a/include/fitz/pixmap.h
+++ b/include/fitz/pixmap.h
@@ -3,6 +3,7 @@ typedef struct fz_colorspace_s fz_colorspace;
struct fz_pixmap_s
{
+ int refcount;
int x, y, w, h;
int n, a;
int stride;
@@ -11,12 +12,10 @@ struct fz_pixmap_s
};
fz_error *fz_newpixmap(fz_pixmap **mapp, int x, int y, int w, int h, int n, int a);
+fz_pixmap *fz_keeppixmap(fz_pixmap *map);
+void fz_droppixmap(fz_pixmap *map);
void fz_clearpixmap(fz_pixmap *map);
-void fz_freepixmap(fz_pixmap *map);
-void fz_blendover(short *C, short *A, short *B, int n);
-void fz_blendin(short *C, short *A, short *B, int n);
-void fz_blendout(short *C, short *A, short *B, int n);
-void fz_blendatop(short *C, short *A, short *B, int n);
-void fz_blendxor(short *C, short *A, short *B, int n);
+void fz_blendover(fz_pixmap *dst, fz_pixmap *fg, fz_pixmap *bg);
+void fz_blendmask(fz_pixmap *dst, fz_pixmap *color, fz_pixmap *shape);