|
OpenJPEG 1.5.2
|
#include "opj_includes.h"Functions | |
Local static functions | |
| static void | bio_putbit (opj_bio_t *bio, unsigned int b) |
| Write a bit. | |
| static int | bio_getbit (opj_bio_t *bio) |
| Read a bit. | |
| static int | bio_byteout (opj_bio_t *bio) |
| Write a byte. | |
| static int | bio_bytein (opj_bio_t *bio) |
| Read a byte. | |
| opj_bio_t * | bio_create (void) |
| Create a new BIO handle. | |
| void | bio_destroy (opj_bio_t *bio) |
| Destroy a previously created BIO handle. | |
| int | bio_numbytes (opj_bio_t *bio) |
| Number of bytes written. | |
| void | bio_init_enc (opj_bio_t *bio, unsigned char *bp, int len) |
| Init encoder. | |
| void | bio_init_dec (opj_bio_t *bio, unsigned char *bp, int len) |
| Init decoder. | |
| void | bio_write (opj_bio_t *bio, int v, int n) |
| Write bits. | |
| int | bio_read (opj_bio_t *bio, int n) |
| Read bits. | |
| int | bio_flush (opj_bio_t *bio) |
| Flush bits. | |
| int | bio_inalign (opj_bio_t *bio) |
| Passes the ending bits (coming from flushing). | |
|
static |
Read a byte.
| bio | BIO handle |
References bio_bytein(), opj_bio::bp, opj_bio::buf, opj_bio::ct, and opj_bio::end.
Referenced by bio_bytein(), bio_getbit(), and bio_inalign().
|
static |
Write a byte.
| bio | BIO handle |
References bio_byteout(), opj_bio::bp, opj_bio::buf, opj_bio::ct, and opj_bio::end.
Referenced by bio_byteout(), bio_flush(), and bio_putbit().
| opj_bio_t * bio_create | ( | void | ) |
Create a new BIO handle.
References bio_create(), and opj_malloc.
Referenced by bio_create(), t2_decode_packet(), and t2_encode_packet().
| void bio_destroy | ( | opj_bio_t * | bio | ) |
Destroy a previously created BIO handle.
| bio | BIO handle to destroy |
References bio_destroy(), and opj_free.
Referenced by bio_destroy(), t2_decode_packet(), and t2_encode_packet().
| int bio_flush | ( | opj_bio_t * | bio | ) |
Flush bits.
| bio | BIO handle |
References bio_byteout(), bio_flush(), and opj_bio::ct.
Referenced by bio_flush(), and t2_encode_packet().
|
static |
Read a bit.
| bio | BIO handle |
References bio_bytein(), bio_getbit(), opj_bio::buf, and opj_bio::ct.
Referenced by bio_getbit(), and bio_read().
| int bio_inalign | ( | opj_bio_t * | bio | ) |
Passes the ending bits (coming from flushing).
| bio | BIO handle |
References bio_bytein(), bio_inalign(), opj_bio::buf, and opj_bio::ct.
Referenced by bio_inalign(), and t2_decode_packet().
| void bio_init_dec | ( | opj_bio_t * | bio, |
| unsigned char * | bp, | ||
| int | len ) |
Init decoder.
| bio | BIO handle |
| bp | Input buffer |
| len | Input buffer length |
References bio_init_dec(), opj_bio::bp, opj_bio::buf, opj_bio::ct, opj_bio::end, and opj_bio::start.
Referenced by bio_init_dec(), and t2_decode_packet().
| void bio_init_enc | ( | opj_bio_t * | bio, |
| unsigned char * | bp, | ||
| int | len ) |
Init encoder.
| bio | BIO handle |
| bp | Output buffer |
| len | Output buffer length |
References bio_init_enc(), opj_bio::bp, opj_bio::buf, opj_bio::ct, opj_bio::end, and opj_bio::start.
Referenced by bio_init_enc(), and t2_encode_packet().
| int bio_numbytes | ( | opj_bio_t * | bio | ) |
Number of bytes written.
| bio | BIO handle |
References bio_numbytes(), opj_bio::bp, and opj_bio::start.
Referenced by bio_numbytes(), t2_decode_packet(), and t2_encode_packet().
|
static |
Write a bit.
| bio | BIO handle |
| b | Bit to write (0 or 1) |
References bio_byteout(), bio_putbit(), opj_bio::buf, and opj_bio::ct.
Referenced by bio_putbit(), and bio_write().
| int bio_read | ( | opj_bio_t * | bio, |
| int | n ) |
Read bits.
| bio | BIO handle |
| n | Number of bits to read |
References bio_getbit(), and bio_read().
Referenced by bio_read(), t2_decode_packet(), t2_getcommacode(), t2_getnumpasses(), and tgt_decode().
| void bio_write | ( | opj_bio_t * | bio, |
| int | v, | ||
| int | n ) |
Write bits.
| bio | BIO handle |
| v | Value of bits |
| n | Number of bits to write |
References bio_putbit(), and bio_write().
Referenced by bio_write(), t2_encode_packet(), t2_putcommacode(), t2_putnumpasses(), and tgt_encode().