int bio_read(opj_bio_t *bio, int n)
Read bits.
Definition: bio.c:155
unsigned char * start
pointer to the start of the buffer
Definition: bio.h:49
int bio_flush(opj_bio_t *bio)
Flush bits.
Definition: bio.c:164
void bio_destroy(opj_bio_t *bio)
Destroy a previously created BIO handle.
Definition: bio.c:122
void bio_init_dec(opj_bio_t *bio, unsigned char *bp, int len)
Init decoder.
Definition: bio.c:140
Individual bit input-output stream (BIO)
Definition: bio.h:47
int bio_numbytes(opj_bio_t *bio)
Number of bytes written.
Definition: bio.c:128
struct opj_bio opj_bio_t
Individual bit input-output stream (BIO)
unsigned int buf
temporary place where each byte is read or written
Definition: bio.h:55
int bio_inalign(opj_bio_t *bio)
Passes the ending bits (coming from flushing)
Definition: bio.c:178
unsigned char * end
pointer to the end of the buffer
Definition: bio.h:51
unsigned char * bp
pointer to the present position in the buffer
Definition: bio.h:53
opj_bio_t * bio_create(void)
Create a new BIO handle.
Definition: bio.c:117
void bio_write(opj_bio_t *bio, int v, int n)
Write bits.
Definition: bio.c:148
int ct
coder : number of bits free to write.
Definition: bio.h:57
void bio_init_enc(opj_bio_t *bio, unsigned char *bp, int len)
Init encoder.
Definition: bio.c:132