Lines Matching defs:bit
12 // A 'token' is a bit value associated with a probability, either fixed
36 uint16_t tokens_[MAX_NUM_TOKEN]; // bit#15: bit
37 // bit #14: constant proba or idx
84 int bit, uint32_t proba_idx) {
86 assert(bit == 0 || bit == 1);
89 b->tokens_[slot] = (bit << 15) | proba_idx;
91 return bit;
95 int bit, int proba) {
97 assert(bit == 0 || bit == 1);
100 b->tokens_[slot] = (bit << 15) | FIXED_PROBA_BIT | proba;
186 static void Record(int bit, proba_t* const stats) {
191 // record bit count (lower 16 bits) and increment total count (upper 16 bits).
192 p += 0x00010000u + bit;
227 const int bit = (token >> 15) & 1;
229 VP8PutBit(bw, bit, token & 0xffu); // constant proba
231 VP8PutBit(bw, bit, probas[token & 0x3fffu]);