Home | History | Annotate | Download | only in enc

Lines Matching defs:bit

12 //  A 'token' is a bit value associated with a probability, either fixed
33 typedef uint16_t token_t; // bit #15: bit value
34 // bit #14: flags for constant proba or idx
91 uint32_t bit, uint32_t proba_idx) {
93 assert(bit <= 1);
96 b->tokens_[slot] = (bit << 15) | proba_idx;
98 return bit;
102 uint32_t bit, uint32_t proba) {
104 assert(bit <= 1);
107 b->tokens_[slot] = (bit << 15) | FIXED_PROBA_BIT | proba;
193 static void Record(int bit, proba_t* const stats) {
198 // record bit count (lower 16 bits) and increment total count (upper 16 bits).
199 p += 0x00010000u + bit;
235 const int bit = (token >> 15) & 1;
237 VP8PutBit(bw, bit, token & 0xffu); // constant proba
239 VP8PutBit(bw, bit, probas[token & 0x3fffu]);
261 const int bit = token & (1 << 15);
263 size += VP8BitCost(bit, token & 0xffu);
265 size += VP8BitCost(bit, probas[token & 0x3fffu]);