Lines Matching refs:bw
396 static int PutCoeffs(VP8BitWriter* const bw, int ctx, const VP8Residual* res) { in PutCoeffs() argument
400 if (!VP8PutBit(bw, res->last >= 0, p[0])) { in PutCoeffs()
408 if (!VP8PutBit(bw, v != 0, p[1])) { in PutCoeffs()
412 if (!VP8PutBit(bw, v > 1, p[2])) { in PutCoeffs()
415 if (!VP8PutBit(bw, v > 4, p[3])) { in PutCoeffs()
416 if (VP8PutBit(bw, v != 2, p[4])) in PutCoeffs()
417 VP8PutBit(bw, v == 4, p[5]); in PutCoeffs()
418 } else if (!VP8PutBit(bw, v > 10, p[6])) { in PutCoeffs()
419 if (!VP8PutBit(bw, v > 6, p[7])) { in PutCoeffs()
420 VP8PutBit(bw, v == 6, 159); in PutCoeffs()
422 VP8PutBit(bw, v >= 9, 165); in PutCoeffs()
423 VP8PutBit(bw, !(v & 1), 145); in PutCoeffs()
429 VP8PutBit(bw, 0, p[8]); in PutCoeffs()
430 VP8PutBit(bw, 0, p[9]); in PutCoeffs()
435 VP8PutBit(bw, 0, p[8]); in PutCoeffs()
436 VP8PutBit(bw, 1, p[9]); in PutCoeffs()
441 VP8PutBit(bw, 1, p[8]); in PutCoeffs()
442 VP8PutBit(bw, 0, p[10]); in PutCoeffs()
447 VP8PutBit(bw, 1, p[8]); in PutCoeffs()
448 VP8PutBit(bw, 1, p[10]); in PutCoeffs()
454 VP8PutBit(bw, !!(v & mask), *tab++); in PutCoeffs()
460 VP8PutBitUniform(bw, sign); in PutCoeffs()
461 if (n == 16 || !VP8PutBit(bw, n <= res->last, p[0])) { in PutCoeffs()
468 static void CodeResiduals(VP8BitWriter* const bw, VP8EncIterator* const it, in CodeResiduals() argument
479 pos1 = VP8BitWriterPos(bw); in CodeResiduals()
484 PutCoeffs(bw, it->top_nz_[8] + it->left_nz_[8], &res); in CodeResiduals()
495 it->top_nz_[x] = it->left_nz_[y] = PutCoeffs(bw, ctx, &res); in CodeResiduals()
498 pos2 = VP8BitWriterPos(bw); in CodeResiduals()
508 PutCoeffs(bw, ctx, &res); in CodeResiduals()
512 pos3 = VP8BitWriterPos(bw); in CodeResiduals()