summaryrefslogtreecommitdiff
path: root/libopenjpeg/bio.h
diff options
context:
space:
mode:
authorYannick Verschueren <unknown@unknown>2004-02-13 09:47:40 +0000
committerYannick Verschueren <unknown@unknown>2004-02-13 09:47:40 +0000
commitbb349b2ceee6027ab19f9fe20ed6d8c6a18a15a2 (patch)
tree5771c73a3198f3d5f9276f67d8a31028ef27c95a /libopenjpeg/bio.h
parent4be829988a6423a4ca9582e0ec6948837b529a1b (diff)
Update for version 0.8
Diffstat (limited to 'libopenjpeg/bio.h')
-rw-r--r--libopenjpeg/bio.h39
1 files changed, 37 insertions, 2 deletions
diff --git a/libopenjpeg/bio.h b/libopenjpeg/bio.h
index b0813498..adb20346 100644
--- a/libopenjpeg/bio.h
+++ b/libopenjpeg/bio.h
@@ -29,12 +29,47 @@
#ifndef __BIO_H
#define __BIO_H
+/*
+ * Number of bytes written.
+ */
int bio_numbytes();
+
+/*
+ * Init encoder.
+ *
+ * bp : Output buffer
+ * len : Output buffer length
+ */
void bio_init_enc(unsigned char *bp, int len);
+
+/*
+ * Init decoder.
+ *
+ * bp : Input buffer
+ * len : Input buffer length
+ */
void bio_init_dec(unsigned char *bp, int len);
+
+/*
+ * Write bits.
+ *
+ * v : Value of bits
+ * n : Number of bits to write
+ */
void bio_write(int v, int n);
+
+/*
+ * Read bits.
+ *
+ * n : Number of bits to read
+ */
int bio_read(int n);
-int bio_flush(); /* modified to eliminated longjmp !! */
-int bio_inalign(); /* modified to eliminated longjmp !! */
+
+/*
+ * Flush bits. Modified to eliminate longjmp !!
+ */
+int bio_flush();
+
+int bio_inalign(); /* modified to eliminated longjmp !! */
#endif