Created by the British Broadcasting Corporation.
#include <arith_codec.h>
Inheritance diagram for dirac::Context:
dirac::Context::Context | ( | ) | [inline] |
Default constructor initialises counts to 1 each of 0 and 1.
int unsigned dirac::Context::GetScaledProb0 | ( | ) | const [inline] |
void dirac::Context::HalveCounts | ( | ) | [inline] |
void dirac::Context::SetCounts | ( | unsigned int | cnt0, | |
unsigned int | cnt1 | |||
) | [inline] |
void dirac::Context::Update | ( | bool | symbol | ) | [inline] |
unsigned int dirac::Context::Weight | ( | ) | const [inline] |
int dirac::Context::m_count0 [private] |
int dirac::Context::m_count1 [private] |
© 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.