int OPJ_BOOL
Definition: openjpeg.h:116
unsigned char OPJ_BYTE
Definition: openjpeg.h:123
opj_bio_t * opj_bio_create(void)
Create a new BIO handle
Definition: bio.c:113
void opj_bio_putbit(opj_bio_t *bio, OPJ_UINT32 b)
Write a bit
Definition: bio.c:149
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:119
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:140
OPJ_BOOL opj_bio_flush(opj_bio_t *bio)
Flush bits
Definition: bio.c:189
OPJ_UINT32 opj_bio_read(opj_bio_t *bio, OPJ_UINT32 n)
Read bits
Definition: bio.c:169
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:131
ptrdiff_t opj_bio_numbytes(opj_bio_t *bio)
Number of bytes written.
Definition: bio.c:126
OPJ_BYTE * start
pointer to the start of the buffer
Definition: bio.h:58
uint32_t OPJ_UINT32
Definition: openjpeg.h:132
void opj_bio_write(opj_bio_t *bio, OPJ_UINT32 v, OPJ_UINT32 n)
Write bits
Definition: bio.c:159
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:202