Dirac - A Video Codec

Created by the British Broadcasting Corporation.


Public Member Functions | Private Attributes | Static Private Attributes | List of all members
dirac::Context Class Reference

#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]
 

Constructor & Destructor Documentation

◆ Context()

dirac::Context::Context ( )
inline

Default constructor initialises counts to 1 each of 0 and 1.

Member Function Documentation

◆ GetScaledProb0()

unsigned int dirac::Context::GetScaledProb0 ( ) const
inline

◆ Update()

void dirac::Context::Update ( bool  symbol)
inline

Member Data Documentation

◆ lut

const unsigned int dirac::Context::lut[256]
staticprivate

Referenced by Update().

◆ m_prob0

int dirac::Context::m_prob0
private

Referenced by GetScaledProb0(), and Update().


The documentation for this class was generated from the following file:

© 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.