Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Abstract class: RT.ArithmeticCoding.ArithmeticSymbolContext

Summary

Provides information about the relative frequency of arithmetic coding symbols.

Instance methods

uint
GetSymbolFrequency(int symbol)
  • Abstract
Returns the frequency of the specified symbol. When overridden, must return a value for every possible input; return 0 if the symbol is out of the range of possible symbols.
uint
GetSymbolPosition(int symbol)
  • Abstract
Returns the sum of the frequencies of all symbols less than symbol. When overridden, must return a value for every possible input: 0 for all symbols less than the first valid symbol, and a value equal to ArithmeticSymbolContext.GetTotal() for all symbols greater than the last valid symbol.
uint
  • Abstract
Returns the sum of all symbol frequencies. When overridden, must equal exactly the sum of ArithmeticSymbolContext.GetSymbolFrequency(int) over all possible symbols.

Static fields

uint The maximum sum of all symbol frequencies. The encoder/decoder can overflow if the sum of all frequencies exceeds this value.