Lines Matching refs:CNT_NEAREST
921 enum { CNT_ZERO, CNT_NEAREST, CNT_NEAR };
946 if (AV_RN32A(&near_mv[CNT_NEAREST])) {
947 if (mv == AV_RN32A(&near_mv[CNT_NEAREST])) {
948 idx = CNT_NEAREST;
958 AV_WN32A(&near_mv[CNT_NEAREST], mv);
959 idx = CNT_NEAREST;
975 if (vp56_rac_get_prob_branchy(c, vp7_mode_contexts[cnt[CNT_NEAREST]][1])) {
979 if (cnt[CNT_NEAREST] > cnt[CNT_NEAR])
980 AV_WN32A(&mb->mv, cnt[CNT_ZERO] > cnt[CNT_NEAREST] ? 0 : AV_RN32A(&near_mv[CNT_NEAREST]));
997 mb->mv = near_mv[CNT_NEAREST];
1014 enum { CNT_ZERO, CNT_NEAREST, CNT_NEAR, CNT_SPLITMV };
1068 cnt[CNT_NEAREST] += 1;
1071 if (cnt[CNT_NEAR] > cnt[CNT_NEAREST]) {
1072 FFSWAP(uint8_t, cnt[CNT_NEAREST], cnt[CNT_NEAR]);
1073 FFSWAP( VP56mv, near_mv[CNT_NEAREST], near_mv[CNT_NEAR]);
1076 if (vp56_rac_get_prob_branchy(c, vp8_mode_contexts[cnt[CNT_NEAREST]][1])) {
1079 clamp_mv(s, &mb->mv, &near_mv[CNT_ZERO + (cnt[CNT_NEAREST] >= cnt[CNT_ZERO])]);
1097 clamp_mv(s, &mb->mv, &near_mv[CNT_NEAREST]);