Lines Matching refs:bw
270 static int PutI4Mode(VP8BitWriter* const bw, int mode, in PutI4Mode() argument
272 if (VP8PutBit(bw, mode != B_DC_PRED, prob[0])) { in PutI4Mode()
273 if (VP8PutBit(bw, mode != B_TM_PRED, prob[1])) { in PutI4Mode()
274 if (VP8PutBit(bw, mode != B_VE_PRED, prob[2])) { in PutI4Mode()
275 if (!VP8PutBit(bw, mode >= B_LD_PRED, prob[3])) { in PutI4Mode()
276 if (VP8PutBit(bw, mode != B_HE_PRED, prob[4])) { in PutI4Mode()
277 VP8PutBit(bw, mode != B_RD_PRED, prob[5]); in PutI4Mode()
280 if (VP8PutBit(bw, mode != B_LD_PRED, prob[6])) { in PutI4Mode()
281 if (VP8PutBit(bw, mode != B_VL_PRED, prob[7])) { in PutI4Mode()
282 VP8PutBit(bw, mode != B_HD_PRED, prob[8]); in PutI4Mode()
292 static void PutI16Mode(VP8BitWriter* const bw, int mode) { in PutI16Mode() argument
293 if (VP8PutBit(bw, (mode == TM_PRED || mode == H_PRED), 156)) { in PutI16Mode()
294 VP8PutBit(bw, mode == TM_PRED, 128); // TM or HE in PutI16Mode()
296 VP8PutBit(bw, mode == V_PRED, 163); // VE or DC in PutI16Mode()
300 static void PutUVMode(VP8BitWriter* const bw, int uv_mode) { in PutUVMode() argument
301 if (VP8PutBit(bw, uv_mode != DC_PRED, 142)) { in PutUVMode()
302 if (VP8PutBit(bw, uv_mode != V_PRED, 114)) { in PutUVMode()
303 VP8PutBit(bw, uv_mode != H_PRED, 183); // else: TM_PRED in PutUVMode()
308 static void PutSegment(VP8BitWriter* const bw, int s, const uint8_t* p) { in PutSegment() argument
309 if (VP8PutBit(bw, s >= 2, p[0])) p += 1; in PutSegment()
310 VP8PutBit(bw, s & 1, p[1]); in PutSegment()
314 VP8BitWriter* const bw = &enc->bw_; in VP8CodeIntraModes() local
321 PutSegment(bw, mb->segment_, enc->proba_.segments_); in VP8CodeIntraModes()
324 VP8PutBit(bw, mb->skip_, enc->proba_.skip_proba_); in VP8CodeIntraModes()
326 if (VP8PutBit(bw, (mb->type_ != 0), 145)) { // i16x16 in VP8CodeIntraModes()
327 PutI16Mode(bw, preds[0]); in VP8CodeIntraModes()
336 left = PutI4Mode(bw, preds[x], probas); in VP8CodeIntraModes()
342 PutUVMode(bw, mb->uv_mode_); in VP8CodeIntraModes()
485 void VP8WriteProbas(VP8BitWriter* const bw, const VP8EncProba* const probas) { in VP8WriteProbas() argument
493 if (VP8PutBit(bw, update, VP8CoeffsUpdateProba[t][b][c][p])) { in VP8WriteProbas()
494 VP8PutBits(bw, p0, 8); in VP8WriteProbas()
500 if (VP8PutBitUniform(bw, probas->use_skip_proba_)) { in VP8WriteProbas()
501 VP8PutBits(bw, probas->skip_proba_, 8); in VP8WriteProbas()