Exemple #1
0
    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);
    }
Exemple #2
0
    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);
    }
Exemple #3
0
 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);
 }
Exemple #4
0
 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);
 }