Home
last modified time | relevance | path

Searched refs:output_tf (Results 1 – 7 of 7) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_cm_common.c109 const struct dc_transfer_func *output_tf, in cm3_helper_translate_curve_to_hw_format() argument
123 if (output_tf == NULL || lut_params == NULL || output_tf->type == TF_TYPE_BYPASS) in cm3_helper_translate_curve_to_hw_format()
133 if (output_tf->tf == TRANSFER_FUNCTION_PQ || output_tf->tf == TRANSFER_FUNCTION_GAMMA22 || in cm3_helper_translate_curve_to_hw_format()
134 output_tf->tf == TRANSFER_FUNCTION_HLG) { in cm3_helper_translate_curve_to_hw_format()
181 rgb_resulted[j].red = output_tf->tf_pts.red[i]; in cm3_helper_translate_curve_to_hw_format()
182 rgb_resulted[j].green = output_tf->tf_pts.green[i]; in cm3_helper_translate_curve_to_hw_format()
183 rgb_resulted[j].blue = output_tf->tf_pts.blue[i]; in cm3_helper_translate_curve_to_hw_format()
190 rgb_resulted[hw_points - 1].red = output_tf->tf_pts.red[start_index]; in cm3_helper_translate_curve_to_hw_format()
191 rgb_resulted[hw_points - 1].green = output_tf->tf_pts.green[start_index]; in cm3_helper_translate_curve_to_hw_format()
192 rgb_resulted[hw_points - 1].blue = output_tf->tf_pts.blue[start_index]; in cm3_helper_translate_curve_to_hw_format()
[all …]
Ddcn30_cm_common.h63 const struct dc_transfer_func *output_tf,
67 const struct dc_transfer_func *output_tf,
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_cm_common.c312 const struct dc_transfer_func *output_tf, in cm_helper_translate_curve_to_hw_format() argument
325 if (output_tf == NULL || lut_params == NULL || output_tf->type == TF_TYPE_BYPASS) in cm_helper_translate_curve_to_hw_format()
335 if (output_tf->tf == TRANSFER_FUNCTION_PQ || output_tf->tf == TRANSFER_FUNCTION_GAMMA22) { in cm_helper_translate_curve_to_hw_format()
382 rgb_resulted[j].red = output_tf->tf_pts.red[i]; in cm_helper_translate_curve_to_hw_format()
383 rgb_resulted[j].green = output_tf->tf_pts.green[i]; in cm_helper_translate_curve_to_hw_format()
384 rgb_resulted[j].blue = output_tf->tf_pts.blue[i]; in cm_helper_translate_curve_to_hw_format()
391 rgb_resulted[hw_points - 1].red = output_tf->tf_pts.red[start_index]; in cm_helper_translate_curve_to_hw_format()
392 rgb_resulted[hw_points - 1].green = output_tf->tf_pts.green[start_index]; in cm_helper_translate_curve_to_hw_format()
393 rgb_resulted[hw_points - 1].blue = output_tf->tf_pts.blue[start_index]; in cm_helper_translate_curve_to_hw_format()
431 if (output_tf->tf == TRANSFER_FUNCTION_PQ) { in cm_helper_translate_curve_to_hw_format()
[all …]
Ddcn10_cm_common.h109 const struct dc_transfer_func *output_tf,
113 const struct dc_transfer_func *output_tf,
/linux-6.1.9/drivers/gpu/drm/amd/display/modules/color/
Dcolor_gamma.h109 bool mod_color_calculate_regamma_params(struct dc_transfer_func *output_tf,
115 struct dc_transfer_func *output_tf,
121 bool calculate_user_regamma_coeff(struct dc_transfer_func *output_tf,
126 bool calculate_user_regamma_ramp(struct dc_transfer_func *output_tf,
Dcolor_gamma.c1757 bool calculate_user_regamma_coeff(struct dc_transfer_func *output_tf, in calculate_user_regamma_coeff() argument
1784 output_tf->tf_pts.red[i] = dc_fixpt_zero; in calculate_user_regamma_coeff()
1785 output_tf->tf_pts.green[i] = dc_fixpt_zero; in calculate_user_regamma_coeff()
1786 output_tf->tf_pts.blue[i] = dc_fixpt_zero; in calculate_user_regamma_coeff()
1791 output_tf->tf_pts.red[i] = translate_from_linear_space_ex( in calculate_user_regamma_coeff()
1793 output_tf->tf_pts.green[i] = translate_from_linear_space_ex( in calculate_user_regamma_coeff()
1795 output_tf->tf_pts.blue[i] = translate_from_linear_space_ex( in calculate_user_regamma_coeff()
1802 apply_lut_1d(ramp, MAX_HW_POINTS, &output_tf->tf_pts); in calculate_user_regamma_coeff()
1805 build_new_custom_resulted_curve(MAX_HW_POINTS, &output_tf->tf_pts); in calculate_user_regamma_coeff()
1806 output_tf->type = TF_TYPE_DISTRIBUTED_POINTS; in calculate_user_regamma_coeff()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_hw_sequencer.c439 dce110_translate_regamma_to_hw_format(const struct dc_transfer_func *output_tf, in dce110_translate_regamma_to_hw_format() argument
455 if (output_tf == NULL || regamma_params == NULL || output_tf->type == TF_TYPE_BYPASS) in dce110_translate_regamma_to_hw_format()
464 if (output_tf->tf == TRANSFER_FUNCTION_PQ) { in dce110_translate_regamma_to_hw_format()
516 rgb_resulted[j].red = output_tf->tf_pts.red[i]; in dce110_translate_regamma_to_hw_format()
517 rgb_resulted[j].green = output_tf->tf_pts.green[i]; in dce110_translate_regamma_to_hw_format()
518 rgb_resulted[j].blue = output_tf->tf_pts.blue[i]; in dce110_translate_regamma_to_hw_format()
525 rgb_resulted[hw_points - 1].red = output_tf->tf_pts.red[start_index]; in dce110_translate_regamma_to_hw_format()
526 rgb_resulted[hw_points - 1].green = output_tf->tf_pts.green[start_index]; in dce110_translate_regamma_to_hw_format()
527 rgb_resulted[hw_points - 1].blue = output_tf->tf_pts.blue[start_index]; in dce110_translate_regamma_to_hw_format()
557 if (output_tf->tf == TRANSFER_FUNCTION_PQ) { in dce110_translate_regamma_to_hw_format()