コード例 #1
0
ファイル: compound.hpp プロジェクト: psykauze/FLIF
    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;
    }
コード例 #2
0
ファイル: compound_enc.hpp プロジェクト: hfr1988/spot
 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;
 }
コード例 #3
0
ファイル: compound_enc.hpp プロジェクト: hfr1988/spot
 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);
 }
コード例 #4
0
ファイル: compound.hpp プロジェクト: psykauze/FLIF
    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");
    }