Lines Matching refs:bw

275 static int PutI4Mode(VP8BitWriter* const bw, int mode,  in PutI4Mode()  argument
277 if (VP8PutBit(bw, mode != B_DC_PRED, prob[0])) { in PutI4Mode()
278 if (VP8PutBit(bw, mode != B_TM_PRED, prob[1])) { in PutI4Mode()
279 if (VP8PutBit(bw, mode != B_VE_PRED, prob[2])) { in PutI4Mode()
280 if (!VP8PutBit(bw, mode >= B_LD_PRED, prob[3])) { in PutI4Mode()
281 if (VP8PutBit(bw, mode != B_HE_PRED, prob[4])) { in PutI4Mode()
282 VP8PutBit(bw, mode != B_RD_PRED, prob[5]); in PutI4Mode()
285 if (VP8PutBit(bw, mode != B_LD_PRED, prob[6])) { in PutI4Mode()
286 if (VP8PutBit(bw, mode != B_VL_PRED, prob[7])) { in PutI4Mode()
287 VP8PutBit(bw, mode != B_HD_PRED, prob[8]); in PutI4Mode()
297 static void PutI16Mode(VP8BitWriter* const bw, int mode) { in PutI16Mode() argument
298 if (VP8PutBit(bw, (mode == TM_PRED || mode == H_PRED), 156)) { in PutI16Mode()
299 VP8PutBit(bw, mode == TM_PRED, 128); // TM or HE in PutI16Mode()
301 VP8PutBit(bw, mode == V_PRED, 163); // VE or DC in PutI16Mode()
305 static void PutUVMode(VP8BitWriter* const bw, int uv_mode) { in PutUVMode() argument
306 if (VP8PutBit(bw, uv_mode != DC_PRED, 142)) { in PutUVMode()
307 if (VP8PutBit(bw, uv_mode != V_PRED, 114)) { in PutUVMode()
308 VP8PutBit(bw, uv_mode != H_PRED, 183); // else: TM_PRED in PutUVMode()
313 static void PutSegment(VP8BitWriter* const bw, int s, const uint8_t* p) { in PutSegment() argument
314 if (VP8PutBit(bw, s >= 2, p[0])) p += 1; in PutSegment()
315 VP8PutBit(bw, s & 1, p[1]); in PutSegment()
319 VP8BitWriter* const bw = &enc->bw_; in VP8CodeIntraModes() local
326 PutSegment(bw, mb->segment_, enc->proba_.segments_); in VP8CodeIntraModes()
329 VP8PutBit(bw, mb->skip_, enc->proba_.skip_proba_); in VP8CodeIntraModes()
331 if (VP8PutBit(bw, (mb->type_ != 0), 145)) { // i16x16 in VP8CodeIntraModes()
332 PutI16Mode(bw, preds[0]); in VP8CodeIntraModes()
341 left = PutI4Mode(bw, preds[x], probas); in VP8CodeIntraModes()
347 PutUVMode(bw, mb->uv_mode_); in VP8CodeIntraModes()
490 void VP8WriteProbas(VP8BitWriter* const bw, const VP8Proba* const probas) { in VP8WriteProbas() argument
498 if (VP8PutBit(bw, update, VP8CoeffsUpdateProba[t][b][c][p])) { in VP8WriteProbas()
499 VP8PutValue(bw, p0, 8); in VP8WriteProbas()
505 if (VP8PutBitUniform(bw, probas->use_skip_proba_)) { in VP8WriteProbas()
506 VP8PutValue(bw, probas->skip_proba_, 8); in VP8WriteProbas()