Lines Matching refs:win_index
773 for (uint32_t win_index = 0; win_index < XCAM_AE_MAX_METERING_WINDOW_COUNT; win_index++) { in set_RGBS_weight_grid() local
775 … _params.window_list[win_index].x_start, _params.window_list[win_index].y_start, in set_RGBS_weight_grid()
776 _params.window_list[win_index].x_end, _params.window_list[win_index].y_end, in set_RGBS_weight_grid()
777 _params.window_list[win_index].weight); in set_RGBS_weight_grid()
779 if ((_params.window_list[win_index].weight <= 0) || in set_RGBS_weight_grid()
780 (_params.window_list[win_index].x_start < 0) || in set_RGBS_weight_grid()
781 ((uint32_t)_params.window_list[win_index].x_end > image_width) || in set_RGBS_weight_grid()
782 (_params.window_list[win_index].y_start < 0) || in set_RGBS_weight_grid()
783 ((uint32_t)_params.window_list[win_index].y_end > image_height) || in set_RGBS_weight_grid()
784 (_params.window_list[win_index].x_start >= _params.window_list[win_index].x_end) || in set_RGBS_weight_grid()
785 (_params.window_list[win_index].y_start >= _params.window_list[win_index].y_end) || in set_RGBS_weight_grid()
786 …((uint32_t)_params.window_list[win_index].x_end - (uint32_t)_params.window_list[win_index].x_start… in set_RGBS_weight_grid()
787 …((uint32_t)_params.window_list[win_index].y_end - (uint32_t)_params.window_list[win_index].y_start… in set_RGBS_weight_grid()
788 XCAM_LOG_DEBUG ("skip window index = %d ", win_index); in set_RGBS_weight_grid()
792 rgbs_grid_index = (_params.window_list[win_index].x_start + in set_RGBS_weight_grid()
794 ((_params.window_list[win_index].y_start + (vert_pixels_per_gird >> 1)) in set_RGBS_weight_grid()
797 weight_sum += _params.window_list[win_index].weight; in set_RGBS_weight_grid()
799 XCAM_LOG_DEBUG ("cumulate rgbs grid statistic, window index = %d ", win_index); in set_RGBS_weight_grid()
803 i * rgbs_grid_width].avg_gr * _params.window_list[win_index].weight; in set_RGBS_weight_grid()
805 i * rgbs_grid_width].avg_r * _params.window_list[win_index].weight; in set_RGBS_weight_grid()
807 i * rgbs_grid_width].avg_b * _params.window_list[win_index].weight; in set_RGBS_weight_grid()
809 i * rgbs_grid_width].avg_gb * _params.window_list[win_index].weight; in set_RGBS_weight_grid()
811 i * rgbs_grid_width].sat * _params.window_list[win_index].weight; in set_RGBS_weight_grid()
861 for (uint32_t win_index = 0; win_index < XCAM_AE_MAX_METERING_WINDOW_COUNT; win_index++) { in set_hist_weight_grid() local
863 … _params.window_list[win_index].x_start, _params.window_list[win_index].y_start, in set_hist_weight_grid()
864 _params.window_list[win_index].x_end, _params.window_list[win_index].y_end, in set_hist_weight_grid()
865 _params.window_list[win_index].weight); in set_hist_weight_grid()
867 if ((_params.window_list[win_index].weight <= 0) || in set_hist_weight_grid()
868 (_params.window_list[win_index].weight > 15) || in set_hist_weight_grid()
869 (_params.window_list[win_index].x_start < 0) || in set_hist_weight_grid()
870 ((uint32_t)_params.window_list[win_index].x_end > image_width) || in set_hist_weight_grid()
871 (_params.window_list[win_index].y_start < 0) || in set_hist_weight_grid()
872 ((uint32_t)_params.window_list[win_index].y_end > image_height) || in set_hist_weight_grid()
873 (_params.window_list[win_index].x_start >= _params.window_list[win_index].x_end) || in set_hist_weight_grid()
874 (_params.window_list[win_index].y_start >= _params.window_list[win_index].y_end) || in set_hist_weight_grid()
875 …((uint32_t)_params.window_list[win_index].x_end - (uint32_t)_params.window_list[win_index].x_start… in set_hist_weight_grid()
876 …((uint32_t)_params.window_list[win_index].y_end - (uint32_t)_params.window_list[win_index].y_start… in set_hist_weight_grid()
877 XCAM_LOG_DEBUG ("skip window index = %d ", win_index); in set_hist_weight_grid()
882 ((_params.window_list[win_index].x_end - _params.window_list[win_index].x_start + 1) + in set_hist_weight_grid()
885 ((_params.window_list[win_index].y_end - _params.window_list[win_index].y_start + 1) + in set_hist_weight_grid()
888 …hist_grid_index = (_params.window_list[win_index].x_start + (hor_pixels_per_grid >> 1)) / hor_pixe… in set_hist_weight_grid()
889 ((_params.window_list[win_index].y_start + (vert_pixels_per_gird >> 1)) / in set_hist_weight_grid()
894 …weights_map_ptr[hist_grid_index + j + i * hist_grid_width] = _params.window_list[win_index].weight; in set_hist_weight_grid()