Lines Matching +full:1 +full:c

5  * Copyright (C) 2021 Collabora, Ltd.
193 { /* Coeff Band 1 */
199 { 1, 19, 32 },
207 { 1, 28, 47 },
214 { 1, 42, 77 },
215 { 1, 17, 31 },
223 { 1, 15, 29 },
243 { /* Coeff Band 1 */
248 { 1, 39, 69 },
249 { 1, 17, 33 },
255 { 1, 58, 105 },
256 { 1, 32, 60 },
257 { 1, 13, 26 },
263 { 1, 66, 114 },
264 { 1, 38, 71 },
265 { 1, 18, 34 },
272 { 1, 33, 65 },
273 { 1, 17, 34 },
285 { /* block Type 1 */
295 { /* Coeff Band 1 */
301 { 1, 16, 28 },
309 { 1, 17, 33 },
316 { 1, 45, 85 },
317 { 1, 19, 38 },
324 { 1, 36, 75 },
325 { 1, 18, 37 },
345 { /* Coeff Band 1 */
351 { 1, 33, 57 },
358 { 1, 41, 79 },
359 { 1, 20, 39 },
366 { 1, 44, 85 },
367 { 1, 22, 47 },
374 { 1, 41, 84 },
375 { 1, 21, 52 },
399 { /* Coeff Band 1 */
404 { 1, 41, 63 },
405 { 1, 19, 29 },
412 { 1, 51, 82 },
413 { 1, 28, 45 },
419 { 1, 67, 111 },
420 { 1, 41, 69 },
421 { 1, 14, 24 },
427 { 1, 69, 111 },
428 { 1, 39, 63 },
429 { 1, 14, 23 },
436 { 1, 48, 69 },
437 { 1, 21, 29 },
449 { /* Coeff Band 1 */
455 { 1, 37, 57 },
460 { 1, 89, 148 },
461 { 1, 60, 104 },
462 { 1, 33, 57 },
463 { 1, 12, 21 },
468 { 1, 87, 145 },
469 { 1, 58, 100 },
470 { 1, 31, 55 },
471 { 1, 12, 20 },
476 { 1, 86, 143 },
477 { 1, 58, 100 },
478 { 1, 31, 55 },
479 { 1, 12, 22 },
485 { 1, 68, 112 },
486 { 1, 42, 69 },
487 { 1, 19, 32 },
491 { /* block Type 1 */
501 { /* Coeff Band 1 */
507 { 1, 15, 25 },
515 { 1, 24, 42 },
522 { 1, 46, 81 },
523 { 1, 18, 30 },
529 { 1, 67, 120 },
530 { 1, 38, 69 },
531 { 1, 15, 30 },
538 { 1, 42, 73 },
539 { 1, 18, 34 },
551 { /* Coeff Band 1 */
563 { 1, 74, 128 },
564 { 1, 44, 76 },
565 { 1, 17, 28 },
571 { 1, 75, 127 },
572 { 1, 42, 73 },
573 { 1, 17, 29 },
579 { 1, 72, 122 },
580 { 1, 40, 71 },
581 { 1, 18, 32 },
587 { 1, 76, 129 },
588 { 1, 46, 80 },
589 { 1, 23, 41 },
600 { 1, 16, 30 },
605 { /* Coeff Band 1 */
610 { 1, 33, 52 },
611 { 1, 12, 18 },
618 { 1, 38, 60 },
619 { 1, 17, 27 },
625 { 1, 50, 81 },
626 { 1, 31, 51 },
627 { 1, 14, 23 },
632 { 1, 78, 125 },
633 { 1, 51, 86 },
634 { 1, 31, 54 },
635 { 1, 14, 23 },
640 { 1, 91, 146 },
641 { 1, 55, 95 },
642 { 1, 30, 53 },
643 { 1, 11, 20 },
655 { /* Coeff Band 1 */
661 { 1, 36, 52 },
667 { 1, 60, 101 },
668 { 1, 36, 60 },
669 { 1, 16, 28 },
674 { 1, 86, 142 },
675 { 1, 56, 96 },
676 { 1, 30, 53 },
677 { 1, 12, 20 },
682 { 1, 84, 139 },
683 { 1, 53, 91 },
684 { 1, 28, 49 },
685 { 1, 11, 20 },
690 { 1, 86, 143 },
691 { 1, 57, 99 },
692 { 1, 32, 56 },
693 { 1, 13, 24 },
697 { /* block Type 1 */
707 { /* Coeff Band 1 */
713 { 1, 18, 28 },
720 { 1, 44, 70 },
721 { 1, 18, 29 },
727 { 1, 62, 102 },
728 { 1, 38, 65 },
729 { 1, 16, 27 },
734 { 1, 88, 142 },
735 { 1, 57, 98 },
736 { 1, 36, 62 },
737 { 1, 15, 26 },
742 { 1, 94, 151 },
743 { 1, 60, 104 },
744 { 1, 36, 62 },
745 { 1, 16, 28 },
757 { /* Coeff Band 1 */
770 { 1, 45, 77 },
771 { 1, 18, 30 },
777 { 1, 68, 116 },
778 { 1, 40, 70 },
779 { 1, 14, 29 },
784 { 1, 94, 155 },
785 { 1, 65, 112 },
786 { 1, 39, 66 },
787 { 1, 14, 26 },
792 { 1, 98, 160 },
793 { 1, 67, 117 },
794 { 1, 41, 74 },
795 { 1, 17, 31 },
806 { 1, 17, 29 },
811 { /* Coeff Band 1 */
817 { 1, 10, 16 },
824 { 1, 35, 54 },
825 { 1, 13, 20 },
831 { 1, 44, 72 },
832 { 1, 27, 45 },
833 { 1, 11, 17 },
838 { 1, 74, 116 },
839 { 1, 48, 78 },
840 { 1, 30, 49 },
841 { 1, 11, 18 },
846 { 1, 83, 128 },
847 { 1, 48, 79 },
848 { 1, 27, 45 },
849 { 1, 11, 17 },
861 { /* Coeff Band 1 */
873 { 1, 60, 103 },
874 { 1, 38, 65 },
875 { 1, 18, 30 },
881 { 1, 56, 97 },
882 { 1, 36, 61 },
883 { 1, 16, 27 },
888 { 1, 86, 141 },
889 { 1, 57, 99 },
890 { 1, 35, 61 },
891 { 1, 13, 22 },
895 { 1, 132, 184 },
896 { 1, 84, 139 },
897 { 1, 57, 97 },
898 { 1, 34, 56 },
899 { 1, 14, 23 },
903 { /* block Type 1 */
913 { /* Coeff Band 1 */
919 { 1, 17, 23 },
927 { 1, 12, 19 },
933 { 1, 61, 97 },
934 { 1, 31, 50 },
935 { 1, 10, 16 },
940 { 1, 96, 142 },
941 { 1, 53, 83 },
942 { 1, 26, 44 },
943 { 1, 11, 17 },
948 { 1, 78, 124 },
949 { 1, 50, 83 },
950 { 1, 29, 49 },
951 { 1, 14, 23 },
963 { /* Coeff Band 1 */
976 { 1, 44, 80 },
977 { 1, 17, 91 },
983 { 1, 79, 124 },
984 { 1, 50, 102 },
985 { 1, 43, 102 },
991 { 1, 79, 134 },
992 { 1, 55, 77 },
993 { 1, 60, 79 },
998 { 1, 115, 166 },
999 { 1, 84, 121 },
1000 { 1, 51, 67 },
1001 { 1, 16, 6 },
1109 #define DIV_INV(d) ((u32)(((1ULL << 32) + ((d) - 1)) / (d))) in fastdiv()
1148 else if (divisor == 1) in fastdiv()
1163 if (v & 1) in inv_recenter_nonneg()
1164 return m - ((v + 1) >> 1); in inv_recenter_nonneg()
1166 return m + (v >> 1); in inv_recenter_nonneg()
1179 1 + inv_recenter_nonneg(delta, prob - 1) : in update_prob()
1199 p16x16[1] = update_prob(d16x16[1], p16x16[1]); in update_tx_probs()
1201 p32x32[1] = update_prob(d32x32[1], p32x32[1]); in update_tx_probs()
1260 p[1] = update_prob(d[1], p[1]); in update_inter_mode_probs()
1276 p[1] = update_prob(d[1], p[1]); in update_interp_filter_probs()
1311 p[1] = update_prob(d[1], p[1]); in update_frame_reference_mode_probs()
1343 p[1] = update_prob(d[1], p[1]); in update_partition_probs()
1366 p[1] = update_mv_prob(d[1], p[1]); in update_mv_probs()
1393 p[1] = update_mv_prob(d[1], p[1]); in update_mv_probs()
1482 /* 8.4.1 Merge prob process */
1497 prob = clamp(((ct0 << 8) + (den >> 1)) / den, (u32)1, (u32)255); in merge_prob()
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()
1683 *counts->eob[i][j][k][l][m][1], in _adapt_coeff()
1684 *counts->eob[i][j][k][l][m][0] - *counts->eob[i][j][k][l][m][1], 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()
1755 return noncoef_merge_prob(prob, counts[0], counts[1]); in adapt_prob()