aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/qr/bitmap.h
diff options
context:
space:
mode:
authorLeo Howell <leo@lwh.jp>2009-10-08 16:41:56 +0900
committerLeo Howell <leo@lwh.jp>2009-10-08 16:41:56 +0900
commitce330147acca10cd66c370847bdc3e824a83a0c6 (patch)
treebb9dd881daacfe1dff656371df6d2292bcbd7658 /lpg/libqr/qr/bitmap.h
parent6359bfddcc5868093418784fa2e972581ebd82b6 (diff)
downloadpdf-simple-sign-ce330147acca10cd66c370847bdc3e824a83a0c6.tar.gz
pdf-simple-sign-ce330147acca10cd66c370847bdc3e824a83a0c6.tar.xz
pdf-simple-sign-ce330147acca10cd66c370847bdc3e824a83a0c6.zip
add qrgen sample app
Diffstat (limited to 'lpg/libqr/qr/bitmap.h')
-rw-r--r--lpg/libqr/qr/bitmap.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/lpg/libqr/qr/bitmap.h b/lpg/libqr/qr/bitmap.h
new file mode 100644
index 0000000..83e82ab
--- /dev/null
+++ b/lpg/libqr/qr/bitmap.h
@@ -0,0 +1,27 @@
+#ifndef QR_BITMAP_H
+#define QR_BITMAP_H
+
+struct qr_bitmap {
+ unsigned char * bits;
+ unsigned char * mask;
+ size_t stride;
+ size_t width, height;
+};
+
+struct qr_bitmap * qr_bitmap_create(int width, int height, int masked);
+void qr_bitmap_destroy(struct qr_bitmap *);
+
+struct qr_bitmap * qr_bitmap_clone(const struct qr_bitmap *);
+
+void qr_bitmap_merge(struct qr_bitmap * dest, const struct qr_bitmap * src);
+
+void qr_bitmap_render(const struct qr_bitmap * bmp,
+ void * buffer,
+ size_t mod_bits,
+ size_t line_stride,
+ size_t line_repeat,
+ unsigned long mark,
+ unsigned long space);
+
+#endif
+