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 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 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"); }