dlvhex
2.5.0
|
Byte based writer for un-aligned bit streaming. More...
#include <vs10/bm/encoding.h>
Public Member Functions | |
bit_out (TEncoder &dest) | |
~bit_out () | |
void | put_bit (unsigned value) |
void | put_bits (unsigned value, unsigned count) |
void | put_zero_bit () |
void | put_zero_bits (register unsigned count) |
void | gamma (unsigned value) |
void | flush () |
bit_out (TEncoder &dest) | |
~bit_out () | |
void | put_bit (unsigned value) |
void | put_bits (unsigned value, unsigned count) |
void | put_zero_bit () |
void | put_zero_bits (register unsigned count) |
void | gamma (unsigned value) |
void | flush () |
Private Member Functions | |
void | flush_accum () |
bit_out (const bit_out &) | |
bit_out & | operator= (const bit_out &) |
void | flush_accum () |
bit_out (const bit_out &) | |
bit_out & | operator= (const bit_out &) |
Private Attributes | |
TEncoder & | dest_ |
Bit stream target. | |
unsigned | used_bits_ |
Bits used in the accumulator. | |
unsigned | accum_ |
write bit accumulator |
Byte based writer for un-aligned bit streaming.
Definition at line 141 of file encoding.h.
bm::bit_out< TEncoder >::bit_out | ( | TEncoder & | dest | ) | [inline] |
Definition at line 144 of file encoding.h.
bm::bit_out< TEncoder >::~bit_out | ( | ) | [inline] |
Definition at line 148 of file encoding.h.
References bm::bit_out< TEncoder >::accum_, bm::bit_out< TEncoder >::dest_, and bm::bit_out< TEncoder >::used_bits_.
bm::bit_out< TEncoder >::bit_out | ( | const bit_out< TEncoder > & | ) | [private] |
bm::bit_out< TEncoder >::bit_out | ( | TEncoder & | dest | ) | [inline] |
Definition at line 144 of file encoding.h.
bm::bit_out< TEncoder >::~bit_out | ( | ) | [inline] |
Definition at line 148 of file encoding.h.
References bm::bit_out< TEncoder >::accum_, bm::bit_out< TEncoder >::dest_, and bm::bit_out< TEncoder >::used_bits_.
bm::bit_out< TEncoder >::bit_out | ( | const bit_out< TEncoder > & | ) | [private] |
void bm::bit_out< TEncoder >::flush | ( | ) | [inline] |
Definition at line 304 of file encoding.h.
References bm::bit_out< TEncoder >::flush_accum(), and bm::bit_out< TEncoder >::used_bits_.
void bm::bit_out< TEncoder >::flush | ( | ) | [inline] |
Definition at line 304 of file encoding.h.
References bm::bit_out< TEncoder >::flush_accum(), and bm::bit_out< TEncoder >::used_bits_.
void bm::bit_out< TEncoder >::flush_accum | ( | ) | [inline, private] |
Definition at line 311 of file encoding.h.
References bm::bit_out< TEncoder >::accum_, bm::bit_out< TEncoder >::dest_, and bm::bit_out< TEncoder >::used_bits_.
Referenced by bm::bit_out< TEncoder >::flush(), bm::bit_out< TEncoder >::put_bit(), bm::bit_out< TEncoder >::put_zero_bit(), and bm::bit_out< TEncoder >::put_zero_bits().
void bm::bit_out< TEncoder >::flush_accum | ( | ) | [inline, private] |
Definition at line 311 of file encoding.h.
References bm::bit_out< TEncoder >::accum_, bm::bit_out< TEncoder >::dest_, and bm::bit_out< TEncoder >::used_bits_.
void bm::bit_out< TEncoder >::gamma | ( | unsigned | value | ) | [inline] |
Definition at line 229 of file encoding.h.
References bm::bit_out< TEncoder >::accum_, bm::bit_out< TEncoder >::dest_, bm::ilog2_LUT(), and bm::bit_out< TEncoder >::used_bits_.
void bm::bit_out< TEncoder >::gamma | ( | unsigned | value | ) | [inline] |
Definition at line 229 of file encoding.h.
References bm::bit_out< TEncoder >::accum_, bm::bit_out< TEncoder >::dest_, bm::ilog2_LUT(), and bm::bit_out< TEncoder >::used_bits_.
Referenced by bm::serializer< BV >::gamma_gap_array().
bit_out& bm::bit_out< TEncoder >::operator= | ( | const bit_out< TEncoder > & | ) | [private] |
bit_out& bm::bit_out< TEncoder >::operator= | ( | const bit_out< TEncoder > & | ) | [private] |
void bm::bit_out< TEncoder >::put_bit | ( | unsigned | value | ) | [inline] |
Definition at line 154 of file encoding.h.
References bm::bit_out< TEncoder >::accum_, bm::bit_out< TEncoder >::flush_accum(), and bm::bit_out< TEncoder >::used_bits_.
void bm::bit_out< TEncoder >::put_bit | ( | unsigned | value | ) | [inline] |
Definition at line 154 of file encoding.h.
References bm::bit_out< TEncoder >::accum_, bm::bit_out< TEncoder >::flush_accum(), and bm::bit_out< TEncoder >::used_bits_.
void bm::bit_out< TEncoder >::put_bits | ( | unsigned | value, |
unsigned | count | ||
) | [inline] |
Definition at line 162 of file encoding.h.
References bm::bit_out< TEncoder >::accum_, bm::bit_out< TEncoder >::dest_, and bm::bit_out< TEncoder >::used_bits_.
void bm::bit_out< TEncoder >::put_bits | ( | unsigned | value, |
unsigned | count | ||
) | [inline] |
Definition at line 162 of file encoding.h.
References bm::bit_out< TEncoder >::accum_, bm::bit_out< TEncoder >::dest_, and bm::bit_out< TEncoder >::used_bits_.
void bm::bit_out< TEncoder >::put_zero_bit | ( | ) | [inline] |
Definition at line 195 of file encoding.h.
References bm::bit_out< TEncoder >::accum_, bm::bit_out< TEncoder >::flush_accum(), and bm::bit_out< TEncoder >::used_bits_.
void bm::bit_out< TEncoder >::put_zero_bit | ( | ) | [inline] |
Definition at line 195 of file encoding.h.
References bm::bit_out< TEncoder >::accum_, bm::bit_out< TEncoder >::flush_accum(), and bm::bit_out< TEncoder >::used_bits_.
void bm::bit_out< TEncoder >::put_zero_bits | ( | register unsigned | count | ) | [inline] |
Definition at line 201 of file encoding.h.
References bm::bit_out< TEncoder >::accum_, bm::bit_out< TEncoder >::dest_, bm::bit_out< TEncoder >::flush_accum(), and bm::bit_out< TEncoder >::used_bits_.
void bm::bit_out< TEncoder >::put_zero_bits | ( | register unsigned | count | ) | [inline] |
Definition at line 201 of file encoding.h.
References bm::bit_out< TEncoder >::accum_, bm::bit_out< TEncoder >::dest_, bm::bit_out< TEncoder >::flush_accum(), and bm::bit_out< TEncoder >::used_bits_.
unsigned bm::bit_out< TEncoder >::accum_ [private] |
write bit accumulator
Definition at line 323 of file encoding.h.
Referenced by bm::bit_out< TEncoder >::flush_accum(), bm::bit_out< TEncoder >::gamma(), bm::bit_out< TEncoder >::put_bit(), bm::bit_out< TEncoder >::put_bits(), bm::bit_out< TEncoder >::put_zero_bit(), bm::bit_out< TEncoder >::put_zero_bits(), and bm::bit_out< TEncoder >::~bit_out().
TEncoder & bm::bit_out< TEncoder >::dest_ [private] |
Bit stream target.
Definition at line 321 of file encoding.h.
Referenced by bm::bit_out< TEncoder >::flush_accum(), bm::bit_out< TEncoder >::gamma(), bm::bit_out< TEncoder >::put_bits(), bm::bit_out< TEncoder >::put_zero_bits(), and bm::bit_out< TEncoder >::~bit_out().
unsigned bm::bit_out< TEncoder >::used_bits_ [private] |
Bits used in the accumulator.
Definition at line 322 of file encoding.h.
Referenced by bm::bit_out< TEncoder >::flush(), bm::bit_out< TEncoder >::flush_accum(), bm::bit_out< TEncoder >::gamma(), bm::bit_out< TEncoder >::put_bit(), bm::bit_out< TEncoder >::put_bits(), bm::bit_out< TEncoder >::put_zero_bit(), bm::bit_out< TEncoder >::put_zero_bits(), and bm::bit_out< TEncoder >::~bit_out().