Lines Matching refs:ps_hist

223 void hme_init_histogram(mv_hist_t *ps_hist, S32 i4_max_mv_x, S32 i4_max_mv_y)  in hme_init_histogram()  argument
259 ps_hist->i4_num_rows = i4_num_rows; in hme_init_histogram()
260 ps_hist->i4_num_cols = i4_num_cols; in hme_init_histogram()
261 ps_hist->i4_min_x = -i4_max_mv_x; in hme_init_histogram()
262 ps_hist->i4_min_y = -i4_max_mv_y; in hme_init_histogram()
263 ps_hist->i4_shift_x = i4_shift_x; in hme_init_histogram()
264 ps_hist->i4_shift_y = i4_shift_y; in hme_init_histogram()
265 ps_hist->i4_lobe1_size = 5; in hme_init_histogram()
266 ps_hist->i4_lobe2_size = 3; in hme_init_histogram()
268 ps_hist->i4_num_bins = i4_num_bins; in hme_init_histogram()
272 ps_hist->ai4_bin_count[i] = 0; in hme_init_histogram()
291 void hme_update_histogram(mv_hist_t *ps_hist, S32 i4_mv_x, S32 i4_mv_y) in hme_update_histogram() argument
295 i4_col = (i4_mv_x - ps_hist->i4_min_x) >> ps_hist->i4_shift_x; in hme_update_histogram()
296 i4_row = (i4_mv_y - ps_hist->i4_min_y) >> ps_hist->i4_shift_y; in hme_update_histogram()
298 i4_bin_index = i4_col + (i4_row * ps_hist->i4_num_cols); in hme_update_histogram()
302 ps_hist->ai4_bin_count[i4_bin_index]++; in hme_update_histogram()
354 void hme_calculate_global_mv(mv_hist_t *ps_hist, hme_mv_t *ps_mv, GMV_MVTYPE_T e_lobe_type) in hme_calculate_global_mv() argument
361 i4_lobe_size = ps_hist->i4_lobe1_size; in hme_calculate_global_mv()
363 i4_lobe_size = ps_hist->i4_lobe2_size; in hme_calculate_global_mv()
366 for(i4_y = i4_offset; i4_y < ps_hist->i4_num_rows - i4_offset; i4_y++) in hme_calculate_global_mv()
368 for(i4_x = i4_offset; i4_x < ps_hist->i4_num_cols - i4_offset; i4_x++) in hme_calculate_global_mv()
371 i4_bin_id = (i4_x - 2) + ((i4_y - 2) * ps_hist->i4_num_cols); in hme_calculate_global_mv()
373 pi4_bin_count = &ps_hist->ai4_bin_count[i4_bin_id]; in hme_calculate_global_mv()
378 ps_hist->i4_num_cols, in hme_calculate_global_mv()
390 ps_mv->i2_mv_y = (S16)((i4_max_y << ps_hist->i4_shift_y) + ps_hist->i4_min_y); in hme_calculate_global_mv()
391 ps_mv->i2_mv_x = (S16)((i4_max_x << ps_hist->i4_shift_x) + ps_hist->i4_min_x); in hme_calculate_global_mv()