Lines Matching refs:ratios
374 spl_scratch->scl_data.ratios.horz = spl_fixpt_from_fraction( in spl_calculate_scaling_ratios()
377 spl_scratch->scl_data.ratios.vert = spl_fixpt_from_fraction( in spl_calculate_scaling_ratios()
382 spl_scratch->scl_data.ratios.horz.value *= 2; in spl_calculate_scaling_ratios()
384 spl_scratch->scl_data.ratios.vert.value *= 2; in spl_calculate_scaling_ratios()
386 spl_scratch->scl_data.ratios.vert.value = spl_div64_s64( in spl_calculate_scaling_ratios()
387 spl_scratch->scl_data.ratios.vert.value * in_h, out_h); in spl_calculate_scaling_ratios()
388 spl_scratch->scl_data.ratios.horz.value = spl_div64_s64( in spl_calculate_scaling_ratios()
389 spl_scratch->scl_data.ratios.horz.value * in_w, out_w); in spl_calculate_scaling_ratios()
391 spl_scratch->scl_data.ratios.horz_c = spl_scratch->scl_data.ratios.horz; in spl_calculate_scaling_ratios()
392 spl_scratch->scl_data.ratios.vert_c = spl_scratch->scl_data.ratios.vert; in spl_calculate_scaling_ratios()
396 spl_scratch->scl_data.ratios.horz_c.value /= 2; in spl_calculate_scaling_ratios()
397 spl_scratch->scl_data.ratios.vert_c.value /= 2; in spl_calculate_scaling_ratios()
399 spl_scratch->scl_data.ratios.horz = spl_fixpt_truncate( in spl_calculate_scaling_ratios()
400 spl_scratch->scl_data.ratios.horz, 19); in spl_calculate_scaling_ratios()
401 spl_scratch->scl_data.ratios.vert = spl_fixpt_truncate( in spl_calculate_scaling_ratios()
402 spl_scratch->scl_data.ratios.vert, 19); in spl_calculate_scaling_ratios()
403 spl_scratch->scl_data.ratios.horz_c = spl_fixpt_truncate( in spl_calculate_scaling_ratios()
404 spl_scratch->scl_data.ratios.horz_c, 19); in spl_calculate_scaling_ratios()
405 spl_scratch->scl_data.ratios.vert_c = spl_fixpt_truncate( in spl_calculate_scaling_ratios()
406 spl_scratch->scl_data.ratios.vert_c, 19); in spl_calculate_scaling_ratios()
414 spl_scratch->scl_data.ratios.horz); in spl_calculate_scaling_ratios()
416 spl_scratch->scl_data.ratios.vert); in spl_calculate_scaling_ratios()
418 spl_scratch->scl_data.ratios.horz_c); in spl_calculate_scaling_ratios()
420 spl_scratch->scl_data.ratios.vert_c); in spl_calculate_scaling_ratios()
426 …atch->scl_data.viewport.width = spl_fixpt_ceil(spl_fixpt_mul_int(spl_scratch->scl_data.ratios.horz, in spl_calculate_viewport_size()
428 …tch->scl_data.viewport.height = spl_fixpt_ceil(spl_fixpt_mul_int(spl_scratch->scl_data.ratios.vert, in spl_calculate_viewport_size()
430 …->scl_data.viewport_c.width = spl_fixpt_ceil(spl_fixpt_mul_int(spl_scratch->scl_data.ratios.horz_c, in spl_calculate_viewport_size()
432 …>scl_data.viewport_c.height = spl_fixpt_ceil(spl_fixpt_mul_int(spl_scratch->scl_data.ratios.vert_c, in spl_calculate_viewport_size()
623 spl_scratch->scl_data.ratios.horz, in spl_calculate_inits_and_viewports()
634 spl_scratch->scl_data.ratios.horz_c, in spl_calculate_inits_and_viewports()
645 spl_scratch->scl_data.ratios.vert, in spl_calculate_inits_and_viewports()
656 spl_scratch->scl_data.ratios.vert_c, in spl_calculate_inits_and_viewports()
727 if (data->ratios.horz.value == one in spl_get_dscl_mode()
728 && data->ratios.vert.value == one in spl_get_dscl_mode()
729 && data->ratios.horz_c.value == one in spl_get_dscl_mode()
730 && data->ratios.vert_c.value == one in spl_get_dscl_mode()
746 if (data->ratios.horz.value == one && data->ratios.vert.value == one) in spl_get_dscl_mode()
748 if (data->ratios.horz_c.value == one && data->ratios.vert_c.value == one) in spl_get_dscl_mode()
787 vratio = spl_fixpt_ceil(spl_scratch->scl_data.ratios.vert); in enable_easf()
788 hratio = spl_fixpt_ceil(spl_scratch->scl_data.ratios.horz); in enable_easf()
837 vratio = spl_fixpt_ceil(spl_scratch->scl_data.ratios.vert); in spl_get_isharp_en()
838 hratio = spl_fixpt_ceil(spl_scratch->scl_data.ratios.horz); in spl_get_isharp_en()
898 if (spl_fixpt_ceil(spl_scratch->scl_data.ratios.horz) > 1) in spl_get_optimal_number_of_taps()
900 spl_scratch->scl_data.ratios.horz), 8); in spl_get_optimal_number_of_taps()
906 if (spl_fixpt_ceil(spl_scratch->scl_data.ratios.vert) > 1) in spl_get_optimal_number_of_taps()
908 spl_scratch->scl_data.ratios.vert, 2)), 8); in spl_get_optimal_number_of_taps()
914 if (spl_fixpt_ceil(spl_scratch->scl_data.ratios.vert_c) > 1) in spl_get_optimal_number_of_taps()
916 spl_scratch->scl_data.ratios.vert_c, 2)), 8); in spl_get_optimal_number_of_taps()
922 if (spl_fixpt_ceil(spl_scratch->scl_data.ratios.horz_c) > 1) in spl_get_optimal_number_of_taps()
924 spl_scratch->scl_data.ratios.horz_c), 8); in spl_get_optimal_number_of_taps()
947 min_taps_y = spl_fixpt_ceil(spl_scratch->scl_data.ratios.vert); in spl_get_optimal_number_of_taps()
948 min_taps_c = spl_fixpt_ceil(spl_scratch->scl_data.ratios.vert_c); in spl_get_optimal_number_of_taps()
960 if (spl_fixpt_ceil(spl_scratch->scl_data.ratios.vert) > 2) in spl_get_optimal_number_of_taps()
961 max_taps_y = num_part_y - (spl_fixpt_ceil(spl_scratch->scl_data.ratios.vert) - 2); in spl_get_optimal_number_of_taps()
965 if (spl_fixpt_ceil(spl_scratch->scl_data.ratios.vert_c) > 2) in spl_get_optimal_number_of_taps()
966 max_taps_c = num_part_c - (spl_fixpt_ceil(spl_scratch->scl_data.ratios.vert_c) - 2); in spl_get_optimal_number_of_taps()
1051 if ((IDENTITY_RATIO(spl_scratch->scl_data.ratios.horz)) && in spl_get_optimal_number_of_taps()
1052 (IDENTITY_RATIO(spl_scratch->scl_data.ratios.vert))) { in spl_get_optimal_number_of_taps()
1056 if (IDENTITY_RATIO(spl_scratch->scl_data.ratios.horz_c)) in spl_get_optimal_number_of_taps()
1059 if (IDENTITY_RATIO(spl_scratch->scl_data.ratios.vert_c)) in spl_get_optimal_number_of_taps()
1066 (IDENTITY_RATIO(spl_scratch->scl_data.ratios.horz_c))) in spl_get_optimal_number_of_taps()
1070 (IDENTITY_RATIO(spl_scratch->scl_data.ratios.vert_c))) in spl_get_optimal_number_of_taps()
1096 dscl_prog_data->ratios.h_scale_ratio = spl_fixpt_u3d19(scl_data->ratios.horz) << 5; in spl_set_manual_ratio_init_data()
1097 dscl_prog_data->ratios.v_scale_ratio = spl_fixpt_u3d19(scl_data->ratios.vert) << 5; in spl_set_manual_ratio_init_data()
1098 dscl_prog_data->ratios.h_scale_ratio_c = spl_fixpt_u3d19(scl_data->ratios.horz_c) << 5; in spl_set_manual_ratio_init_data()
1099 dscl_prog_data->ratios.v_scale_ratio_c = spl_fixpt_u3d19(scl_data->ratios.vert_c) << 5; in spl_set_manual_ratio_init_data()
1120 bot = spl_fixpt_add(scl_data->inits.v, scl_data->ratios.vert); in spl_set_manual_ratio_init_data()
1123 bot = spl_fixpt_add(scl_data->inits.v_c, scl_data->ratios.vert_c); in spl_set_manual_ratio_init_data()
1779 vratio = spl_fixpt_ceil(spl_scratch.scl_data.ratios.vert); in spl_calculate_scaler_params()
1780 hratio = spl_fixpt_ceil(spl_scratch.scl_data.ratios.horz); in spl_calculate_scaler_params()