From 388507a61df32c0bddf7e61c5da013c3f29d32d4 Mon Sep 17 00:00:00 2001 From: Leo Howell Date: Sun, 27 Sep 2009 16:53:16 +0900 Subject: bitstream -> qr_bitstream --- lpg/libqr/bitstream.h | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 lpg/libqr/bitstream.h (limited to 'lpg/libqr/bitstream.h') diff --git a/lpg/libqr/bitstream.h b/lpg/libqr/bitstream.h deleted file mode 100644 index 12412bc..0000000 --- a/lpg/libqr/bitstream.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef QR_BITSTREAM_H -#define QR_BITSTREAM_H - -#include - -/** - * Note: when writing / reading multiple bits, the - * _most_ significant bits come first in the stream. - * (That is, the order you would naturally write the - * number in binary) - */ - -struct bitstream; - -struct bitstream * bitstream_create(void); -int bitstream_resize(struct bitstream *, size_t bits); -void bitstream_destroy(struct bitstream *); -struct bitstream * bitstream_copy(const struct bitstream *); - -void bitstream_seek(struct bitstream *, size_t pos); -size_t bitstream_tell(const struct bitstream *); -size_t bitstream_remaining(const struct bitstream *); -size_t bitstream_size(const struct bitstream *); - -unsigned int bitstream_read(struct bitstream *, size_t bits); - -void bitstream_unpack(struct bitstream *, - unsigned int * result, - size_t count, - size_t bitsize); - -int bitstream_write(struct bitstream *, - unsigned int value, - size_t bits); - -int bitstream_pack(struct bitstream *, - const unsigned int * values, - size_t count, - size_t bitsize); - -int bitstream_cat(struct bitstream *, const struct bitstream * src); - -#endif - -- cgit v1.2.3-70-g09d2