Lines Matching refs:c

482 static RK_S32 update_prob(VpxRangeCoder *c, RK_S32 p, RK_U8 *delta)  in update_prob()  argument
522 if (!vpx_rac_get(c)) { in update_prob()
523 d = vpx_rac_get_uint(c, 4) + 0; in update_prob()
524 } else if (!vpx_rac_get(c)) { in update_prob()
525 d = vpx_rac_get_uint(c, 4) + 16; in update_prob()
526 } else if (!vpx_rac_get(c)) { in update_prob()
527 d = vpx_rac_get_uint(c, 5) + 32; in update_prob()
529 d = vpx_rac_get_uint(c, 7); in update_prob()
531 d = (d << 1) - 65 + vpx_rac_get(c); in update_prob()
634 RK_S32 c, i, j, k, l, m, n, max, size2, res, sharp; in decode_parser_header() local
872 s->framectxid = c = mpp_get_bits(&s->gb, 2); in decode_parser_header()
1085 s->prob_ctx[c].p = vp9_default_probs; in decode_parser_header()
1086 memcpy(s->prob_ctx[c].coef, vp9_default_coef_probs, in decode_parser_header()
1090 s->framectxid = c = 0; in decode_parser_header()
1103 vpx_init_range_decoder(&s->c, data2, size2); in decode_parser_header()
1104 if (vpx_rac_get_prob_branchy(&s->c, 128)) { // marker bit in decode_parser_header()
1118 s->prob.p = s->prob_ctx[c].p; in decode_parser_header()
1124 s->txfmmode = vpx_rac_get_uint(&s->c, 2); in decode_parser_header()
1126 s->txfmmode += vpx_rac_get(&s->c); in decode_parser_header()
1131 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1133 s->prob.p.tx8p[i] = update_prob(&s->c, s->prob.p.tx8p[i], in decode_parser_header()
1141 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1144 update_prob(&s->c, s->prob.p.tx16p[i][j], in decode_parser_header()
1151 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1154 update_prob(&s->c, s->prob.p.tx32p[i][j], in decode_parser_header()
1163 RK_U8 (*ref)[2][6][6][3] = s->prob_ctx[c].coef[i]; in decode_parser_header()
1164 if (vpx_rac_get(&s->c)) { in decode_parser_header()
1176 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1178 p[n] = update_prob(&s->c, r[n], &p_delta[n]); in decode_parser_header()
1204 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1206 s->prob.p.skip[i] = update_prob(&s->c, s->prob.p.skip[i], in decode_parser_header()
1214 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1217 update_prob(&s->c, s->prob.p.mv_mode[i][j], in decode_parser_header()
1225 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1228 update_prob(&s->c, s->prob.p.filter[i][j], in decode_parser_header()
1235 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1237 s->prob.p.intra[i] = update_prob(&s->c, s->prob.p.intra[i], in decode_parser_header()
1244 s->comppredmode = vpx_rac_get(&s->c); in decode_parser_header()
1246 s->comppredmode += vpx_rac_get(&s->c); in decode_parser_header()
1249 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1252 update_prob(&s->c, s->prob.p.comp[i], in decode_parser_header()
1262 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1265 update_prob(&s->c, s->prob.p.single_ref[i][0], in decode_parser_header()
1268 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1271 update_prob(&s->c, s->prob.p.single_ref[i][1], in decode_parser_header()
1279 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1282 update_prob(&s->c, s->prob.p.comp_ref[i], in decode_parser_header()
1290 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1293 update_prob(&s->c, s->prob.p.y_mode[i][j], in decode_parser_header()
1301 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1304 update_prob(&s->c, s->prob.p.partition[3 - i][j][k], in decode_parser_header()
1311 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1314 s->prob.p.mv_joint[i] = (vpx_rac_get_uint(&s->c, 7) << 1) | 1; in decode_parser_header()
1319 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1322 s->prob.p.mv_comp[i].sign = (vpx_rac_get_uint(&s->c, 7) << 1) | 1; in decode_parser_header()
1326 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1329 s->prob.p.mv_comp[i].classes[j] = (vpx_rac_get_uint(&s->c, 7) << 1) | 1; in decode_parser_header()
1332 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1335 s->prob.p.mv_comp[i].class0 = (vpx_rac_get_uint(&s->c, 7) << 1) | 1; in decode_parser_header()
1339 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1342 s->prob.p.mv_comp[i].bits[j] = (vpx_rac_get_uint(&s->c, 7) << 1) | 1; in decode_parser_header()
1349 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1352 … s->prob.p.mv_comp[i].class0_fp[j][k] = (vpx_rac_get_uint(&s->c, 7) << 1) | 1; in decode_parser_header()
1356 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1360 (vpx_rac_get_uint(&s->c, 7) << 1) | 1; in decode_parser_header()
1366 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1369 s->prob.p.mv_comp[i].class0_hp = (vpx_rac_get_uint(&s->c, 7) << 1) | 1; in decode_parser_header()
1372 if (vpx_rac_get_prob_branchy(&s->c, 252)) { in decode_parser_header()
1375 s->prob.p.mv_comp[i].hp = (vpx_rac_get_uint(&s->c, 7) << 1) | 1; in decode_parser_header()
1416 RK_U32 *c = s->counts.coef[i][j][k][l][m]; in adapt_probs() local
1426 adapt_prob(&pp[1], c[0], c[1] + c[2], 24, uf); in adapt_probs()
1427 adapt_prob(&pp[2], c[1], c[2], 24, uf); in adapt_probs()
1469 RK_U32 (*c)[2] = s->counts.single_ref[i]; in adapt_probs() local
1471 adapt_prob(&pp[0], c[0][0], c[0][1], 20, 128); in adapt_probs()
1472 adapt_prob(&pp[1], c[1][0], c[1][1], 20, 128); in adapt_probs()
1480 RK_U32 *c = s->counts.partition[i][j]; in adapt_probs() local
1483 adapt_prob(&pp[0], c[0], c[1] + c[2] + c[3], 20, 128); in adapt_probs()
1484 adapt_prob(&pp[1], c[1], c[2] + c[3], 20, 128); in adapt_probs()
1485 adapt_prob(&pp[2], c[2], c[3], 20, 128); in adapt_probs()
1507 RK_U32 *c = s->counts.filter[i]; in adapt_probs() local
1509 adapt_prob(&pp[0], c[0], c[1] + c[2], 20, 128); in adapt_probs()
1510 adapt_prob(&pp[1], c[1], c[2], 20, 128); in adapt_probs()
1517 RK_U32 *c = s->counts.mv_mode[i]; in adapt_probs() local
1519 adapt_prob(&pp[0], c[2], c[1] + c[0] + c[3], 20, 128); in adapt_probs()
1520 adapt_prob(&pp[1], c[0], c[1] + c[3], 20, 128); in adapt_probs()
1521 adapt_prob(&pp[2], c[1], c[3], 20, 128); in adapt_probs()
1527 RK_U32 *c = s->counts.mv_joint; in adapt_probs() local
1529 adapt_prob(&pp[0], c[0], c[1] + c[2] + c[3], 20, 128); in adapt_probs()
1530 adapt_prob(&pp[1], c[1], c[2] + c[3], 20, 128); in adapt_probs()
1531 adapt_prob(&pp[2], c[2], c[3], 20, 128); in adapt_probs()
1537 RK_U32 *c, (*c2)[2], sum; in adapt_probs() local
1543 c = s->counts.classes[i]; in adapt_probs()
1544 sum = c[1] + c[2] + c[3] + c[4] + c[5] + c[6] + c[7] + c[8] + c[9] + c[10]; in adapt_probs()
1545 adapt_prob(&pp[0], c[0], sum, 20, 128); in adapt_probs()
1546 sum -= c[1]; in adapt_probs()
1547 adapt_prob(&pp[1], c[1], sum, 20, 128); in adapt_probs()
1548 sum -= c[2] + c[3]; in adapt_probs()
1549 adapt_prob(&pp[2], c[2] + c[3], sum, 20, 128); in adapt_probs()
1550 adapt_prob(&pp[3], c[2], c[3], 20, 128); in adapt_probs()
1551 sum -= c[4] + c[5]; in adapt_probs()
1552 adapt_prob(&pp[4], c[4] + c[5], sum, 20, 128); in adapt_probs()
1553 adapt_prob(&pp[5], c[4], c[5], 20, 128); in adapt_probs()
1554 sum -= c[6]; in adapt_probs()
1555 adapt_prob(&pp[6], c[6], sum, 20, 128); in adapt_probs()
1556 adapt_prob(&pp[7], c[7] + c[8], c[9] + c[10], 20, 128); in adapt_probs()
1557 adapt_prob(&pp[8], c[7], c[8], 20, 128); in adapt_probs()
1558 adapt_prob(&pp[9], c[9], c[10], 20, 128); in adapt_probs()
1569 c = s->counts.class0_fp[i][j]; in adapt_probs()
1570 adapt_prob(&pp[0], c[0], c[1] + c[2] + c[3], 20, 128); in adapt_probs()
1571 adapt_prob(&pp[1], c[1], c[2] + c[3], 20, 128); in adapt_probs()
1572 adapt_prob(&pp[2], c[2], c[3], 20, 128); in adapt_probs()
1575 c = s->counts.fp[i]; in adapt_probs()
1576 adapt_prob(&pp[0], c[0], c[1] + c[2] + c[3], 20, 128); in adapt_probs()
1577 adapt_prob(&pp[1], c[1], c[2] + c[3], 20, 128); in adapt_probs()
1578 adapt_prob(&pp[2], c[2], c[3], 20, 128); in adapt_probs()
1591 RK_U32 *c = s->counts.y_mode[i], sum, s2; in adapt_probs() local
1593 sum = c[0] + c[1] + c[3] + c[4] + c[5] + c[6] + c[7] + c[8] + c[9]; in adapt_probs()
1594 adapt_prob(&pp[0], c[DC_PRED], sum, 20, 128); in adapt_probs()
1595 sum -= c[TM_VP8_PRED]; in adapt_probs()
1596 adapt_prob(&pp[1], c[TM_VP8_PRED], sum, 20, 128); in adapt_probs()
1597 sum -= c[VERT_PRED]; in adapt_probs()
1598 adapt_prob(&pp[2], c[VERT_PRED], sum, 20, 128); in adapt_probs()
1599 s2 = c[HOR_PRED] + c[DIAG_DOWN_RIGHT_PRED] + c[VERT_RIGHT_PRED]; in adapt_probs()
1602 s2 -= c[HOR_PRED]; in adapt_probs()
1603 adapt_prob(&pp[4], c[HOR_PRED], s2, 20, 128); in adapt_probs()
1604 adapt_prob(&pp[5], c[DIAG_DOWN_RIGHT_PRED], c[VERT_RIGHT_PRED], 20, 128); in adapt_probs()
1605 sum -= c[DIAG_DOWN_LEFT_PRED]; in adapt_probs()
1606 adapt_prob(&pp[6], c[DIAG_DOWN_LEFT_PRED], sum, 20, 128); in adapt_probs()
1607 sum -= c[VERT_LEFT_PRED]; in adapt_probs()
1608 adapt_prob(&pp[7], c[VERT_LEFT_PRED], sum, 20, 128); in adapt_probs()
1609 adapt_prob(&pp[8], c[HOR_DOWN_PRED], c[HOR_UP_PRED], 20, 128); in adapt_probs()
1615 RK_U32 *c = s->counts.uv_mode[i], sum, s2; in adapt_probs() local
1617 sum = c[0] + c[1] + c[3] + c[4] + c[5] + c[6] + c[7] + c[8] + c[9]; in adapt_probs()
1618 adapt_prob(&pp[0], c[DC_PRED], sum, 20, 128); in adapt_probs()
1619 sum -= c[TM_VP8_PRED]; in adapt_probs()
1620 adapt_prob(&pp[1], c[TM_VP8_PRED], sum, 20, 128); in adapt_probs()
1621 sum -= c[VERT_PRED]; in adapt_probs()
1622 adapt_prob(&pp[2], c[VERT_PRED], sum, 20, 128); in adapt_probs()
1623 s2 = c[HOR_PRED] + c[DIAG_DOWN_RIGHT_PRED] + c[VERT_RIGHT_PRED]; in adapt_probs()
1626 s2 -= c[HOR_PRED]; in adapt_probs()
1627 adapt_prob(&pp[4], c[HOR_PRED], s2, 20, 128); in adapt_probs()
1628 adapt_prob(&pp[5], c[DIAG_DOWN_RIGHT_PRED], c[VERT_RIGHT_PRED], 20, 128); in adapt_probs()
1629 sum -= c[DIAG_DOWN_LEFT_PRED]; in adapt_probs()
1630 adapt_prob(&pp[6], c[DIAG_DOWN_LEFT_PRED], sum, 20, 128); in adapt_probs()
1631 sum -= c[VERT_LEFT_PRED]; in adapt_probs()
1632 adapt_prob(&pp[7], c[VERT_LEFT_PRED], sum, 20, 128); in adapt_probs()
1633 adapt_prob(&pp[8], c[HOR_DOWN_PRED], c[HOR_UP_PRED], 20, 128); in adapt_probs()