Lines Matching refs:ps_pred_ctxt
576 pred_ctxt_t *ps_pred_ctxt,
589 ps_candt_nodes = &ps_pred_ctxt->as_pred_nodes[e_part_id];
602 pred_ctxt_t *ps_pred_ctxt,
620 ps_pred_ctxt->mv_pel = 0; // FPEL
623 ps_pred_ctxt->lambda = lambda;
624 ps_pred_ctxt->lambda_q_shift = lambda_q_shift;
625 ps_pred_ctxt->pred_lx = pred_lx;
626 ps_pred_ctxt->ppu1_ref_bits_tlu = ppu1_ref_bits_tlu;
627 ps_pred_ctxt->pi2_ref_scf = pi2_ref_scf;
628 ps_pred_ctxt->proj_used = 0;
677 ps_pred_ctxt,
696 ps_pred_ctxt,
715 ps_pred_ctxt,
734 ps_pred_ctxt,
753 ps_pred_ctxt,
766 pred_ctxt_t *ps_pred_ctxt,
797 ps_pred_ctxt->lambda = lambda;
798 ps_pred_ctxt->lambda_q_shift = lambda_q_shift;
799 ps_pred_ctxt->pred_lx = pred_lx;
800 ps_pred_ctxt->mv_pel = 0;
801 ps_pred_ctxt->ppu1_ref_bits_tlu = ppu1_ref_bits_tlu;
802 ps_pred_ctxt->pi2_ref_scf = pi2_ref_scf;
803 ps_pred_ctxt->proj_used = 1;
924 ps_pred_ctxt,
940 * pred_ctxt_t *ps_pred_ctxt,
947 * @param[in] ps_pred_ctxt : mv pred context
956 search_node_t *ps_node, pred_ctxt_t *ps_pred_ctxt, PART_ID_T e_part_id, S32 inp_mv_pel)
962 S32 pred_shift = 2 - ps_pred_ctxt->mv_pel;
976 ps_pred_nodes = &ps_pred_ctxt->as_pred_nodes[e_part_id];
977 ref_bits = ps_pred_ctxt->ppu1_ref_bits_tlu[ps_pred_ctxt->pred_lx][ps_node->i1_ref_idx];
1034 S32 rnd = 1 << (ps_pred_ctxt->lambda_q_shift - 1);
1035 return ((cost * ps_pred_ctxt->lambda + rnd) >> ps_pred_ctxt->lambda_q_shift);
1041 * pred_ctxt_t *ps_pred_ctxt,
1048 * @param[in] ps_pred_ctxt : mv pred context
1057 search_node_t *ps_node, pred_ctxt_t *ps_pred_ctxt, PART_ID_T e_part_id, S32 inp_mv_pel)
1061 return (compute_mv_cost_explicit(ps_node, ps_pred_ctxt, PART_ID_2Nx2N, inp_mv_pel));
1067 * pred_ctxt_t *ps_pred_ctxt,
1074 * @param[in] ps_pred_ctxt : mv pred context
1083 search_node_t *ps_node, pred_ctxt_t *ps_pred_ctxt, PART_ID_T e_part_id, S32 inp_mv_pel)
1095 rnd = 1 << (ps_pred_ctxt->lambda_q_shift - 1);
1096 cost = (cost * ps_pred_ctxt->lambda + rnd) >> ps_pred_ctxt->lambda_q_shift;
1103 * pred_ctxt_t *ps_pred_ctxt,
1111 * @param[in] ps_pred_ctxt : mv pred context
1120 search_node_t *ps_node, pred_ctxt_t *ps_pred_ctxt, PART_ID_T e_part_id, S32 inp_mv_pel)
1125 S32 pred_shift = 2 - ps_pred_ctxt->mv_pel;
1130 ps_pred_nodes = &ps_pred_ctxt->as_pred_nodes[e_part_id];
1131 ref_bits = ps_pred_ctxt->ppu1_ref_bits_tlu[ps_pred_ctxt->pred_lx][ps_node->i1_ref_idx];
1144 S32 rnd = 1 << (ps_pred_ctxt->lambda_q_shift - 1);
1145 return ((cost * ps_pred_ctxt->lambda + rnd) >> ps_pred_ctxt->lambda_q_shift);
1152 * pred_ctxt_t *ps_pred_ctxt,
1159 * @param[in] ps_pred_ctxt : mv pred context
1168 search_node_t *ps_node, pred_ctxt_t *ps_pred_ctxt, PART_ID_T e_part_id, S32 inp_mv_pel)
1170 return (compute_mv_cost_explicit_refine(ps_node, ps_pred_ctxt, e_part_id, inp_mv_pel));
1174 search_node_t *ps_node, pred_ctxt_t *ps_pred_ctxt, PART_ID_T e_part_id, S32 inp_mv_pel)
1182 S32 pred_shift; /* = 2 - ps_pred_ctxt->mv_pel;*/
1197 ps_pred_nodes = &ps_pred_ctxt->as_pred_nodes[e_part_id];
1198 ref_bits = ps_pred_ctxt->ppu1_ref_bits_tlu[ps_pred_ctxt->pred_lx][i1_ref_idx];
1262 SCALE_FOR_POC_DELTA(mv_p_x, mv_p_y, ps_pred_node_a, i1_ref_idx, ps_pred_ctxt->pi2_ref_scf);
1276 SCALE_FOR_POC_DELTA(mv_p_x, mv_p_y, ps_pred_node_b, i1_ref_idx, ps_pred_ctxt->pi2_ref_scf);
1300 S32 rnd = 1 << (ps_pred_ctxt->lambda_q_shift);
1301 S32 tot_cost = (cost * ps_pred_ctxt->lambda) << 1;
1303 tot_cost += (gau1_bits_for_part_id_q1[e_part_id] * ps_pred_ctxt->lambda);
1304 return ((tot_cost + rnd) >> (ps_pred_ctxt->lambda_q_shift + 1));
1309 search_node_t *ps_node, pred_ctxt_t *ps_pred_ctxt, PART_ID_T e_part_id, S32 inp_mv_pel)
1317 S32 pred_shift; /* = 2 - ps_pred_ctxt->mv_pel; */
1324 ps_pred_nodes = &ps_pred_ctxt->as_pred_nodes[e_part_id];
1325 ref_bits = ps_pred_ctxt->ppu1_ref_bits_tlu[ps_pred_ctxt->pred_lx][i1_ref_idx];
1343 if((!(ps_pred_ctxt->proj_used) && (ps_pred_nodes->ps_tr->u1_is_avail)))
1363 SCALE_FOR_POC_DELTA(mv_p_x, mv_p_y, ps_pred_node_a, i1_ref_idx, ps_pred_ctxt->pi2_ref_scf);
1378 SCALE_FOR_POC_DELTA(mv_p_x, mv_p_y, ps_pred_node_b, i1_ref_idx, ps_pred_ctxt->pi2_ref_scf);
1403 S32 rnd = 1 << (ps_pred_ctxt->lambda_q_shift - 1);
1404 S32 tot_cost = (cost * ps_pred_ctxt->lambda);
1406 return ((tot_cost + rnd) >> (ps_pred_ctxt->lambda_q_shift));
1411 search_node_t *ps_node, pred_ctxt_t *ps_pred_ctxt, PART_ID_T e_part_id, S32 inp_mv_pel)
1416 S32 pred_shift; /* = 2 - ps_pred_ctxt->mv_pel; */
1421 ps_pred_nodes = &ps_pred_ctxt->as_pred_nodes[e_part_id];
1422 ref_bits = ps_pred_ctxt->ppu1_ref_bits_tlu[ps_pred_ctxt->pred_lx][ps_node->i1_ref_idx];
1436 S32 rnd = 1 << (ps_pred_ctxt->lambda_q_shift - 1);
1437 return ((cost * ps_pred_ctxt->lambda + rnd) >> ps_pred_ctxt->lambda_q_shift);
2198 pred_ctxt_t *ps_pred_ctxt = &ps_search_results->as_pred_ctxt[pred_lx];
2199 pred_candt_nodes_t *ps_pred_nodes = &ps_pred_ctxt->as_pred_nodes[PART_2Nx2N];
2204 S32 lambda_q_shift = ps_pred_ctxt->lambda_q_shift;
2205 S32 lambda = ps_pred_ctxt->lambda;
2210 ps_pred_ctxt
2211 ->ppu1_ref_bits_tlu[ps_pred_ctxt->pred_lx][ps_search_node->i1_ref_idx];
2651 pred_ctxt_t *ps_pred_ctxt = &ps_search_results->as_pred_ctxt[pred_lx];
2652 pred_candt_nodes_t *ps_pred_nodes = &ps_pred_ctxt->as_pred_nodes[PART_2Nx2N];
2657 S32 lambda_q_shift = ps_pred_ctxt->lambda_q_shift;
2658 S32 lambda = ps_pred_ctxt->lambda;
2663 ps_pred_ctxt
2664 ->ppu1_ref_bits_tlu[ps_pred_ctxt->pred_lx][ps_search_node->i1_ref_idx];
2974 pred_ctxt_t *ps_pred_ctxt = &ps_search_results->as_pred_ctxt[pred_lx];
2975 pred_candt_nodes_t *ps_pred_nodes = &ps_pred_ctxt->as_pred_nodes[PART_2Nx2N];
2980 S32 lambda_q_shift = ps_pred_ctxt->lambda_q_shift;
2981 S32 lambda = ps_pred_ctxt->lambda;
2986 ps_pred_ctxt
2987 ->ppu1_ref_bits_tlu[ps_pred_ctxt->pred_lx][ps_search_node->i1_ref_idx];
3227 pred_ctxt_t *ps_pred_ctxt = &ps_search_results->as_pred_ctxt[pred_lx];
3228 pred_candt_nodes_t *ps_pred_nodes = &ps_pred_ctxt->as_pred_nodes[PART_2Nx2N];
3233 S32 lambda_q_shift = ps_pred_ctxt->lambda_q_shift;
3234 S32 lambda = ps_pred_ctxt->lambda;
3239 ps_pred_ctxt
3240 ->ppu1_ref_bits_tlu[ps_pred_ctxt->pred_lx][ps_search_node->i1_ref_idx];
3710 pred_ctxt_t *ps_pred_ctxt = &ps_search_results->as_pred_ctxt[u1_pred_lx];
3711 pred_candt_nodes_t *ps_pred_nodes = ps_pred_ctxt->as_pred_nodes;
3720 ref_bits = ps_pred_ctxt->ppu1_ref_bits_tlu[u1_pred_lx][u1_default_ref_id];
3731 if((!(ps_pred_ctxt->proj_used) && (ps_pred_nodes->ps_tr->u1_is_avail)))
3756 mv_p_x, mv_p_y, ps_pred_node_a, u1_default_ref_id, ps_pred_ctxt->pi2_ref_scf);
3771 mv_p_x, mv_p_y, ps_pred_node_b, u1_default_ref_id, ps_pred_ctxt->pi2_ref_scf);