Lines Matching +full:2 +full:c
5 * Copyright (C) 2021 Collabora, Ltd.
198 { 2, 44, 76 },
201 { /* Coeff Band 2 */
222 { 2, 39, 75 },
247 { 2, 68, 118 },
251 { /* Coeff Band 2 */
300 { 2, 49, 87 },
303 { /* Coeff Band 2 */
308 { 2, 42, 81 },
333 { 2, 20, 47 },
353 { /* Coeff Band 2 */
357 { 2, 72, 131 },
365 { 2, 73, 133 },
407 { /* Coeff Band 2 */
411 { 2, 73, 114 },
418 { 2, 93, 148 },
454 { 2, 61, 95 },
457 { /* Coeff Band 2 */
509 { /* Coeff Band 2 */
514 { 2, 51, 89 },
537 { 2, 70, 124 },
557 { 2, 53, 84 },
559 { /* Coeff Band 2 */
570 { 2, 107, 172 },
578 { 2, 107, 172 },
613 { /* Coeff Band 2 */
617 { 2, 59, 89 },
624 { 2, 75, 117 },
663 { /* Coeff Band 2 */
666 { 2, 88, 144 },
689 { 2, 137, 192 },
712 { 2, 49, 76 },
715 { /* Coeff Band 2 */
765 { /* Coeff Band 2 */
776 { 2, 97, 159 },
816 { 2, 32, 55 },
819 { /* Coeff Band 2 */
830 { 2, 71, 112 },
845 { 2, 150, 194 },
869 { /* Coeff Band 2 */
880 { 2, 86, 140 },
921 { /* Coeff Band 2 */
926 { 2, 44, 65 },
947 { 2, 136, 180 },
971 { /* Coeff Band 2 */
975 { 2, 65, 125 },
990 { 2, 115, 180 },
1010 { 2, 173, 34 },
1116 DIV_INV(2), DIV_INV(3), DIV_INV(4), DIV_INV(5), in fastdiv()
1151 if (WARN_ON(divisor - 2 >= ARRAY_SIZE(inv))) in fastdiv()
1154 return ((u64)dividend * inv[divisor - 2]) >> 32; in fastdiv()
1160 if (v > 2 * m) in inv_recenter_nonneg()
1183 /* Counterpart to 6.3.2 tx_mode_probs() */
1202 p32x32[2] = update_prob(d32x32[2], p32x32[2]); in update_tx_probs()
1261 p[2] = update_prob(d[2], p[2]); in update_inter_mode_probs()
1344 p[2] = update_prob(d[2], p[2]); in update_partition_probs()
1367 p[2] = update_mv_prob(d[2], p[2]); in update_mv_probs()
1394 p[2] = update_mv_prob(d[2], p[2]); in update_mv_probs()
1514 /* 8.4.2 Merge probs process */
1523 * merge_probs(small_token_tree, 2):
1524 * merge_prob(p[1], c[0], c[1] + c[2])
1525 * merge_prob(p[2], c[1], c[2])
1531 * merge_prob(p[0], c[0], c[1])
1533 * Variant C
1536 * merge_prob(p[0], c[2], c[1] + c[0] + c[3])
1537 * merge_prob(p[1], c[0], c[1] + c[3])
1538 * merge_prob(p[2], c[1], c[3])
1543 * merge_prob(p[0], c[0], c[1] + ... + c[9])
1544 * merge_prob(p[1], c[9], c[1] + ... + c[8])
1545 * merge_prob(p[2], c[1], c[2] + ... + c[8])
1546 * merge_prob(p[3], c[2] + c[4] + c[5], c[3] + c[8] + c[6] + c[7])
1547 * merge_prob(p[4], c[2], c[4] + c[5])
1548 * merge_prob(p[5], c[4], c[5])
1549 * merge_prob(p[6], c[3], c[8] + c[6] + c[7])
1550 * merge_prob(p[7], c[8], c[6] + c[7])
1551 * merge_prob(p[8], c[6], c[7])
1559 * merge_prob(p[0], c[0], c[1] + c[2] + c[3])
1560 * merge_prob(p[1], c[1], c[2] + c[3])
1561 * merge_prob(p[2], c[2], c[3])
1567 * merge_prob(p[0], c[0], c[1] + c[2])
1568 * merge_prob(p[1], c[1], c[2])
1573 * merge_prob(p[0], c[0], c[1] + ... + c[10])
1574 * merge_prob(p[1], c[1], c[2] + ... + c[10])
1575 * merge_prob(p[2], c[2] + c[3], c[4] + ... + c[10])
1576 * merge_prob(p[3], c[2], c[3])
1577 * merge_prob(p[4], c[4] + c[5], c[6] + ... + c[10])
1578 * merge_prob(p[5], c[4], c[5])
1579 * merge_prob(p[6], c[6], c[7] + ... + c[10])
1580 * merge_prob(p[7], c[7] + c[8], c[9] + c[10])
1581 * merge_prob(p[8], c[7], c[8])
1582 * merge_prob(p[9], c[9], [10])
1585 static inline void merge_probs_variant_a(u8 *p, const u32 *c, u16 count_sat, u32 update_factor) in merge_probs_variant_a() argument
1587 p[1] = merge_prob(p[1], c[0], c[1] + c[2], count_sat, update_factor); in merge_probs_variant_a()
1588 p[2] = merge_prob(p[2], c[1], c[2], count_sat, update_factor); in merge_probs_variant_a()
1591 static inline void merge_probs_variant_b(u8 *p, const u32 *c, u16 count_sat, u32 update_factor) in merge_probs_variant_b() argument
1593 p[0] = merge_prob(p[0], c[0], c[1], count_sat, update_factor); in merge_probs_variant_b()
1596 static inline void merge_probs_variant_c(u8 *p, const u32 *c) in merge_probs_variant_c() argument
1598 p[0] = noncoef_merge_prob(p[0], c[2], c[1] + c[0] + c[3]); in merge_probs_variant_c()
1599 p[1] = noncoef_merge_prob(p[1], c[0], c[1] + c[3]); in merge_probs_variant_c()
1600 p[2] = noncoef_merge_prob(p[2], c[1], c[3]); in merge_probs_variant_c()
1603 static void merge_probs_variant_d(u8 *p, const u32 *c) in merge_probs_variant_d() argument
1607 sum = c[1] + c[2] + c[3] + c[4] + c[5] + c[6] + c[7] + c[8] + c[9]; in merge_probs_variant_d()
1609 p[0] = noncoef_merge_prob(p[0], c[0], sum); in merge_probs_variant_d()
1610 sum -= c[9]; in merge_probs_variant_d()
1611 p[1] = noncoef_merge_prob(p[1], c[9], sum); in merge_probs_variant_d()
1612 sum -= c[1]; in merge_probs_variant_d()
1613 p[2] = noncoef_merge_prob(p[2], c[1], sum); in merge_probs_variant_d()
1614 s2 = c[2] + c[4] + c[5]; in merge_probs_variant_d()
1617 s2 -= c[2]; in merge_probs_variant_d()
1618 p[4] = noncoef_merge_prob(p[4], c[2], s2); in merge_probs_variant_d()
1619 p[5] = noncoef_merge_prob(p[5], c[4], c[5]); in merge_probs_variant_d()
1620 sum -= c[3]; in merge_probs_variant_d()
1621 p[6] = noncoef_merge_prob(p[6], c[3], sum); in merge_probs_variant_d()
1622 sum -= c[8]; in merge_probs_variant_d()
1623 p[7] = noncoef_merge_prob(p[7], c[8], sum); in merge_probs_variant_d()
1624 p[8] = noncoef_merge_prob(p[8], c[6], c[7]); in merge_probs_variant_d()
1627 static inline void merge_probs_variant_e(u8 *p, const u32 *c) in merge_probs_variant_e() argument
1629 p[0] = noncoef_merge_prob(p[0], c[0], c[1] + c[2] + c[3]); in merge_probs_variant_e()
1630 p[1] = noncoef_merge_prob(p[1], c[1], c[2] + c[3]); in merge_probs_variant_e()
1631 p[2] = noncoef_merge_prob(p[2], c[2], c[3]); in merge_probs_variant_e()
1634 static inline void merge_probs_variant_f(u8 *p, const u32 *c) in merge_probs_variant_f() argument
1636 p[0] = noncoef_merge_prob(p[0], c[0], c[1] + c[2]); in merge_probs_variant_f()
1637 p[1] = noncoef_merge_prob(p[1], c[1], c[2]); in merge_probs_variant_f()
1640 static void merge_probs_variant_g(u8 *p, const u32 *c) in merge_probs_variant_g() argument
1644 sum = c[1] + c[2] + c[3] + c[4] + c[5] + c[6] + c[7] + c[8] + c[9] + c[10]; in merge_probs_variant_g()
1645 p[0] = noncoef_merge_prob(p[0], c[0], sum); in merge_probs_variant_g()
1646 sum -= c[1]; in merge_probs_variant_g()
1647 p[1] = noncoef_merge_prob(p[1], c[1], sum); in merge_probs_variant_g()
1648 sum -= c[2] + c[3]; in merge_probs_variant_g()
1649 p[2] = noncoef_merge_prob(p[2], c[2] + c[3], sum); in merge_probs_variant_g()
1650 p[3] = noncoef_merge_prob(p[3], c[2], c[3]); in merge_probs_variant_g()
1651 sum -= c[4] + c[5]; in merge_probs_variant_g()
1652 p[4] = noncoef_merge_prob(p[4], c[4] + c[5], sum); in merge_probs_variant_g()
1653 p[5] = noncoef_merge_prob(p[5], c[4], c[5]); in merge_probs_variant_g()
1654 sum -= c[6]; in merge_probs_variant_g()
1655 p[6] = noncoef_merge_prob(p[6], c[6], sum); in merge_probs_variant_g()
1656 p[7] = noncoef_merge_prob(p[7], c[7] + c[8], c[9] + c[10]); in merge_probs_variant_g()
1657 p[8] = noncoef_merge_prob(p[8], c[7], c[8]); in merge_probs_variant_g()
1658 p[9] = noncoef_merge_prob(p[9], c[9], c[10]); in merge_probs_variant_g()
1662 static inline void adapt_probs_variant_a_coef(u8 *p, const u32 *c, u32 update_factor) in adapt_probs_variant_a_coef() argument
1664 merge_probs_variant_a(p, c, 24, update_factor); in adapt_probs_variant_a_coef()
1667 static inline void adapt_probs_variant_b_coef(u8 *p, const u32 *c, u32 update_factor) in adapt_probs_variant_b_coef() argument
1669 merge_probs_variant_b(p, c, 24, update_factor); in adapt_probs_variant_b_coef()
1682 const u32 counts_more_coefs[2] = { in _adapt_coeff()
1722 static inline void adapt_probs_variant_b(u8 *p, const u32 *c) in adapt_probs_variant_b() argument
1724 merge_probs_variant_b(p, c, 20, 128); in adapt_probs_variant_b()
1727 static inline void adapt_probs_variant_c(u8 *p, const u32 *c) in adapt_probs_variant_c() argument
1729 merge_probs_variant_c(p, c); in adapt_probs_variant_c()
1732 static inline void adapt_probs_variant_d(u8 *p, const u32 *c) in adapt_probs_variant_d() argument
1734 merge_probs_variant_d(p, c); in adapt_probs_variant_d()
1737 static inline void adapt_probs_variant_e(u8 *p, const u32 *c) in adapt_probs_variant_e() argument
1739 merge_probs_variant_e(p, c); in adapt_probs_variant_e()
1742 static inline void adapt_probs_variant_f(u8 *p, const u32 *c) in adapt_probs_variant_f() argument
1744 merge_probs_variant_f(p, c); in adapt_probs_variant_f()
1747 static inline void adapt_probs_variant_g(u8 *p, const u32 *c) in adapt_probs_variant_g() argument
1749 merge_probs_variant_g(p, c); in adapt_probs_variant_g()
1753 static inline u8 adapt_prob(u8 prob, const u32 counts[2]) in adapt_prob() argument