#include <BitIO.h>
|
| | BitIO (uint8_t *bp, uint64_t len, bool isCompressor) |
| | Constructs a t1::BitIO object.
|
| | BitIO (IStreamWriter *stream, bool isCompressor) |
| | Constructs a t1::BitIO object.
|
| size_t | numBytes () |
| | Gets number of bytes written.
|
| bool | write (uint32_t v, uint8_t n) |
| | Writes bits.
|
| bool | write (uint8_t v) |
| | Writes one bit.
|
| template<typename T> |
| void | read (T *bits, uint8_t n) |
| | Reads bits.
|
| uint8_t | read (void) |
| | Reads bit.
|
| bool | flush () |
| | Flushes remaining bits.
|
| void | readFinalHeaderByte () |
| | Reads bits at end of packet header.
|
| bool | putcommacode (uint8_t n) |
| | Writes comma code.
|
| uint8_t | getcommacode (void) |
| | Reads comma code.
|
| bool | putnumpasses (uint8_t n) |
| | Writes number of passes.
|
| void | getnumpasses (uint8_t *numpasses) |
| | Reads number of passes.
|
◆ BitIO() [1/2]
| grk::t1_t2::BitIO::BitIO |
( |
uint8_t * | bp, |
|
|
uint64_t | len, |
|
|
bool | isCompressor ) |
|
inline |
◆ BitIO() [2/2]
| grk::t1_t2::BitIO::BitIO |
( |
IStreamWriter * | stream, |
|
|
bool | isCompressor ) |
|
inline |
◆ bytein()
| void grk::t1_t2::BitIO::bytein |
( |
void | | ) |
|
|
inlineprivate |
◆ flush()
| bool grk::t1_t2::BitIO::flush |
( |
| ) |
|
|
inline |
◆ getbit()
| uint8_t grk::t1_t2::BitIO::getbit |
( |
void | | ) |
|
|
inlineprivate |
◆ getcommacode()
| uint8_t grk::t1_t2::BitIO::getcommacode |
( |
void | | ) |
|
|
inline |
Reads comma code.
- Returns
- comma code
References read().
◆ getnumpasses()
| void grk::t1_t2::BitIO::getnumpasses |
( |
uint8_t * | numpasses | ) |
|
|
inline |
Reads number of passes.
- Parameters
-
| numpasses | pointer to receive number of passes |
References read().
◆ numBytes()
| size_t grk::t1_t2::BitIO::numBytes |
( |
| ) |
|
|
inline |
◆ putbit()
| bool grk::t1_t2::BitIO::putbit |
( |
uint8_t | b | ) |
|
|
inlineprivate |
◆ putcommacode()
| bool grk::t1_t2::BitIO::putcommacode |
( |
uint8_t | n | ) |
|
|
inline |
◆ putnumpasses()
| bool grk::t1_t2::BitIO::putnumpasses |
( |
uint8_t | n | ) |
|
|
inline |
◆ read() [1/2]
template<typename T>
| void grk::t1_t2::BitIO::read |
( |
T * | bits, |
|
|
uint8_t | n ) |
|
inline |
◆ read() [2/2]
| uint8_t grk::t1_t2::BitIO::read |
( |
void | | ) |
|
|
inline |
◆ readFinalHeaderByte()
| void grk::t1_t2::BitIO::readFinalHeaderByte |
( |
| ) |
|
|
inline |
Reads bits at end of packet header.
References buf, bytein(), and ct.
◆ write() [1/2]
| bool grk::t1_t2::BitIO::write |
( |
uint32_t | v, |
|
|
uint8_t | n ) |
|
inline |
◆ write() [2/2]
| bool grk::t1_t2::BitIO::write |
( |
uint8_t | v | ) |
|
|
inline |
Writes one bit.
- Parameters
-
- Returns
- true if successful
References putbit().
◆ write8u()
| bool grk::t1_t2::BitIO::write8u |
( |
void | | ) |
|
|
inlineprivate |
◆ buf
| uint8_t grk::t1_t2::BitIO::buf |
|
private |
◆ buf_len
| size_t grk::t1_t2::BitIO::buf_len |
|
private |
◆ ct
| uint8_t grk::t1_t2::BitIO::ct |
|
private |
◆ offset
| size_t grk::t1_t2::BitIO::offset |
|
private |
◆ read0xFF
| bool grk::t1_t2::BitIO::read0xFF |
|
private |
◆ start
| uint8_t* grk::t1_t2::BitIO::start |
|
private |
◆ stream
The documentation for this class was generated from the following file: