Lines Matching refs:bw

223 static int PutCoeffs(VP8BitWriter* const bw, int ctx, const VP8Residual* res) {  in PutCoeffs()  argument
227 if (!VP8PutBit(bw, res->last >= 0, p[0])) { in PutCoeffs()
235 if (!VP8PutBit(bw, v != 0, p[1])) { in PutCoeffs()
239 if (!VP8PutBit(bw, v > 1, p[2])) { in PutCoeffs()
242 if (!VP8PutBit(bw, v > 4, p[3])) { in PutCoeffs()
243 if (VP8PutBit(bw, v != 2, p[4])) in PutCoeffs()
244 VP8PutBit(bw, v == 4, p[5]); in PutCoeffs()
245 } else if (!VP8PutBit(bw, v > 10, p[6])) { in PutCoeffs()
246 if (!VP8PutBit(bw, v > 6, p[7])) { in PutCoeffs()
247 VP8PutBit(bw, v == 6, 159); in PutCoeffs()
249 VP8PutBit(bw, v >= 9, 165); in PutCoeffs()
250 VP8PutBit(bw, !(v & 1), 145); in PutCoeffs()
256 VP8PutBit(bw, 0, p[8]); in PutCoeffs()
257 VP8PutBit(bw, 0, p[9]); in PutCoeffs()
262 VP8PutBit(bw, 0, p[8]); in PutCoeffs()
263 VP8PutBit(bw, 1, p[9]); in PutCoeffs()
268 VP8PutBit(bw, 1, p[8]); in PutCoeffs()
269 VP8PutBit(bw, 0, p[10]); in PutCoeffs()
274 VP8PutBit(bw, 1, p[8]); in PutCoeffs()
275 VP8PutBit(bw, 1, p[10]); in PutCoeffs()
281 VP8PutBit(bw, !!(v & mask), *tab++); in PutCoeffs()
287 VP8PutBitUniform(bw, sign); in PutCoeffs()
288 if (n == 16 || !VP8PutBit(bw, n <= res->last, p[0])) { in PutCoeffs()
295 static void CodeResiduals(VP8BitWriter* const bw, VP8EncIterator* const it, in CodeResiduals() argument
306 pos1 = VP8BitWriterPos(bw); in CodeResiduals()
311 PutCoeffs(bw, it->top_nz_[8] + it->left_nz_[8], &res); in CodeResiduals()
322 it->top_nz_[x] = it->left_nz_[y] = PutCoeffs(bw, ctx, &res); in CodeResiduals()
325 pos2 = VP8BitWriterPos(bw); in CodeResiduals()
335 PutCoeffs(bw, ctx, &res); in CodeResiduals()
339 pos3 = VP8BitWriterPos(bw); in CodeResiduals()