struct opj_raw opj_raw_t
RAW encoding operations.
void raw_init_dec(opj_raw_t *raw, unsigned char *bp, int len)
Initialize the decoder.
Definition raw.c:60
void raw_destroy(opj_raw_t *raw)
Destroy a previously created RAW handle.
Definition raw.c:50
int raw_decode(opj_raw_t *raw)
Decode a symbol using raw-decoder.
Definition raw.c:68
int raw_numbytes(opj_raw_t *raw)
Return the number of bytes written/read since initialisation.
Definition raw.c:56
opj_raw_t * raw_create(void)
Create a new RAW handle.
Definition raw.c:45
RAW encoding operations.
Definition raw.h:46
unsigned char * start
pointer to the start of the buffer
Definition raw.h:58
unsigned int ct
number of bits already read or free to write
Definition raw.h:50
unsigned int len
length decoded
Definition raw.h:54
unsigned char c
temporary buffer where bits are coded or decoded
Definition raw.h:48
unsigned int lenmax
maximum length to decode
Definition raw.h:52
unsigned char * bp
pointer to the current position in the buffer
Definition raw.h:56
unsigned char * end
pointer to the end of the buffer
Definition raw.h:60