Created by the British Broadcasting Corporation.
#include <arith_codec.h>
Public Member Functions | |
Context () | |
Default Constructor. More... | |
unsigned int | GetScaledProb0 () const |
Returns estimate of probability of 0 (false) scaled to 2**16. More... | |
void | Update (bool symbol) |
Updates context counts. More... | |
Private Attributes | |
int | m_prob0 |
Static Private Attributes | |
static const unsigned int | lut [256] |
|
inline |
Default constructor initialises counts to 1 each of 0 and 1.
|
inline |
References m_prob0.
Referenced by dirac::ArithCodecBase::DecodeSymbol(), and dirac::ArithCodecBase::EncodeSymbol().
|
inline |
Referenced by dirac::ArithCodecBase::DecodeSymbol(), and dirac::ArithCodecBase::EncodeSymbol().
|
staticprivate |
Referenced by Update().
|
private |
Referenced by GetScaledProb0(), and Update().
© 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.