Lines Matching defs:BitEncoder
5 struct BitEncoder struct
7 public const int kNumBitModelTotalBits = 11;
8 public const uint kBitModelTotal = (1 << kNumBitModelTotalBits);
9 const int kNumMoveBits = 5;
10 const int kNumMoveReducingBits = 2;
11 public const int kNumBitPriceShiftBits = 6;
13 uint Prob;
15 public void Init() { Prob = kBitModelTotal >> 1; } in Init()
17 public void UpdateModel(uint symbol) in UpdateModel()
25 public void Encode(Encoder encoder, uint symbol) in Encode()
48 private static UInt32[] ProbPrices = new UInt32[kBitModelTotal >> kNumMoveReducingBits];
50 static BitEncoder() in BitEncoder() argument
63 public uint GetPrice(uint symbol) in GetPrice()
67 public uint GetPrice0() { return ProbPrices[Prob >> kNumMoveReducingBits]; } in GetPrice0()
68 public uint GetPrice1() { return ProbPrices[(kBitModelTotal - Prob) >> kNumMoveReducingBits]; } in GetPrice1()