aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/qr
diff options
context:
space:
mode:
Diffstat (limited to 'lpg/libqr/qr')
-rw-r--r--lpg/libqr/qr/bitmap.h6
-rw-r--r--lpg/libqr/qr/bitstream.h10
-rw-r--r--lpg/libqr/qr/parse.h2
3 files changed, 9 insertions, 9 deletions
diff --git a/lpg/libqr/qr/bitmap.h b/lpg/libqr/qr/bitmap.h
index 36c56b3..d4af471 100644
--- a/lpg/libqr/qr/bitmap.h
+++ b/lpg/libqr/qr/bitmap.h
@@ -8,7 +8,7 @@ struct qr_bitmap {
size_t width, height;
};
-struct qr_bitmap * qr_bitmap_create(int width, int height, int masked);
+struct qr_bitmap * qr_bitmap_create(size_t width, size_t height, int masked);
void qr_bitmap_destroy(struct qr_bitmap *);
int qr_bitmap_add_mask(struct qr_bitmap *);
@@ -19,9 +19,9 @@ 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,
+ int mod_bits,
size_t line_stride,
- size_t line_repeat,
+ int line_repeat,
unsigned long mark,
unsigned long space);
diff --git a/lpg/libqr/qr/bitstream.h b/lpg/libqr/qr/bitstream.h
index 5ca6b41..9bd8261 100644
--- a/lpg/libqr/qr/bitstream.h
+++ b/lpg/libqr/qr/bitstream.h
@@ -22,21 +22,21 @@ size_t qr_bitstream_tell(const struct qr_bitstream *);
size_t qr_bitstream_remaining(const struct qr_bitstream *);
size_t qr_bitstream_size(const struct qr_bitstream *);
-unsigned int qr_bitstream_read(struct qr_bitstream *, size_t bits);
+unsigned long qr_bitstream_read(struct qr_bitstream *, int bits);
void qr_bitstream_unpack(struct qr_bitstream *,
unsigned int * result,
size_t count,
- size_t bitsize);
+ int bitsize);
int qr_bitstream_write(struct qr_bitstream *,
- unsigned int value,
- size_t bits);
+ unsigned long value,
+ int bits);
int qr_bitstream_pack(struct qr_bitstream *,
const unsigned int * values,
size_t count,
- size_t bitsize);
+ int bitsize);
int qr_bitstream_cat(struct qr_bitstream *,
const struct qr_bitstream * src);
diff --git a/lpg/libqr/qr/parse.h b/lpg/libqr/qr/parse.h
index d7b8c4e..07a0424 100644
--- a/lpg/libqr/qr/parse.h
+++ b/lpg/libqr/qr/parse.h
@@ -9,7 +9,7 @@ int qr_code_parse(const void * buffer,
size_t line_count,
struct qr_data ** data);
-int qr_decode_format(unsigned bits, enum qr_ec_level * ec, int * mask);
+int qr_decode_format(unsigned long bits, enum qr_ec_level * ec, int * mask);
int qr_decode_version(unsigned long bits, int * version);
#endif