Lines Matching refs:S32
124 get_ctb_attrs(S32 ctb_start_x, S32 ctb_start_y, S32 pic_wd, S32 pic_ht, me_frm_ctxt_t *ps_ctxt);
130 S32 i4_pos_x,
131 S32 i4_pos_y,
133 S32 i4_result_id);
139 S32 i4_pos_x,
140 S32 i4_pos_y,
141 S32 i4_num_act_ref_l0,
144 S32 i4_result_id);
284 S32 i4_num_cands_added, in hme_add_me_best_as_merge_cands()
584 S32 i4_search_idx, in hme_pick_eval_merge_candts()
585 S32 i4_best_part_type, in hme_pick_eval_merge_candts()
586 S32 i4_is_vert, in hme_pick_eval_merge_candts()
588 S32 i4_frm_qstep, in hme_pick_eval_merge_candts()
592 S32 x_off, y_off; in hme_pick_eval_merge_candts()
594 S32 ai4_valid_part_ids[TOT_NUM_PARTS + 1]; in hme_pick_eval_merge_candts()
595 S32 i4_num_valid_parts; in hme_pick_eval_merge_candts()
599 S32 num_unique_nodes_cu_merge = 0; in hme_pick_eval_merge_candts()
603 S32 i4_part_mask = ps_search_results->i4_part_mask; in hme_pick_eval_merge_candts()
608 S32 i4_ref_stride, i, j; in hme_pick_eval_merge_candts()
612 S32 i4_offset; in hme_pick_eval_merge_candts()
619 S32 ai4_sad_grid[9][17]; in hme_pick_eval_merge_candts()
632 S32 i4_interp_buf_id; in hme_pick_eval_merge_candts()
634 S32 i4_ctb_x_off = ps_merge_prms->i4_ctb_x_off; in hme_pick_eval_merge_candts()
635 S32 i4_ctb_y_off = ps_merge_prms->i4_ctb_y_off; in hme_pick_eval_merge_candts()
697 for(part_num = 0; part_num < gau1_num_parts_in_part_type[((S32)e_part_type)]; in hme_pick_eval_merge_candts()
741 for(part_num = 0; part_num < gau1_num_parts_in_part_type[((S32)e_part_type)]; in hme_pick_eval_merge_candts()
988 S32 i; in hme_try_merge_high_speed()
989 S32 i4_search_idx; in hme_try_merge_high_speed()
990 S32 i4_cost_parent; in hme_try_merge_high_speed()
991 S32 intra_cu_size; in hme_try_merge_high_speed()
997 S32 i4_part_mask = ENABLE_ALL_PARTS - ENABLE_NxN; in hme_try_merge_high_speed()
998 S32 is_vert = 0, i4_best_part_type = -1; in hme_try_merge_high_speed()
999 S32 i4_intra_parts = 0; /* Keeps track of intra percentage before merge */ in hme_try_merge_high_speed()
1000 S32 i4_cost_children = 0; in hme_try_merge_high_speed()
1001 S32 i4_frm_qstep = ps_ctxt->frm_qstep; in hme_try_merge_high_speed()
1002 S32 i4_num_merge_cands_evaluated = 0; in hme_try_merge_high_speed()
1005 S32 i4_32x32_id = (u1_y_off >> 4) + (u1_x_off >> 5); in hme_try_merge_high_speed()
1048 S32 num_parts_in_32x32 = 0; in hme_try_merge_high_speed()
1250 S32 i4_merge_outcome; in hme_try_merge_high_speed()
1318 S32 ai4_valid_part_ids[TOT_NUM_PARTS + 1]; in hme_try_merge_high_speed()
1319 S32 i4_num_valid_parts; in hme_try_merge_high_speed()
1320 S32 i4_sigma_array_offset; in hme_try_merge_high_speed()
1334 S32 i4_part_id = ai4_valid_part_ids[i]; in hme_try_merge_high_speed()
1357 S32 i4_cands; in hme_try_merge_high_speed()
1521 S32 i4_search_blk_x, in hme_update_mv_bank_noencode()
1522 S32 i4_search_blk_y, in hme_update_mv_bank_noencode()
1528 S32 i4_blk_x, i4_blk_y, i4_offset; in hme_update_mv_bank_noencode()
1529 S32 i4_j, i4_ref_id; in hme_update_mv_bank_noencode()
1553 for(i4_ref_id = 0; i4_ref_id < (S32)ps_prms->i4_num_ref; i4_ref_id++) in hme_update_mv_bank_noencode()
1592 for(i4_ref_id = 0; i4_ref_id < (S32)ps_search_results->u1_num_active_ref; i4_ref_id++) in hme_update_mv_bank_noencode()
1662 S32 i4_search_blk_x, in hme_update_mv_bank_encode()
1663 S32 i4_search_blk_y, in hme_update_mv_bank_encode()
1666 S32 i4_num_act_ref_l0) in hme_update_mv_bank_encode()
1671 S32 i4_blk_x, i4_blk_y, i4_offset; in hme_update_mv_bank_encode()
1672 S32 j, i, num_parts; in hme_update_mv_bank_encode()
1894 S32 i4_search_blk_x, in hme_update_mv_bank_in_l1_me()
1895 S32 i4_search_blk_y, in hme_update_mv_bank_in_l1_me()
1901 S32 i4_blk_x, i4_blk_y, i4_offset; in hme_update_mv_bank_in_l1_me()
1902 S32 i4_j, i4_ref_id; in hme_update_mv_bank_in_l1_me()
1937 for(i4_ref_id = 0; i4_ref_id < (S32)ps_prms->i4_num_ref; i4_ref_id++) in hme_update_mv_bank_in_l1_me()
1967 for(i4_j = 0; i4_j < (S32)u4_num_l0_results_updated; i4_j++) in hme_update_mv_bank_in_l1_me()
1976 for(i4_j = 0; i4_j < (S32)u4_num_l1_results_updated; i4_j++) in hme_update_mv_bank_in_l1_me()
2017 S32 i; in hme_update_mv_bank_in_l1_me()
2149 MIN((S32)u4_num_l0_results_updated, in hme_update_mv_bank_in_l1_me()
2153 MIN((S32)u4_num_l1_results_updated, in hme_update_mv_bank_in_l1_me()
2156 for(i4_j = 0; i4_j < (S32)u4_num_l0_results_updated; i4_j++) in hme_update_mv_bank_in_l1_me()
2165 for(i4_j = 0; i4_j < (S32)u4_num_l1_results_updated; i4_j++) in hme_update_mv_bank_in_l1_me()
2222 S32 i4_pos_x, in hme_project_coloc_candt()
2223 S32 i4_pos_y, in hme_project_coloc_candt()
2225 S32 i4_result_id) in hme_project_coloc_candt()
2227 S32 wd_c, ht_c, wd_p, ht_p; in hme_project_coloc_candt()
2228 S32 blksize_p, blk_x, blk_y, i4_offset; in hme_project_coloc_candt()
2240 blksize_p = (S32)gau1_blk_size_to_wd[ps_layer_mvbank->e_blk_size]; in hme_project_coloc_candt()
2309 S32 i4_pos_x, in hme_project_coloc_candt_dyadic()
2310 S32 i4_pos_y, in hme_project_coloc_candt_dyadic()
2312 S32 i4_result_id) in hme_project_coloc_candt_dyadic()
2314 S32 wd_c, ht_c, wd_p, ht_p; in hme_project_coloc_candt_dyadic()
2315 S32 blksize_p, blk_x, blk_y, i4_offset; in hme_project_coloc_candt_dyadic()
2328 blksize_p = (S32)gau1_blk_size_to_wd_shift[ps_layer_mvbank->e_blk_size]; in hme_project_coloc_candt_dyadic()
2367 S32 i4_pos_x, in hme_project_coloc_candt_dyadic_implicit()
2368 S32 i4_pos_y, in hme_project_coloc_candt_dyadic_implicit()
2369 S32 i4_num_act_ref_l0, in hme_project_coloc_candt_dyadic_implicit()
2372 S32 i4_result_id) in hme_project_coloc_candt_dyadic_implicit()
2374 S32 wd_c, ht_c, wd_p, ht_p; in hme_project_coloc_candt_dyadic_implicit()
2375 S32 blksize_p, blk_x, blk_y, i4_offset; in hme_project_coloc_candt_dyadic_implicit()
2387 blksize_p = (S32)gau1_blk_size_to_wd_shift[ps_layer_mvbank->e_blk_size]; in hme_project_coloc_candt_dyadic_implicit()
2459 S32 i4_num_ref_fpel, i4_num_ref_prev_layer; in hme_refine_frm_init()
2504 hme_init_clusters_16x16(cluster_16x16_blk_t *ps_cluster_blk_16x16, S32 bidir_enabled) in hme_init_clusters_16x16()
2506 S32 i; in hme_init_clusters_16x16()
2544 hme_init_clusters_32x32(cluster_32x32_blk_t *ps_cluster_blk_32x32, S32 bidir_enabled) in hme_init_clusters_32x32()
2546 S32 i; in hme_init_clusters_32x32()
2586 hme_init_clusters_64x64(cluster_64x64_blk_t *ps_cluster_blk_64x64, S32 bidir_enabled) in hme_init_clusters_64x64()
2588 S32 i; in hme_init_clusters_64x64()
2633 ctb_cluster_info_t *ps_ctb_cluster_info, S32 bidir_enabled, S32 block_width, CU_POS_T e_cu_pos) in hme_sort_and_assign_top_ref_ids_areawise()
2639 S32 j, k; in hme_sort_and_assign_top_ref_ids_areawise()
2641 S32 ai4_uni_area[MAX_NUM_REF]; in hme_sort_and_assign_top_ref_ids_areawise()
2642 S32 ai4_bi_area[MAX_NUM_REF]; in hme_sort_and_assign_top_ref_ids_areawise()
2643 S32 ai4_ref_id_found[MAX_NUM_REF]; in hme_sort_and_assign_top_ref_ids_areawise()
2644 S32 ai4_ref_id[MAX_NUM_REF]; in hme_sort_and_assign_top_ref_ids_areawise()
2646 S32 best_uni_ref = -1, best_alt_ref = -1; in hme_sort_and_assign_top_ref_ids_areawise()
2647 S32 num_clusters; in hme_sort_and_assign_top_ref_ids_areawise()
2648 S32 num_ref = 0; in hme_sort_and_assign_top_ref_ids_areawise()
2649 S32 num_clusters_evaluated = 0; in hme_sort_and_assign_top_ref_ids_areawise()
2650 S32 is_cur_blk_valid; in hme_sort_and_assign_top_ref_ids_areawise()
2682 memset(ai4_uni_area, 0, sizeof(S32) * MAX_NUM_REF); in hme_sort_and_assign_top_ref_ids_areawise()
2683 memset(ai4_bi_area, 0, sizeof(S32) * MAX_NUM_REF); in hme_sort_and_assign_top_ref_ids_areawise()
2684 memset(ai4_ref_id_found, 0, sizeof(S32) * MAX_NUM_REF); in hme_sort_and_assign_top_ref_ids_areawise()
2685 memset(ai4_ref_id, -1, sizeof(S32) * MAX_NUM_REF); in hme_sort_and_assign_top_ref_ids_areawise()
2689 S32 ref_id; in hme_sort_and_assign_top_ref_ids_areawise()
2712 S32 ai4_ref_id_temp[MAX_NUM_REF]; in hme_sort_and_assign_top_ref_ids_areawise()
2714 memcpy(ai4_ref_id_temp, ai4_ref_id, sizeof(S32) * MAX_NUM_REF); in hme_sort_and_assign_top_ref_ids_areawise()
2720 SWAP_HME(ai4_uni_area[k], ai4_uni_area[0], S32); in hme_sort_and_assign_top_ref_ids_areawise()
2721 SWAP_HME(ai4_ref_id_temp[k], ai4_ref_id_temp[0], S32); in hme_sort_and_assign_top_ref_ids_areawise()
2734 SWAP_HME(ai4_bi_area[k], ai4_bi_area[0], S32); in hme_sort_and_assign_top_ref_ids_areawise()
2735 SWAP_HME(ai4_ref_id[k], ai4_ref_id[0], S32); in hme_sort_and_assign_top_ref_ids_areawise()
2761 SWAP_HME(ai4_bi_area[k], ai4_bi_area[1], S32); in hme_sort_and_assign_top_ref_ids_areawise()
2762 SWAP_HME(ai4_ref_id[k], ai4_ref_id[1], S32); in hme_sort_and_assign_top_ref_ids_areawise()
2799 ctb_cluster_info_t *ps_ctb_cluster_info, S32 bidir_enabled, S32 block_width) in hme_find_top_ref_ids()
2801 S32 i; in hme_find_top_ref_ids()
2832 void hme_boot_out_outlier(ctb_cluster_info_t *ps_ctb_cluster_info, S32 blk_width) in hme_boot_out_outlier()
2836 S32 i; in hme_boot_out_outlier()
2840 S32 sdi_threshold = ps_ctb_cluster_info->sdi_threshold; in hme_boot_out_outlier()
2892 S32 mvx, in hme_update_cluster_attributes()
2893 S32 mvy, in hme_update_cluster_attributes()
2894 S32 mvdx, in hme_update_cluster_attributes()
2895 S32 mvdy, in hme_update_cluster_attributes()
2896 S32 ref_id, in hme_update_cluster_attributes()
2897 S32 sdi, in hme_update_cluster_attributes()
2904 S32 centroid_posx_q8 = ps_cluster_data->s_centroid.i4_pos_x_q8; in hme_update_cluster_attributes()
2905 S32 centroid_posy_q8 = ps_cluster_data->s_centroid.i4_pos_y_q8; in hme_update_cluster_attributes()
2926 S32 num_mvs = ps_cluster_data->num_mvs; in hme_update_cluster_attributes()
2985 cluster_data_t *ps_cluster_data, U08 *pu1_num_clusters, S32 idx_of_updated_cluster) in hme_try_cluster_merge()
2989 S32 cur_pos_x_q8; in hme_try_cluster_merge()
2990 S32 cur_pos_y_q8; in hme_try_cluster_merge()
2991 S32 i; in hme_try_cluster_merge()
2992 S32 max_dist_from_centroid; in hme_try_cluster_merge()
2993 S32 mvd; in hme_try_cluster_merge()
2994 S32 mvdx_q8; in hme_try_cluster_merge()
2995 S32 mvdx; in hme_try_cluster_merge()
2996 S32 mvdy_q8; in hme_try_cluster_merge()
2997 S32 mvdy; in hme_try_cluster_merge()
2998 S32 num_clusters, num_clusters_evaluated; in hme_try_cluster_merge()
2999 S32 other_pos_x_q8; in hme_try_cluster_merge()
3000 S32 other_pos_y_q8; in hme_try_cluster_merge()
3049 S32 minmax_x_update_id; in hme_try_cluster_merge()
3050 S32 minmax_y_update_id; in hme_try_cluster_merge()
3088 S32 mvd, mvd_q8; in hme_try_cluster_merge()
3103 S32 mvd, mvd_q8; in hme_try_cluster_merge()
3118 S32 mvd, mvd_q8; in hme_try_cluster_merge()
3133 S32 mvd; in hme_try_cluster_merge()
3134 S32 mvdx, mvdx_q8; in hme_try_cluster_merge()
3135 S32 mvdy, mvdy_q8; in hme_try_cluster_merge()
3156 S32 mvd; in hme_try_cluster_merge()
3157 S32 mvdx, mvdx_q8; in hme_try_cluster_merge()
3158 S32 mvdy, mvdy_q8; in hme_try_cluster_merge()
3179 S32 mvd, mvd_q8; in hme_try_cluster_merge()
3194 S32 mvd; in hme_try_cluster_merge()
3195 S32 mvdx, mvdx_q8; in hme_try_cluster_merge()
3196 S32 mvdy, mvdy_q8; in hme_try_cluster_merge()
3217 S32 mvd; in hme_try_cluster_merge()
3218 S32 mvdx, mvdx_q8; in hme_try_cluster_merge()
3219 S32 mvdy, mvdy_q8; in hme_try_cluster_merge()
3288 S32 i4_sdi, in hme_find_and_update_clusters()
3292 S32 i; in hme_find_and_update_clusters()
3293 S32 min_mvd_cluster_id = -1; in hme_find_and_update_clusters()
3294 S32 mvd, mvd_limit, mvdx, mvdy; in hme_find_and_update_clusters()
3295 S32 min_mvdx, min_mvdy; in hme_find_and_update_clusters()
3297 S32 min_mvd = MAX_32BIT_VAL; in hme_find_and_update_clusters()
3298 S32 num_clusters = *pu1_num_clusters; in hme_find_and_update_clusters()
3300 S32 mvx = i2_mv_x; in hme_find_and_update_clusters()
3301 S32 mvy = i2_mv_y; in hme_find_and_update_clusters()
3302 S32 ref_idx = i1_ref_idx; in hme_find_and_update_clusters()
3303 S32 sdi = i4_sdi; in hme_find_and_update_clusters()
3304 S32 new_cluster_idx = MAX_NUM_CLUSTERS_16x16; in hme_find_and_update_clusters()
3342 S32 num_clusters_evaluated = 0; in hme_find_and_update_clusters()
3350 S32 mvx_q8; in hme_find_and_update_clusters()
3351 S32 mvy_q8; in hme_find_and_update_clusters()
3352 S32 posx_q8; in hme_find_and_update_clusters()
3353 S32 posy_q8; in hme_find_and_update_clusters()
3354 S32 mvdx_q8; in hme_find_and_update_clusters()
3355 S32 mvdy_q8; in hme_find_and_update_clusters()
3482 S32 i; in hme_update_32x32_cluster_attributes()
3483 S32 mvd_limit; in hme_update_32x32_cluster_attributes()
3485 S32 num_clusters = ps_blk_32x32->num_clusters; in hme_update_32x32_cluster_attributes()
3520 S32 cur_posx_q8, cur_posy_q8; in hme_update_32x32_cluster_attributes()
3521 S32 min_mvd_cluster_id = -1; in hme_update_32x32_cluster_attributes()
3522 S32 mvd; in hme_update_32x32_cluster_attributes()
3523 S32 mvdx; in hme_update_32x32_cluster_attributes()
3524 S32 mvdy; in hme_update_32x32_cluster_attributes()
3525 S32 mvdx_min; in hme_update_32x32_cluster_attributes()
3526 S32 mvdy_min; in hme_update_32x32_cluster_attributes()
3527 S32 mvdx_q8; in hme_update_32x32_cluster_attributes()
3528 S32 mvdy_q8; in hme_update_32x32_cluster_attributes()
3530 S32 num_clusters_evaluated = 0; in hme_update_32x32_cluster_attributes()
3532 S32 mvd_min = MAX_32BIT_VAL; in hme_update_32x32_cluster_attributes()
3534 S32 mvx_inp_q8 = ps_cluster_data->s_centroid.i4_pos_x_q8; in hme_update_32x32_cluster_attributes()
3535 S32 mvy_inp_q8 = ps_cluster_data->s_centroid.i4_pos_y_q8; in hme_update_32x32_cluster_attributes()
3629 S32 mvd, mvd_q8; in hme_update_32x32_cluster_attributes()
3642 S32 mvd, mvd_q8; in hme_update_32x32_cluster_attributes()
3655 S32 mvd, mvd_q8; in hme_update_32x32_cluster_attributes()
3668 S32 mvd; in hme_update_32x32_cluster_attributes()
3669 S32 mvdx, mvdx_q8; in hme_update_32x32_cluster_attributes()
3670 S32 mvdy, mvdy_q8; in hme_update_32x32_cluster_attributes()
3688 S32 mvd; in hme_update_32x32_cluster_attributes()
3689 S32 mvdx, mvdx_q8; in hme_update_32x32_cluster_attributes()
3690 S32 mvdy, mvdy_q8; in hme_update_32x32_cluster_attributes()
3708 S32 mvd, mvd_q8; in hme_update_32x32_cluster_attributes()
3721 S32 mvd; in hme_update_32x32_cluster_attributes()
3722 S32 mvdx, mvdx_q8; in hme_update_32x32_cluster_attributes()
3723 S32 mvdy, mvdy_q8; in hme_update_32x32_cluster_attributes()
3741 S32 mvd; in hme_update_32x32_cluster_attributes()
3742 S32 mvdx, mvdx_q8; in hme_update_32x32_cluster_attributes()
3743 S32 mvdy, mvdy_q8; in hme_update_32x32_cluster_attributes()
3830 S32 i; in hme_update_64x64_cluster_attributes()
3831 S32 mvd_limit; in hme_update_64x64_cluster_attributes()
3833 S32 num_clusters = ps_blk_64x64->num_clusters; in hme_update_64x64_cluster_attributes()
3868 S32 cur_posx_q8, cur_posy_q8; in hme_update_64x64_cluster_attributes()
3869 S32 min_mvd_cluster_id = -1; in hme_update_64x64_cluster_attributes()
3870 S32 mvd; in hme_update_64x64_cluster_attributes()
3871 S32 mvdx; in hme_update_64x64_cluster_attributes()
3872 S32 mvdy; in hme_update_64x64_cluster_attributes()
3873 S32 mvdx_min; in hme_update_64x64_cluster_attributes()
3874 S32 mvdy_min; in hme_update_64x64_cluster_attributes()
3875 S32 mvdx_q8; in hme_update_64x64_cluster_attributes()
3876 S32 mvdy_q8; in hme_update_64x64_cluster_attributes()
3878 S32 num_clusters_evaluated = 0; in hme_update_64x64_cluster_attributes()
3880 S32 mvd_min = MAX_32BIT_VAL; in hme_update_64x64_cluster_attributes()
3882 S32 mvx_inp_q8 = ps_cluster_data->s_centroid.i4_pos_x_q8; in hme_update_64x64_cluster_attributes()
3883 S32 mvy_inp_q8 = ps_cluster_data->s_centroid.i4_pos_y_q8; in hme_update_64x64_cluster_attributes()
3978 S32 mvd, mvd_q8; in hme_update_64x64_cluster_attributes()
3991 S32 mvd, mvd_q8; in hme_update_64x64_cluster_attributes()
4004 S32 mvd, mvd_q8; in hme_update_64x64_cluster_attributes()
4017 S32 mvd; in hme_update_64x64_cluster_attributes()
4018 S32 mvdx, mvdx_q8; in hme_update_64x64_cluster_attributes()
4019 S32 mvdy, mvdy_q8; in hme_update_64x64_cluster_attributes()
4037 S32 mvd; in hme_update_64x64_cluster_attributes()
4038 S32 mvdx, mvdx_q8; in hme_update_64x64_cluster_attributes()
4039 S32 mvdy, mvdy_q8; in hme_update_64x64_cluster_attributes()
4057 S32 mvd, mvd_q8; in hme_update_64x64_cluster_attributes()
4070 S32 mvd; in hme_update_64x64_cluster_attributes()
4071 S32 mvdx, mvdx_q8; in hme_update_64x64_cluster_attributes()
4072 S32 mvdy, mvdy_q8; in hme_update_64x64_cluster_attributes()
4090 S32 mvd; in hme_update_64x64_cluster_attributes()
4091 S32 mvdx, mvdx_q8; in hme_update_64x64_cluster_attributes()
4092 S32 mvdy, mvdy_q8; in hme_update_64x64_cluster_attributes()
4180 S32 i, j; in hme_update_32x32_clusters()
4181 S32 num_clusters_cur_16x16_blk; in hme_update_32x32_clusters()
4185 S32 num_clusters_evaluated = 0; in hme_update_32x32_clusters()
4235 S32 i, j; in hme_update_64x64_clusters()
4236 S32 num_clusters_cur_32x32_blk; in hme_update_64x64_clusters()
4240 S32 num_clusters_evaluated = 0; in hme_update_64x64_clusters()
4282 S32 hme_try_merge_clusters_blksize_gt_16(cluster_data_t *ps_cluster_data, S32 num_clusters) in hme_try_merge_clusters_blksize_gt_16()
4287 S32 i, mvd; in hme_try_merge_clusters_blksize_gt_16()
4288 S32 mvdx, mvdy, mvdx_q8, mvdy_q8; in hme_try_merge_clusters_blksize_gt_16()
4292 S32 mvd_limit = ps_cluster_data->max_dist_from_centroid; in hme_try_merge_clusters_blksize_gt_16()
4293 S32 ref_id = ps_cluster_data->ref_id; in hme_try_merge_clusters_blksize_gt_16()
4295 S32 node0_posx_q8 = ps_centroid->i4_pos_x_q8; in hme_try_merge_clusters_blksize_gt_16()
4296 S32 node0_posy_q8 = ps_centroid->i4_pos_y_q8; in hme_try_merge_clusters_blksize_gt_16()
4297 S32 num_clusters_evaluated = 1; in hme_try_merge_clusters_blksize_gt_16()
4298 S32 ret_value = 0; in hme_try_merge_clusters_blksize_gt_16()
4307 S32 cur_posx_q8; in hme_try_merge_clusters_blksize_gt_16()
4308 S32 cur_posy_q8; in hme_try_merge_clusters_blksize_gt_16()
4382 S32 mvd, mvd_q8; in hme_try_merge_clusters_blksize_gt_16()
4395 S32 mvd, mvd_q8; in hme_try_merge_clusters_blksize_gt_16()
4408 S32 mvd, mvd_q8; in hme_try_merge_clusters_blksize_gt_16()
4421 S32 mvd; in hme_try_merge_clusters_blksize_gt_16()
4422 S32 mvdx, mvdx_q8; in hme_try_merge_clusters_blksize_gt_16()
4423 S32 mvdy, mvdy_q8; in hme_try_merge_clusters_blksize_gt_16()
4441 S32 mvd; in hme_try_merge_clusters_blksize_gt_16()
4442 S32 mvdx, mvdx_q8; in hme_try_merge_clusters_blksize_gt_16()
4443 S32 mvdy, mvdy_q8; in hme_try_merge_clusters_blksize_gt_16()
4461 S32 mvd, mvd_q8; in hme_try_merge_clusters_blksize_gt_16()
4474 S32 mvd; in hme_try_merge_clusters_blksize_gt_16()
4475 S32 mvdx, mvdx_q8; in hme_try_merge_clusters_blksize_gt_16()
4476 S32 mvdy, mvdy_q8; in hme_try_merge_clusters_blksize_gt_16()
4494 S32 mvd; in hme_try_merge_clusters_blksize_gt_16()
4495 S32 mvdx, mvdx_q8; in hme_try_merge_clusters_blksize_gt_16()
4496 S32 mvdy, mvdy_q8; in hme_try_merge_clusters_blksize_gt_16()
4582 __inline S32 hme_determine_validity_32x32( in hme_determine_validity_32x32()
4584 S32 *pi4_children_nodes_required, in hme_determine_validity_32x32()
4585 S32 blk_validity_wrt_pic_bndry, in hme_determine_validity_32x32()
4586 S32 parent_blk_validity_wrt_pic_bndry) in hme_determine_validity_32x32()
4593 S32 num_clusters = ps_32x32_blk->num_clusters; in hme_determine_validity_32x32()
4594 S32 num_clusters_parent = ps_64x64_blk->num_clusters; in hme_determine_validity_32x32()
4635 S32 i; in hme_determine_validity_32x32()
4637 S32 area_of_parent = gai4_partition_area[PART_ID_2Nx2N] << 4; in hme_determine_validity_32x32()
4638 S32 min_area = MAX_32BIT_VAL; in hme_determine_validity_32x32()
4639 S32 num_clusters_evaluated = 0; in hme_determine_validity_32x32()
4687 __inline S32 hme_determine_validity_16x16( in hme_determine_validity_16x16()
4689 S32 *pi4_children_nodes_required, in hme_determine_validity_16x16()
4690 S32 blk_validity_wrt_pic_bndry, in hme_determine_validity_16x16()
4691 S32 parent_blk_validity_wrt_pic_bndry) in hme_determine_validity_16x16()
4699 S32 num_clusters = ps_16x16_blk->num_clusters; in hme_determine_validity_16x16()
4700 S32 num_clusters_parent = ps_32x32_blk->num_clusters; in hme_determine_validity_16x16()
4701 S32 num_clusters_grandparent = ps_64x64_blk->num_clusters; in hme_determine_validity_16x16()
4754 S32 i; in hme_determine_validity_16x16()
4756 S32 area_of_parent = gai4_partition_area[PART_ID_2Nx2N] << 2; in hme_determine_validity_16x16()
4757 S32 min_area = MAX_32BIT_VAL; in hme_determine_validity_16x16()
4758 S32 num_clusters_evaluated = 0; in hme_determine_validity_16x16()
4824 S32 tree_depth, in hme_build_cu_tree()
4856 __inline S32
4857 hme_sdi_based_cluster_spread_eligibility(cluster_32x32_blk_t *ps_blk_32x32, S32 sdi_threshold) in hme_sdi_based_cluster_spread_eligibility()
4859 S32 cumulative_mv_distance; in hme_sdi_based_cluster_spread_eligibility()
4860 S32 i, j; in hme_sdi_based_cluster_spread_eligibility()
4861 S32 num_high_sdi_mvs; in hme_sdi_based_cluster_spread_eligibility()
4863 S32 num_clusters = ps_blk_32x32->num_clusters; in hme_sdi_based_cluster_spread_eligibility()
4933 S32 tree_depth, in hme_populate_cu_tree()
4939 S32 area_of_cur_blk; in hme_populate_cu_tree()
4940 S32 area_limit_for_me_decision_precedence; in hme_populate_cu_tree()
4941 S32 children_nodes_required; in hme_populate_cu_tree()
4942 S32 intra_mv_area; in hme_populate_cu_tree()
4943 S32 intra_eval_enable; in hme_populate_cu_tree()
4944 S32 inter_eval_enable; in hme_populate_cu_tree()
4945 S32 ipe_decision_precedence; in hme_populate_cu_tree()
4946 S32 node_validity; in hme_populate_cu_tree()
4947 S32 num_clusters; in hme_populate_cu_tree()
4961 S32 blk_32x32_mask = ps_ctb_cluster_info->blk_32x32_mask; in hme_populate_cu_tree()
4993 S32 i; in hme_populate_cu_tree()
5015 S32 is_percent_intra_area_gt_threshold; in hme_populate_cu_tree()
5019 S32 blk_32x32_mask = ps_ctb_cluster_info->blk_32x32_mask; in hme_populate_cu_tree()
5022 S32 best_inter_cost = ps_blk_32x32->best_inter_cost; in hme_populate_cu_tree()
5023 S32 best_intra_cost = in hme_populate_cu_tree()
5031 S32 best_cost = (best_inter_cost > best_intra_cost) ? best_intra_cost : best_inter_cost; in hme_populate_cu_tree()
5032 S32 cost_differential = (best_inter_cost - best_cost); in hme_populate_cu_tree()
5064 S32 i; in hme_populate_cu_tree()
5102 S32 blk_8x8_mask = in hme_populate_cu_tree()
5103 ps_ctb_cluster_info->pi4_blk_8x8_mask[(S32)(e_parent_blk_pos << 2) + e_cur_blk_pos]; in hme_populate_cu_tree()
5120 ->au1_is_16x16_blk_split[(S32)(e_parent_blk_pos << 2) + e_cur_blk_pos]; in hme_populate_cu_tree()
5166 ->au1_is_16x16_blk_split[(S32)(e_parent_blk_pos << 2) + e_cur_blk_pos]; in hme_populate_cu_tree()
5177 S32 merge_flag_16 = (ps_cur_ipe_ctb->as_intra32_analyse[e_parent_blk_pos] in hme_populate_cu_tree()
5180 S32 valid_flag = (blk_8x8_mask == 0xf); in hme_populate_cu_tree()
5194 S32 blk_8x8_mask = in hme_populate_cu_tree()
5196 ->pi4_blk_8x8_mask[(S32)(e_grandparent_blk_pos << 2) + e_parent_blk_pos]; in hme_populate_cu_tree()
5197 S32 merge_flag_16 = (ps_cur_ipe_ctb->as_intra32_analyse[e_grandparent_blk_pos] in hme_populate_cu_tree()
5200 S32 merge_flag_32 = in hme_populate_cu_tree()
5368 S32 bidir_enabled, in hme_analyse_mv_clustering()
5382 S32 enable_64x64_merge; in hme_analyse_mv_clustering()
5383 S32 i, j, k; in hme_analyse_mv_clustering()
5384 S32 mvx, mvy; in hme_analyse_mv_clustering()
5385 S32 num_parts; in hme_analyse_mv_clustering()
5386 S32 ref_idx; in hme_analyse_mv_clustering()
5387 S32 ai4_pred_mode[MAX_NUM_PARTS]; in hme_analyse_mv_clustering()
5389 S32 num_32x32_merges = 0; in hme_analyse_mv_clustering()
5467 S32 blk_8x8_mask; in hme_analyse_mv_clustering()
5468 S32 is_16x16_blk_valid; in hme_analyse_mv_clustering()
5469 S32 num_clusters_updated; in hme_analyse_mv_clustering()
5470 S32 num_clusters; in hme_analyse_mv_clustering()
5483 S32 blk_8x8_idx = i << 2; in hme_analyse_mv_clustering()
5523 S32 num_mvs = ((ai4_pred_mode[j] > 1) + 1); in hme_analyse_mv_clustering()
5552 S32 is_l0_mv = ((ai4_pred_mode[j] == 2) && !k) || (ai4_pred_mode[j] == 0); in hme_analyse_mv_clustering()
5586 S32 num_clusters_merged; in hme_analyse_mv_clustering()
5588 S32 is_32x32_blk_valid = (ps_ctb_cluster_info->blk_32x32_mask & (1 << i)) || 0; in hme_analyse_mv_clustering()
5691 S32 num_clusters_merged; in hme_analyse_mv_clustering()
5727 S32 best_inter_cost = ps_blk_64x64->best_inter_cost; in hme_analyse_mv_clustering()
5728 S32 best_intra_cost = in hme_analyse_mv_clustering()
5736 S32 best_cost = (best_inter_cost > best_intra_cost) ? best_intra_cost : best_inter_cost; in hme_analyse_mv_clustering()
5737 S32 cost_differential = (best_inter_cost - best_cost); in hme_analyse_mv_clustering()
5777 S32 i4_num_pred_dir, in hme_merge_prms_init()
5778 S32 i4_32x32_id, in hme_merge_prms_init()
5782 S32 i4_use_rec = ps_refine_prms->i4_use_rec_in_fpel; in hme_merge_prms_init()
5783 S32 i4_cu_16x16 = (BLK_32x32 == e_blk_size) ? (i4_32x32_id << 2) : 0; in hme_merge_prms_init()
5881 S32 lyr_job_type, in hme_refine()
5882 S32 thrd_id, in hme_refine()
5883 S32 me_frm_id, in hme_refine()
5928 S32 en_merge_32x32; in hme_refine()
5934 S32 en_merge_execution; in hme_refine()
5939 S32 num_init_candts = 0; in hme_refine()
5940 S32 i4_num_act_ref_l0 = ps_ctxt->s_frm_prms.u1_num_active_ref_l0; in hme_refine()
5941 S32 i4_num_act_ref_l1 = ps_ctxt->s_frm_prms.u1_num_active_ref_l1; in hme_refine()
5961 S32 blk_x, blk_y, i4_ctb_x, i4_ctb_y, tile_col_idx, blk_id_in_ctb; in hme_refine()
5962 S32 pos_x, pos_y; in hme_refine()
5963 S32 blk_id_in_full_ctb; in hme_refine()
5968 S32 blk_4x4_to_16x16; in hme_refine()
5969 S32 blk_wd, blk_ht, blk_size_shift; in hme_refine()
5970 S32 i4_pic_wd, i4_pic_ht, num_blks_in_this_ctb; in hme_refine()
5971 S32 num_results_prev_layer; in hme_refine()
5978 S32 unit_size; in hme_refine()
6009 S32 i4_num_pred_dir; in hme_refine()
6010 S32 i4_num_ref_each_dir, i, i4_num_ref_prev_layer; in hme_refine()
6011 S32 lambda_recon = ps_refine_prms->lambda_recon; in hme_refine()
6014 S32 merge_count_32x32; in hme_refine()
6016 S32 ai4_id_coloc[14], ai4_id_Z[2]; in hme_refine()
6018 S32 ai4_num_coloc_cands[2]; in hme_refine()
6025 S32 i4_inp_stride; in hme_refine()
6026 S32 end_of_frame; in hme_refine()
6027 S32 num_sync_units_in_row, num_sync_units_in_tile; in hme_refine()
6034 S32 blk_8x8_mask; in hme_refine()
6035 S32 ai4_blk_8x8_mask[16]; in hme_refine()
6331 S32 i4_x, i4_y; in hme_refine()
6336 S32 pred_lx; in hme_refine()
6338 i4_x = (S32)gau1_encode_to_raster_x[i]; in hme_refine()
6339 i4_y = (S32)gau1_encode_to_raster_y[i]; in hme_refine()
6376 S32 pred_lx; in hme_refine()
6379 i4_x = (S32)gau1_encode_to_raster_x[i]; in hme_refine()
6380 i4_y = (S32)gau1_encode_to_raster_y[i]; in hme_refine()
6416 S32 pred_lx; in hme_refine()
6710 S32 blk_i = 0, blk_j = 0; in hme_refine()
6758 S32 i4_ref_id, i4_bits_req; in hme_refine()
6849 S32 i4_nodes_created_in_cu_tree = 1; in hme_refine()
6861 memset(ai4_blk_8x8_mask, 0, 16 * sizeof(S32)); in hme_refine()
6865 S32 j; in hme_refine()
7101 S32 j; in hme_refine()
7102 S32 lambda; in hme_refine()
7120 S32 j; in hme_refine()
7121 S32 lambda; in hme_refine()
7174 S32 i4_sigma_arr_offset = in hme_refine()
7192 S32 j; in hme_refine()
7196 S32 i4_16x16_blk_start_index_in_i_th_32x32_blk = in hme_refine()
7204 S32 i4_16x16_blk_index_in_ctb = in hme_refine()
7226 S32 i4_sigma_arr_offset = in hme_refine()
7260 S32 ref_ctr; in hme_refine()
7323 S32 i; in hme_refine()
7340 S32 j; in hme_refine()
7341 S32 lambda; in hme_refine()
7353 S32 j; in hme_refine()
7354 S32 lambda; in hme_refine()
7439 S32 resultid; in hme_refine()
7441 S32 i4_num_srch_cands = 0; in hme_refine()
7442 S32 i4_num_refinement_iterations; in hme_refine()
7443 S32 i4_refine_iter_ctr; in hme_refine()
7499 S32 x = gau1_encode_to_raster_x[blk_id_in_full_ctb]; in hme_refine()
7500 S32 y = gau1_encode_to_raster_y[blk_id_in_full_ctb]; in hme_refine()
7570 S32 center_x; in hme_refine()
7571 S32 center_y; in hme_refine()
7572 S32 center_ref_idx; in hme_refine()
7611 S32 i = 0; in hme_refine()
7654 S32 num_unique_nodes; in hme_refine()
7685 S32 i; in hme_refine()
7687 S32 i4_sigma_array_offset = (s_search_prms_blk.i4_cu_x_off / 4) + in hme_refine()
7692 S32 i4_part_id = ps_fullpel_refine_ctxt->ai4_part_id[i]; in hme_refine()
8776 S32 wd = ((i4_pic_wd - s_common_frm_prms.i4_ctb_x_off) >= 64) in hme_refine()
8779 S32 ht = ((i4_pic_ht - s_common_frm_prms.i4_ctb_y_off) >= 64) in hme_refine()
8820 S32 lyr_job_type, in hme_refine_no_encode()
8842 S32 num_init_candts = 0; in hme_refine_no_encode()
8873 S32 blk_x, i4_ctb_x, blk_id_in_ctb; in hme_refine_no_encode()
8875 S32 pos_x, pos_y; in hme_refine_no_encode()
8876 S32 blk_id_in_full_ctb; in hme_refine_no_encode()
8877 S32 i4_num_srch_cands; in hme_refine_no_encode()
8879 S32 blk_y; in hme_refine_no_encode()
8884 S32 blk_wd, blk_ht, blk_size_shift, num_blks_in_row, num_blks_in_pic; in hme_refine_no_encode()
8885 S32 i4_pic_wd, i4_pic_ht, num_blks_in_this_ctb; in hme_refine_no_encode()
8886 S32 num_results_prev_layer; in hme_refine_no_encode()
8893 S32 unit_size; in hme_refine_no_encode()
8910 S32 i4_num_ref_fpel, i4_num_ref_before_merge; in hme_refine_no_encode()
8911 S32 i4_num_ref_each_dir, i, i4_num_ref_prev_layer; in hme_refine_no_encode()
8912 S32 lambda_inp = ps_refine_prms->lambda_inp; in hme_refine_no_encode()
8918 S32 curr_layer_implicit, prev_layer_implicit; in hme_refine_no_encode()
8923 S32 id; in hme_refine_no_encode()
8930 S32 i4_inp_stride; in hme_refine_no_encode()
8932 S32 end_of_frame; in hme_refine_no_encode()
8934 S32 num_sync_units_in_row; in hme_refine_no_encode()
8980 S32 i4_mask = (ENABLE_2Nx2N); in hme_refine_no_encode()
9088 S32 pred_lx; in hme_refine_no_encode()
9632 S32 next_blk_offset = (e_search_blk_size == BLK_16x16) ? 22 : 12; in hme_refine_no_encode()
9633 S32 prev_blk_offset = 6; in hme_refine_no_encode()
9634 S32 resultid; in hme_refine_no_encode()
9666 S32 x, y; in hme_refine_no_encode()
9693 S32 i4_blk_size1 = gau1_blk_size_to_wd[ps_layer_mvbank->e_blk_size]; in hme_refine_no_encode()
9694 S32 i4_blk_size2 = gau1_blk_size_to_wd[e_search_blk_size]; in hme_refine_no_encode()
9696 S32 i4_offset, blk_x_temp = blk_x, blk_y_temp = blk_y; in hme_refine_no_encode()
9699 S32 jump = 1, mvs_in_blk, mvs_in_row; in hme_refine_no_encode()
9700 S32 shift = (ps_refine_prms->i4_encode ? 2 : 0); in hme_refine_no_encode()
9746 S32 x, y; in hme_refine_no_encode()
9776 S32 i4_blk_size1 = gau1_blk_size_to_wd[ps_layer_mvbank->e_blk_size]; in hme_refine_no_encode()
9777 S32 i4_blk_size2 = gau1_blk_size_to_wd[e_search_blk_size]; in hme_refine_no_encode()
9778 S32 i4_mv_pos_in_implicit_array; in hme_refine_no_encode()
9780 S32 i4_offset, blk_x_temp = blk_x, blk_y_temp = blk_y; in hme_refine_no_encode()
9783 S32 jump = 1, mvs_in_blk, mvs_in_row; in hme_refine_no_encode()
9784 S32 shift = (ps_refine_prms->i4_encode ? 2 : 0); in hme_refine_no_encode()
9786 S32 i4_num_results_in_given_dir = in hme_refine_no_encode()
10035 S32 candt; in hme_refine_no_encode()
10038 S32 num_ref_valid = ps_ctxt->num_ref_future + ps_ctxt->num_ref_past; in hme_refine_no_encode()
10058 S32 srch_cand; in hme_refine_no_encode()
10059 S32 num_unique_nodes = 0; in hme_refine_no_encode()
10060 S32 num_nodes_searched = 0; in hme_refine_no_encode()
10061 S32 num_best_cand = 0; in hme_refine_no_encode()
10065 S32 ai4_valid_part_ids[TOT_NUM_PARTS + 1]; in hme_refine_no_encode()
10066 S32 center_x; in hme_refine_no_encode()
10067 S32 center_y; in hme_refine_no_encode()
10070 S32 add_centre = 0; in hme_refine_no_encode()
10116 S32 num_results; in hme_refine_no_encode()
10117 S32 cnt; in hme_refine_no_encode()
10118 S32 *pi4_valid_part_ids; in hme_refine_no_encode()
10419 for(i4_ref_id = 0; i4_ref_id < (S32)s_mv_update_prms.i4_num_ref; in hme_refine_no_encode()
10453 for(i4_ref_id = 0; i4_ref_id < (S32)s_mv_update_prms.i4_num_ref; in hme_refine_no_encode()