|
OpenJPEG
2.3.0
|
Data Structures | |
| struct | opj_bio |
| Individual bit input-output stream (BIO) More... | |
Typedefs | |
| typedef struct opj_bio | opj_bio_t |
| Individual bit input-output stream (BIO) More... | |
Local static functions | |
| static void | opj_bio_putbit (opj_bio_t *bio, OPJ_UINT32 b) |
| Write a bit. More... | |
| static OPJ_UINT32 | opj_bio_getbit (opj_bio_t *bio) |
| Read a bit. More... | |
| static OPJ_BOOL | opj_bio_byteout (opj_bio_t *bio) |
| Write a byte. More... | |
| static OPJ_BOOL | opj_bio_bytein (opj_bio_t *bio) |
| Read a byte. More... | |
Exported functions | |
| opj_bio_t * | opj_bio_create (void) |
| Create a new BIO handle. More... | |
| void | opj_bio_destroy (opj_bio_t *bio) |
| Destroy a previously created BIO handle. More... | |
| ptrdiff_t | opj_bio_numbytes (opj_bio_t *bio) |
| Number of bytes written. More... | |
| void | opj_bio_init_enc (opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len) |
| Init encoder. More... | |
| void | opj_bio_init_dec (opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len) |
| Init decoder. More... | |
| void | opj_bio_write (opj_bio_t *bio, OPJ_UINT32 v, OPJ_UINT32 n) |
| Write bits. More... | |
| OPJ_UINT32 | opj_bio_read (opj_bio_t *bio, OPJ_UINT32 n) |
| Read bits. More... | |
| OPJ_BOOL | opj_bio_flush (opj_bio_t *bio) |
| Flush bits. More... | |
| OPJ_BOOL | opj_bio_inalign (opj_bio_t *bio) |
| Passes the ending bits (coming from flushing) More... | |
Read a byte.
| bio | BIO handle |
References opj_bio::bp, opj_bio::buf, opj_bio::ct, opj_bio::end, OPJ_FALSE, and OPJ_TRUE.
Referenced by opj_bio_getbit(), and opj_bio_inalign().
Write a byte.
| bio | BIO handle |
References opj_bio::bp, opj_bio::buf, opj_bio::ct, opj_bio::end, OPJ_FALSE, and OPJ_TRUE.
Referenced by opj_bio_flush(), and opj_bio_putbit().
| opj_bio_t* opj_bio_create | ( | void | ) |
Create a new BIO handle.
References opj_malloc().
Referenced by opj_t2_encode_packet(), and opj_t2_read_packet_header().
| void opj_bio_destroy | ( | opj_bio_t * | bio | ) |
Destroy a previously created BIO handle.
| bio | BIO handle to destroy |
References opj_free().
Referenced by opj_t2_encode_packet(), and opj_t2_read_packet_header().
Flush bits.
| bio | BIO handle |
References opj_bio::ct, opj_bio_byteout(), OPJ_FALSE, and OPJ_TRUE.
Referenced by opj_t2_encode_packet().
|
static |
Read a bit.
| bio | BIO handle |
References opj_bio::buf, opj_bio::ct, and opj_bio_bytein().
Referenced by opj_bio_read().
Passes the ending bits (coming from flushing)
| bio | BIO handle |
References opj_bio::buf, opj_bio::ct, opj_bio_bytein(), OPJ_FALSE, and OPJ_TRUE.
Referenced by opj_t2_read_packet_header().
| void opj_bio_init_dec | ( | opj_bio_t * | bio, |
| OPJ_BYTE * | bp, | ||
| OPJ_UINT32 | len | ||
| ) |
Init decoder.
| bio | BIO handle |
| bp | Input buffer |
| len | Input buffer length |
References opj_bio::bp, opj_bio::buf, opj_bio::ct, opj_bio::end, and opj_bio::start.
Referenced by opj_t2_read_packet_header().
| void opj_bio_init_enc | ( | opj_bio_t * | bio, |
| OPJ_BYTE * | bp, | ||
| OPJ_UINT32 | len | ||
| ) |
Init encoder.
| bio | BIO handle |
| bp | Output buffer |
| len | Output buffer length |
References opj_bio::bp, opj_bio::buf, opj_bio::ct, opj_bio::end, and opj_bio::start.
Referenced by opj_t2_encode_packet().
| ptrdiff_t opj_bio_numbytes | ( | opj_bio_t * | bio | ) |
Number of bytes written.
| bio | BIO handle |
References opj_bio::bp, and opj_bio::start.
Referenced by opj_t2_encode_packet(), and opj_t2_read_packet_header().
|
static |
Write a bit.
| bio | BIO handle |
| b | Bit to write (0 or 1) |
References opj_bio::buf, opj_bio::ct, and opj_bio_byteout().
Referenced by opj_bio_write().
| OPJ_UINT32 opj_bio_read | ( | opj_bio_t * | bio, |
| OPJ_UINT32 | n | ||
| ) |
Read bits.
| bio | BIO handle |
| n | Number of bits to read |
References opj_bio_getbit().
Referenced by opj_t2_getcommacode(), opj_t2_getnumpasses(), opj_t2_read_packet_header(), and opj_tgt_decode().
| void opj_bio_write | ( | opj_bio_t * | bio, |
| OPJ_UINT32 | v, | ||
| OPJ_UINT32 | n | ||
| ) |
Write bits.
| bio | BIO handle |
| v | Value of bits |
| n | Number of bits to write |
References opj_bio_putbit().
Referenced by opj_t2_encode_packet(), opj_t2_putcommacode(), opj_t2_putnumpasses(), and opj_tgt_encode().
1.8.13