bool read(SymbolChanceBitType type, int i = 0) { BitChance& ch = bestChance(type, i); bool bit = rac.read_12bit_chance(ch.get_12bit()); updateChances(type, i, bit); // e_printf("bit %s%i = %s\n", SymbolChanceBitName[type], i, bit ? "true" : "false"); return bit; }
bool inline read(const SymbolChanceBitType type, const int i = 0) { BitChance& ch = chances.realChances.bit(type, i); bool bit = rac.read_12bit_chance(ch.get_12bit()); updateChances(type, i, bit); return bit; }
bool read(SymbolChanceBitType type, int i = 0) { BitChance& ch = bestChance(type, i); bool bit = rac.read_12bit_chance(ch.get_12bit()); updateChances(type, i, bit); return bit; }
void inline FinalCompoundSymbolBitCoder<BitChance,RAC,bits>::write(const bool bit, const SymbolChanceBitType type, const int i) { BitChance& ch = chances.realChances.bit(type, i); rac.write_12bit_chance(ch.get_12bit(), bit); updateChances(type, i, bit); }
void write(bool bit, SymbolChanceBitType type, int i = 0) { BitChance& ch = bestChance(type, i); rac.write_12bit_chance(ch.get_12bit(), bit); updateChances(type, i, bit); }
void write(bool bit, SymbolChanceBitType type, int i = 0) { BitChance& ch = bestChance(type, i); rac.write_12bit_chance(ch.get_12bit(), bit); updateChances(type, i, bit); // e_printf("bit %s%i = %s\n", SymbolChanceBitName[type], i, bit ? "true" : "false"); }
void inline write(const bool bit, const SymbolChanceBitType type, const int i = 0) { BitChance& ch = chances.realChances.bit(type, i); rac.write_12bit_chance(ch.get_12bit(), bit); updateChances(type, i, bit); }