Example #1
0
    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;
    }
Example #2
0
 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;
 }
Example #3
0
 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;
 }
Example #4
0
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);
    }
Example #5
0
 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);
 }
Example #6
0
    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");
    }
Example #7
0
 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);
 }