void write_int(Properties &properties, int nbits, int val) { #ifdef STATS symbols++; #endif CompoundSymbolChances<BitChance,bits> &chances = find_leaf(properties); set_selection_and_update_property_sums(properties,chances); CompoundSymbolChances<BitChance,bits> &chances2 = find_leaf(properties); coder.write_int(chances2, selection, nbits, val); }
int read_int(Properties &properties, int nbits) { #ifdef STATS symbols++; #endif CompoundSymbolChances<BitChance,bits> &chances = find_leaf(properties); set_selection_and_update_property_sums(properties,chances); CompoundSymbolChances<BitChance,bits> &chances2 = find_leaf(properties); return coder.read_int(chances2, selection, nbits); }
void write_int(Properties &properties, int min, int max, int val) { CompoundSymbolChances<BitChance,bits> &chances = find_leaf(properties); set_selection_and_update_property_sums(properties,chances); CompoundSymbolChances<BitChance,bits> &chances2 = find_leaf(properties); coder.write_int(chances2, selection, min, max, val); }
int read_int(Properties &properties, int min, int max) { CompoundSymbolChances<BitChance,bits> &chances = find_leaf(properties); set_selection_and_update_property_sums(properties,chances); CompoundSymbolChances<BitChance,bits> &chances2 = find_leaf(properties); return coder.read_int(chances2, selection, min, max); }