Lines Matching refs:S32
98 S32 i, j; in hme_init_globals()
649 S32 hme_enc_num_alloc(WORD32 i4_num_me_frm_pllel) in hme_enc_num_alloc()
653 return ((S32)MAX_HME_ENC_TOT_MEMTABS); in hme_enc_num_alloc()
657 return ((S32)MIN_HME_ENC_TOT_MEMTABS); in hme_enc_num_alloc()
670 S32 hme_coarse_num_alloc() in hme_coarse_num_alloc()
672 return ((S32)HME_COARSE_TOT_MEMTABS); in hme_coarse_num_alloc()
689 S32 hme_validate_init_prms(hme_init_prms_t *ps_prms) in hme_validate_init_prms()
691 S32 n_layers = ps_prms->num_simulcast_layers; in hme_validate_init_prms()
714 layer_ctxt_t *ps_layer, S32 wd, S32 ht, S32 disp_wd, S32 disp_ht, U08 u1_enc) in hme_set_layer_res_attrs()
740 S32 n_tot_layers, in hme_coarse_get_layer1_mv_bank_ref_idx_size()
741 S32 *a_wd, in hme_coarse_get_layer1_mv_bank_ref_idx_size()
742 S32 *a_ht, in hme_coarse_get_layer1_mv_bank_ref_idx_size()
743 S32 max_num_ref, in hme_coarse_get_layer1_mv_bank_ref_idx_size()
744 S32 *pi4_mv_bank_size, in hme_coarse_get_layer1_mv_bank_ref_idx_size()
745 S32 *pi4_ref_idx_size) in hme_coarse_get_layer1_mv_bank_ref_idx_size()
747 S32 num_blks, num_mvs_per_blk, num_ref; in hme_coarse_get_layer1_mv_bank_ref_idx_size()
748 S32 num_cols, num_rows, num_mvs_per_row; in hme_coarse_get_layer1_mv_bank_ref_idx_size()
749 S32 is_explicit_store = 1; in hme_coarse_get_layer1_mv_bank_ref_idx_size()
750 S32 wd, ht, num_layers_explicit_search; in hme_coarse_get_layer1_mv_bank_ref_idx_size()
751 S32 num_results, use_4x4; in hme_coarse_get_layer1_mv_bank_ref_idx_size()
812 S32 hme_alloc_init_layer_mv_bank( in hme_alloc_init_layer_mv_bank()
814 S32 max_num_results, in hme_alloc_init_layer_mv_bank()
815 S32 max_num_ref, in hme_alloc_init_layer_mv_bank()
816 S32 use_4x4, in hme_alloc_init_layer_mv_bank()
817 S32 mem_avail, in hme_alloc_init_layer_mv_bank()
818 S32 u1_enc, in hme_alloc_init_layer_mv_bank()
819 S32 wd, in hme_alloc_init_layer_mv_bank()
820 S32 ht, in hme_alloc_init_layer_mv_bank()
821 S32 is_explicit_store, in hme_alloc_init_layer_mv_bank()
824 S32 *pi4_num_mvs_per_row) in hme_alloc_init_layer_mv_bank()
826 S32 count = 0; in hme_alloc_init_layer_mv_bank()
827 S32 size; in hme_alloc_init_layer_mv_bank()
828 S32 num_blks, num_mvs_per_blk; in hme_alloc_init_layer_mv_bank()
829 S32 num_ref; in hme_alloc_init_layer_mv_bank()
830 S32 num_cols, num_rows, num_mvs_per_row; in hme_alloc_init_layer_mv_bank()
900 S32 hme_alloc_init_layer( in hme_alloc_init_layer()
902 S32 max_num_results, in hme_alloc_init_layer()
903 S32 max_num_ref, in hme_alloc_init_layer()
904 S32 use_4x4, in hme_alloc_init_layer()
905 S32 mem_avail, in hme_alloc_init_layer()
906 S32 u1_enc, in hme_alloc_init_layer()
907 S32 wd, in hme_alloc_init_layer()
908 S32 ht, in hme_alloc_init_layer()
909 S32 disp_wd, in hme_alloc_init_layer()
910 S32 disp_ht, in hme_alloc_init_layer()
911 S32 segment_layer, in hme_alloc_init_layer()
912 S32 is_explicit_store, in hme_alloc_init_layer()
915 S32 count = 0; in hme_alloc_init_layer()
917 S32 size; in hme_alloc_init_layer()
918 S32 num_ref; in hme_alloc_init_layer()
992 S32 hme_alloc_init_search_nodes( in hme_alloc_init_search_nodes()
995 S32 mem_avail, in hme_alloc_init_search_nodes()
996 S32 max_num_ref, in hme_alloc_init_search_nodes()
997 S32 max_num_results) in hme_alloc_init_search_nodes()
999 S32 size = max_num_results * sizeof(search_node_t) * max_num_ref * TOT_NUM_PARTS; in hme_alloc_init_search_nodes()
1000 S32 j, k; in hme_alloc_init_search_nodes()
1028 S32 hme_derive_num_layers(S32 n_enc_layers, S32 *p_wd, S32 *p_ht, S32 *p_disp_wd, S32 *p_disp_ht) in hme_derive_num_layers()
1030 S32 i; in hme_derive_num_layers()
1049 S32 wd1, wd2, ht1, ht2; in hme_derive_num_layers()
1096 S32 hme_get_mv_blk_size(S32 enable_4x4, S32 layer_id, S32 num_layers, S32 is_enc) in hme_get_mv_blk_size()
1098 S32 use_4x4 = enable_4x4; in hme_get_mv_blk_size()
1127 S32 hme_enc_alloc_init_mem( in hme_enc_alloc_init_mem()
1131 S32 mem_avail, in hme_enc_alloc_init_mem()
1132 S32 i4_num_me_frm_pllel) in hme_enc_alloc_init_mem()
1136 S32 count = 0, size, i, j, use_4x4; in hme_enc_alloc_init_mem()
1137 S32 n_tot_layers, n_enc_layers; in hme_enc_alloc_init_mem()
1138 S32 num_layers_explicit_search; in hme_enc_alloc_init_mem()
1139 S32 a_wd[MAX_NUM_LAYERS], a_ht[MAX_NUM_LAYERS]; in hme_enc_alloc_init_mem()
1140 S32 a_disp_wd[MAX_NUM_LAYERS], a_disp_ht[MAX_NUM_LAYERS]; in hme_enc_alloc_init_mem()
1141 S32 num_results; in hme_enc_alloc_init_mem()
1142 S32 num_thrds; in hme_enc_alloc_init_mem()
1143 S32 ctb_wd = 1 << ps_prms->log_ctb_size; in hme_enc_alloc_init_mem()
1147 S32 i4_num_mvs_per_row = 0; in hme_enc_alloc_init_mem()
1215 memcpy(a_wd, ps_prms->a_wd, sizeof(S32) * ps_prms->num_simulcast_layers); in hme_enc_alloc_init_mem()
1216 memcpy(a_ht, ps_prms->a_ht, sizeof(S32) * ps_prms->num_simulcast_layers); in hme_enc_alloc_init_mem()
1266 S32 is_explicit_store = 1; in hme_enc_alloc_init_mem()
1267 S32 wd, ht; in hme_enc_alloc_init_mem()
1319 S32 is_explicit_store = 1; in hme_enc_alloc_init_mem()
1320 S32 segment_this_layer = (j == 0) ? 1 : ps_prms->segment_higher_layers; in hme_enc_alloc_init_mem()
1321 S32 wd, ht; in hme_enc_alloc_init_mem()
1507 S32 count_cpy = count; in hme_enc_alloc_init_mem()
1739 S32 hme_coarse_alloc_init_mem( in hme_coarse_alloc_init_mem()
1740 hme_memtab_t *ps_memtabs, hme_init_prms_t *ps_prms, void *pv_ctxt, S32 mem_avail) in hme_coarse_alloc_init_mem()
1744 S32 count = 0, size, i, j, use_4x4, wd; in hme_coarse_alloc_init_mem()
1745 S32 n_tot_layers; in hme_coarse_alloc_init_mem()
1746 S32 num_layers_explicit_search; in hme_coarse_alloc_init_mem()
1747 S32 a_wd[MAX_NUM_LAYERS], a_ht[MAX_NUM_LAYERS]; in hme_coarse_alloc_init_mem()
1748 S32 a_disp_wd[MAX_NUM_LAYERS], a_disp_ht[MAX_NUM_LAYERS]; in hme_coarse_alloc_init_mem()
1749 S32 num_results; in hme_coarse_alloc_init_mem()
1750 S32 num_thrds; in hme_coarse_alloc_init_mem()
1752 S32 sad_4x4_block_size, sad_4x4_block_stride, search_step, num_rows; in hme_coarse_alloc_init_mem()
1753 S32 layer1_blk_width = 8; // 8x8 search in hme_coarse_alloc_init_mem()
1754 S32 blk_shift; in hme_coarse_alloc_init_mem()
1758 S32 ai4_num_mvs_per_row[MAX_NUM_LAYERS] = { 0 }; in hme_coarse_alloc_init_mem()
1798 memcpy(a_wd, ps_prms->a_wd, sizeof(S32) * ps_prms->num_simulcast_layers); in hme_coarse_alloc_init_mem()
1799 memcpy(a_ht, ps_prms->a_ht, sizeof(S32) * ps_prms->num_simulcast_layers); in hme_coarse_alloc_init_mem()
1823 memcpy(ps_ctxt->a_wd, a_wd, sizeof(S32) * n_tot_layers); in hme_coarse_alloc_init_mem()
1824 memcpy(ps_ctxt->a_ht, a_ht, sizeof(S32) * n_tot_layers); in hme_coarse_alloc_init_mem()
1837 S32 is_explicit_store = 1; in hme_coarse_alloc_init_mem()
1838 S32 wd, ht; in hme_coarse_alloc_init_mem()
1870 S32 num_blks, num_mvs_per_blk, num_ref; in hme_coarse_alloc_init_mem()
1871 S32 num_cols, num_rows, num_mvs_per_row; in hme_coarse_alloc_init_mem()
1914 S32 is_explicit_store = 1; in hme_coarse_alloc_init_mem()
1915 S32 segment_this_layer = (j == 0) ? 1 : ps_prms->segment_higher_layers; in hme_coarse_alloc_init_mem()
1916 S32 wd, ht; in hme_coarse_alloc_init_mem()
2511 S32 hme_enc_alloc(hme_memtab_t *ps_memtabs, hme_init_prms_t *ps_prms, WORD32 i4_num_me_frm_pllel) in hme_enc_alloc()
2513 S32 num, tot, i; in hme_enc_alloc()
2545 S32 hme_coarse_alloc(hme_memtab_t *ps_memtabs, hme_init_prms_t *ps_prms) in hme_coarse_alloc()
2547 S32 num, tot, i; in hme_coarse_alloc()
2584 S32 num, tot, i; in hme_coarse_dep_mngr_alloc()
2613 S32 i, j, num_thrds; in hme_coarse_init_ctxt()
2615 S32 num_rows_coarse; in hme_coarse_init_ctxt()
2677 S32 i, j, num_thrds; in hme_enc_init_ctxt()
2767 S32 hme_enc_init( in hme_enc_init()
2774 S32 num, tot; in hme_enc_init()
2812 S32 hme_coarse_init(void *pv_ctxt, hme_memtab_t *ps_memtabs, hme_init_prms_t *ps_prms) in hme_coarse_init()
2814 S32 num, tot; in hme_coarse_init()
2859 void hme_set_resolution(void *pv_me_ctxt, S32 n_enc_layers, S32 *p_wd, S32 *p_ht, S32 me_frm_id) in hme_set_resolution()
2861 S32 n_tot_layers, num_layers_explicit_search, i, j; in hme_set_resolution()
2865 S32 a_wd[MAX_NUM_LAYERS], a_ht[MAX_NUM_LAYERS]; in hme_set_resolution()
2866 S32 a_disp_wd[MAX_NUM_LAYERS], a_disp_ht[MAX_NUM_LAYERS]; in hme_set_resolution()
2867 memcpy(a_wd, p_wd, n_enc_layers * sizeof(S32)); in hme_set_resolution()
2868 memcpy(a_ht, p_ht, n_enc_layers * sizeof(S32)); in hme_set_resolution()
2899 S32 wd, ht; in hme_set_resolution()
2931 void hme_coarse_set_resolution(void *pv_me_ctxt, S32 n_enc_layers, S32 *p_wd, S32 *p_ht) in hme_coarse_set_resolution()
2933 S32 n_tot_layers, num_layers_explicit_search, i, j; in hme_coarse_set_resolution()
2935 S32 a_wd[MAX_NUM_LAYERS], a_ht[MAX_NUM_LAYERS]; in hme_coarse_set_resolution()
2936 S32 a_disp_wd[MAX_NUM_LAYERS], a_disp_ht[MAX_NUM_LAYERS]; in hme_coarse_set_resolution()
2937 memcpy(a_wd, p_wd, n_enc_layers * sizeof(S32)); in hme_coarse_set_resolution()
2938 memcpy(a_ht, p_ht, n_enc_layers * sizeof(S32)); in hme_coarse_set_resolution()
2958 memcpy(ps_ctxt->a_wd, a_wd, sizeof(S32) * n_tot_layers); in hme_coarse_set_resolution()
2959 memcpy(ps_ctxt->a_ht, a_ht, sizeof(S32) * n_tot_layers); in hme_coarse_set_resolution()
2966 S32 wd, ht; in hme_coarse_set_resolution()
2977 S32 hme_find_descr_idx(me_ctxt_t *ps_ctxt, S32 i4_poc, S32 i4_idr_gop_num, S32 i4_num_me_frm_pllel) in hme_find_descr_idx()
2979 S32 i; in hme_find_descr_idx()
2992 S32 hme_coarse_find_descr_idx(coarse_me_ctxt_t *ps_ctxt, S32 i4_poc) in hme_coarse_find_descr_idx()
2994 S32 i; in hme_coarse_find_descr_idx()
3006 S32 hme_find_free_descr_idx(me_ctxt_t *ps_ctxt, S32 i4_num_me_frm_pllel) in hme_find_free_descr_idx()
3008 S32 i; in hme_find_free_descr_idx()
3023 S32 hme_coarse_find_free_descr_idx(void *pv_ctxt) in hme_coarse_find_free_descr_idx()
3025 S32 i; in hme_coarse_find_free_descr_idx()
3040 void *pv_me_ctxt, S32 *p_pocs_to_remove, S32 i4_idr_gop_num, S32 i4_num_me_frm_pllel) in hme_discard_frm()
3043 S32 count = 0, idx, i; in hme_discard_frm()
3065 void hme_coarse_discard_frm(void *pv_me_ctxt, S32 *p_pocs_to_remove) in hme_coarse_discard_frm()
3068 S32 count = 0, idx, i; in hme_coarse_discard_frm()
3091 S32 start_lyr_id, in hme_update_layer_desc()
3092 S32 num_layers, in hme_update_layer_desc()
3096 S32 i; in hme_update_layer_desc()
3128 void hme_add_inp(void *pv_me_ctxt, hme_inp_desc_t *ps_inp_desc, S32 me_frm_id, S32 i4_thrd_id) in hme_add_inp()
3137 S32 i4_poc, idx, i, i4_prev_poc; in hme_add_inp()
3138 S32 num_thrds, prev_me_frm_id; in hme_add_inp()
3139 S32 i4_idr_gop_num, i4_is_reference; in hme_add_inp()
3205 S32 wd, dst_stride; in hme_add_inp()
3227 S32 i4_poc, i; in hme_coarse_add_inp()
3228 S32 num_thrds; in hme_coarse_add_inp()
3272 S32 wd, dst_stride; in hme_coarse_add_inp()
3366 S32 i; in hme_max_search_cands_per_search_cand_loc_populator()
3514 S32 num_ref, in hme_set_refine_prms()
3515 S32 layer_id, in hme_set_refine_prms()
3516 S32 num_layers, in hme_set_refine_prms()
3517 S32 num_layers_explicit_search, in hme_set_refine_prms()
3518 S32 use_4x4, in hme_set_refine_prms()
3797 void hme_set_ctb_boundary_attrs(ctb_boundary_attrs_t *ps_attrs, S32 num_8x8_horz, S32 num_8x8_vert) in hme_set_ctb_boundary_attrs()
3799 S32 cu_16x16_valid_flag = 0, merge_pattern_x, merge_pattern_y; in hme_set_ctb_boundary_attrs()
3800 S32 blk, blk_x, blk_y; in hme_set_ctb_boundary_attrs()
3801 S32 num_16x16_horz, num_16x16_vert; in hme_set_ctb_boundary_attrs()
3873 void hme_set_ctb_attrs(ctb_boundary_attrs_t *ps_attrs, S32 wd, S32 ht) in hme_set_ctb_attrs()
3875 S32 is_cropped_rt, is_cropped_bot; in hme_set_ctb_attrs()
3913 S16 hme_scale_for_ref_idx(S32 curr_poc, S32 poc_from, S32 poc_to) in hme_scale_for_ref_idx()
3915 S32 td, tx, tb; in hme_scale_for_ref_idx()
3960 S32 i, j, desc_idx; in hme_process_frm_init()
3988 S32 ref_id_lc, idx; in hme_process_frm_init()
4089 S32 l0, l1; in hme_process_frm_init()
4107 S32 poc_from, poc_to; in hme_process_frm_init()
4139 S32 ref_id_lc; in hme_process_frm_init()
4192 memset(ps_layer_ctxt->ai4_ref_id_to_poc_lc, -1, sizeof(S32) * ps_ctxt->max_num_ref); in hme_process_frm_init()
4198 ps_ref_map->i4_num_ref * sizeof(S32)); in hme_process_frm_init()
4224 S32 i, j, desc_idx; in hme_coarse_process_frm_init()
4251 S32 ref_id_lc, idx; in hme_coarse_process_frm_init()
4341 S32 l0, l1; in hme_coarse_process_frm_init()
4359 S32 poc_from, poc_to; in hme_coarse_process_frm_init()
4383 S32 ref_id_lc; in hme_coarse_process_frm_init()
4424 memset(ps_layer_ctxt->ai4_ref_id_to_poc_lc, -1, sizeof(S32) * ps_ctxt->max_num_ref); in hme_coarse_process_frm_init()
4430 ps_ref_map->i4_num_ref * sizeof(S32)); in hme_coarse_process_frm_init()
4434 ps_ref_map->i4_num_ref * sizeof(S32)); in hme_coarse_process_frm_init()
4474 S32 i4_frame_parallelism_level, in hme_process_frm()
4475 S32 thrd_id, in hme_process_frm()
4476 S32 i4_me_frm_id) in hme_process_frm()
4482 S32 lyr_job_type; in hme_process_frm()
4562 S32 layer_id; in hme_coarse_process_frm()
4566 S32 lyr_job_type; in hme_coarse_process_frm()
4578 S32 log_start_step; in hme_coarse_process_frm()
4662 mv_grid_t **pps_mv_grid, S32 i4_ctb_x, S32 i4_ctb_y, S32 i4_num_ref, void *pv_ctxt) in hme_fill_neighbour_mvs()
4687 WORD32 hme_get_active_pocs_list(void *pv_me_ctxt, S32 i4_num_me_frm_pllel) in hme_get_active_pocs_list()
4690 S32 i, count = 0; in hme_get_active_pocs_list()
4694 S32 poc = ps_ctxt->as_ref_descr[i].aps_layers[0]->i4_poc; in hme_get_active_pocs_list()
4695 S32 i4_is_free = ps_ctxt->as_ref_descr[i].aps_layers[0]->i4_is_free; in hme_get_active_pocs_list()
4727 void hme_coarse_get_active_pocs_list(void *pv_me_ctxt, S32 *p_pocs_buffered_in_me) in hme_coarse_get_active_pocs_list()
4730 S32 i, count = 0; in hme_coarse_get_active_pocs_list()
4734 S32 poc = ps_ctxt->as_ref_descr[i].aps_layers[1]->i4_poc; in hme_coarse_get_active_pocs_list()
4745 S32 hme_get_blk_size(S32 use_4x4, S32 layer_id, S32 n_layers, S32 encode) in hme_get_blk_size()