Lines Matching refs:bw
317 static int PutCoeffs(VP8BitWriter* const bw, int ctx, const VP8Residual* res) { in PutCoeffs() argument
320 if (!VP8PutBit(bw, res->last >= 0, p[0])) { in PutCoeffs()
328 if (!VP8PutBit(bw, v != 0, p[1])) { in PutCoeffs()
332 if (!VP8PutBit(bw, v > 1, p[2])) { in PutCoeffs()
335 if (!VP8PutBit(bw, v > 4, p[3])) { in PutCoeffs()
336 if (VP8PutBit(bw, v != 2, p[4])) in PutCoeffs()
337 VP8PutBit(bw, v == 4, p[5]); in PutCoeffs()
338 } else if (!VP8PutBit(bw, v > 10, p[6])) { in PutCoeffs()
339 if (!VP8PutBit(bw, v > 6, p[7])) { in PutCoeffs()
340 VP8PutBit(bw, v == 6, 159); in PutCoeffs()
342 VP8PutBit(bw, v >= 9, 165); in PutCoeffs()
343 VP8PutBit(bw, !(v & 1), 145); in PutCoeffs()
349 VP8PutBit(bw, 0, p[8]); in PutCoeffs()
350 VP8PutBit(bw, 0, p[9]); in PutCoeffs()
355 VP8PutBit(bw, 0, p[8]); in PutCoeffs()
356 VP8PutBit(bw, 1, p[9]); in PutCoeffs()
361 VP8PutBit(bw, 1, p[8]); in PutCoeffs()
362 VP8PutBit(bw, 0, p[10]); in PutCoeffs()
367 VP8PutBit(bw, 1, p[8]); in PutCoeffs()
368 VP8PutBit(bw, 1, p[10]); in PutCoeffs()
374 VP8PutBit(bw, !!(v & mask), *tab++); in PutCoeffs()
380 VP8PutBitUniform(bw, sign); in PutCoeffs()
381 if (n == 16 || !VP8PutBit(bw, n <= res->last, p[0])) { in PutCoeffs()
388 static void CodeResiduals(VP8BitWriter* const bw, in CodeResiduals() argument
399 pos1 = VP8BitWriterPos(bw); in CodeResiduals()
404 PutCoeffs(bw, it->top_nz_[8] + it->left_nz_[8], &res); in CodeResiduals()
415 it->top_nz_[x] = it->left_nz_[y] = PutCoeffs(bw, ctx, &res); in CodeResiduals()
418 pos2 = VP8BitWriterPos(bw); in CodeResiduals()
428 PutCoeffs(bw, ctx, &res); in CodeResiduals()
432 pos3 = VP8BitWriterPos(bw); in CodeResiduals()