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.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/fitz/pixmap.h b/include/fitz/pixmap.h
new file mode 100644
index 00000000..90071a30
--- /dev/null
+++ b/include/fitz/pixmap.h
@@ -0,0 +1,22 @@
+typedef struct fz_pixmap_s fz_pixmap;
+typedef struct fz_colorspace_s fz_colorspace;
+
+struct fz_pixmap_s
+{
+ int x, y, w, h;
+ int n, a;
+ int stride;
+ fz_colorspace *cs;
+ short *samples;
+};
+
+fz_error *fz_newpixmap(fz_pixmap **mapp, int x, int y, int w, int h, int n, int a);
+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);
+