Created by the British Broadcasting Corporation.
#include <arith_codec.h>
Collaboration diagram for dirac::ArithCodec< T >::Context:
|
Default constructor initialises counts to 1 each of 0 and 1. |
|
Constructor initialises the counts to those set. |
|
|
|
|
|
|
|
|
|
Given a number, which should be in the range [0,m_weight) return the corresponding symbol. The range [0,m_weight) is partitioned into portions [0,count0), [count0,m_weight) corresponding to 0 and 1. |
|
|
|
|
|
Increment the count of symbol by 1.
|
|
Increment the count of Symbol by amnt.
|
|
|
|
Sets the counts, and then the triples to reflect the counts. |
|
|
|
|
|
|
|
|
|
|
|
|
© 2004 British Broadcasting Corporation.
Dirac code licensed under the Mozilla Public License (MPL) Version 1.1.
HTML documentation generated by Dimitri van Heesch's
excellent Doxygen tool.