diff options
author | Leo Uino <leo@norisys.jp> | 2011-07-19 12:04:15 +0900 |
---|---|---|
committer | Leo Uino <leo@norisys.jp> | 2011-07-19 12:04:15 +0900 |
commit | d4abb878df167875bb66d1e0debe853cb6b88b1b (patch) | |
tree | 206e5638d866382b66737058593bf483b7e92c06 /lpg/libqr/qr | |
parent | a3234f7d7e36ad7d1bad6a85b868b05addf40e9b (diff) | |
download | pdf-simple-sign-d4abb878df167875bb66d1e0debe853cb6b88b1b.tar.gz pdf-simple-sign-d4abb878df167875bb66d1e0debe853cb6b88b1b.tar.xz pdf-simple-sign-d4abb878df167875bb66d1e0debe853cb6b88b1b.zip |
Fix some types
Diffstat (limited to 'lpg/libqr/qr')
-rw-r--r-- | lpg/libqr/qr/bitmap.h | 6 | ||||
-rw-r--r-- | lpg/libqr/qr/bitstream.h | 10 | ||||
-rw-r--r-- | lpg/libqr/qr/parse.h | 2 |
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 |