aboutsummaryrefslogtreecommitdiff
path: root/src/bitvec.c
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-01-16 01:17:20 +0100
committerjcid <devnull@localhost>2008-01-16 01:17:20 +0100
commitf09fce92f37ced2a53c96c09792906e2771f0e17 (patch)
tree6a2af7914d69e33a0ef7476e5334856e100457a7 /src/bitvec.c
parent17e6f35cfbfa7a73e986fcd11617db12898d740f (diff)
- Added support for progressive display of progressive jpegs.
- Fixed progressive display of interlaced pngs.
Diffstat (limited to 'src/bitvec.c')
-rw-r--r--src/bitvec.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bitvec.c b/src/bitvec.c
index fc308fc6..8ca04f58 100644
--- a/src/bitvec.c
+++ b/src/bitvec.c
@@ -30,6 +30,14 @@ bitvec_t *a_Bitvec_new(int num_bits)
}
/*
+ * Clear a bitvec
+ */
+void a_Bitvec_clear(bitvec_t *bvec)
+{
+ memset(bvec->vec, 0, sizeof(uchar_t) * bvec->len/BVEC_SIZE + 1);
+}
+
+/*
* Free a bitvec
*/
void a_Bitvec_free(bitvec_t *bvec)