int OPJ_BOOL
Definition: openjpeg.h:110
unsigned char OPJ_BYTE
Definition: openjpeg.h:117
opj_bio_t * opj_bio_create(void)
Create a new BIO handle.
Definition: bio.c:123
OPJ_UINT32 ct
coder : number of bits free to write.
Definition: bio.h:66
void opj_bio_destroy(opj_bio_t *bio)
Destroy a previously created BIO handle.
Definition: bio.c:128
Individual bit input-output stream (BIO)
Definition: bio.h:56
struct opj_bio opj_bio_t
Individual bit input-output stream (BIO)
void opj_bio_init_dec(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len)
Init decoder.
Definition: bio.c:146
OPJ_BOOL opj_bio_flush(opj_bio_t *bio)
Flush bits.
Definition: bio.c:183
OPJ_UINT32 opj_bio_read(opj_bio_t *bio, OPJ_UINT32 n)
Read bits.
Definition: bio.c:165
OPJ_BYTE * end
pointer to the end of the buffer
Definition: bio.h:60
void opj_bio_init_enc(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len)
Init encoder.
Definition: bio.c:138
ptrdiff_t opj_bio_numbytes(opj_bio_t *bio)
Number of bytes written.
Definition: bio.c:134
OPJ_BYTE * start
pointer to the start of the buffer
Definition: bio.h:58
uint32_t OPJ_UINT32
Definition: openjpeg.h:126
void opj_bio_write(opj_bio_t *bio, OPJ_UINT32 v, OPJ_UINT32 n)
Write bits.
Definition: bio.c:155
OPJ_UINT32 buf
temporary place where each byte is read or written
Definition: bio.h:64
OPJ_BYTE * bp
pointer to the present position in the buffer
Definition: bio.h:62
OPJ_BOOL opj_bio_inalign(opj_bio_t *bio)
Passes the ending bits (coming from flushing)
Definition: bio.c:195