Home | History | Annotate | Download | only in enc

Lines Matching defs:Record

284 // Record proba context used
285 static int Record(int bit, proba_t* const stats) {
290 // record bit count (lower 16 bits) and increment total count (upper 16 bits).
299 // Simulate block coding, but only record statistics.
300 // Note: no need to record the fixed probas.
306 Record(0, s + 0);
311 Record(1, s + 0); // order of record doesn't matter
313 Record(0, s + 1);
316 Record(1, s + 1);
317 if (!Record(2u < (unsigned int)(v + 1), s + 2)) { // v = -1 or 1
322 if (!Record(v > 4, s + 3)) {
323 if (Record(v != 2, s + 4))
324 Record(v == 4, s + 5);
325 } else if (!Record(v > 10, s + 6)) {
326 Record(v > 6, s + 7);
327 } else if (!Record((v >= 3 + (8 << 2)), s + 8)) {
328 Record((v >= 3 + (8 << 1)), s + 9);
330 Record((v >= 3 + (8 << 3)), s + 10);
343 if (pattern & 1) Record(!!(bits & mask), s + 3 + i);
350 if (n < 16) Record(0, s + 0);