Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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,
/kernel/linux/linux-5.10/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,
/kernel/linux/linux-5.10/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,
125 bool calculate_user_regamma_ramp(struct dc_transfer_func *output_tf,
Dcolor_gamma.c1680 bool calculate_user_regamma_coeff(struct dc_transfer_func *output_tf, in calculate_user_regamma_coeff() argument
1706 output_tf->tf_pts.red[i] = dc_fixpt_zero; in calculate_user_regamma_coeff()
1707 output_tf->tf_pts.green[i] = dc_fixpt_zero; in calculate_user_regamma_coeff()
1708 output_tf->tf_pts.blue[i] = dc_fixpt_zero; in calculate_user_regamma_coeff()
1713 output_tf->tf_pts.red[i] = translate_from_linear_space_ex( in calculate_user_regamma_coeff()
1715 output_tf->tf_pts.green[i] = translate_from_linear_space_ex( in calculate_user_regamma_coeff()
1717 output_tf->tf_pts.blue[i] = translate_from_linear_space_ex( in calculate_user_regamma_coeff()
1724 build_new_custom_resulted_curve(MAX_HW_POINTS, &output_tf->tf_pts); in calculate_user_regamma_coeff()
1725 output_tf->type = TF_TYPE_DISTRIBUTED_POINTS; in calculate_user_regamma_coeff()
1730 bool calculate_user_regamma_ramp(struct dc_transfer_func *output_tf, in calculate_user_regamma_ramp() argument
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_hw_sequencer.c432 dce110_translate_regamma_to_hw_format(const struct dc_transfer_func *output_tf, in dce110_translate_regamma_to_hw_format() argument
448 if (output_tf == NULL || regamma_params == NULL || output_tf->type == TF_TYPE_BYPASS) in dce110_translate_regamma_to_hw_format()
457 if (output_tf->tf == TRANSFER_FUNCTION_PQ) { in dce110_translate_regamma_to_hw_format()
509 rgb_resulted[j].red = output_tf->tf_pts.red[i]; in dce110_translate_regamma_to_hw_format()
510 rgb_resulted[j].green = output_tf->tf_pts.green[i]; in dce110_translate_regamma_to_hw_format()
511 rgb_resulted[j].blue = output_tf->tf_pts.blue[i]; in dce110_translate_regamma_to_hw_format()
518 rgb_resulted[hw_points - 1].red = output_tf->tf_pts.red[start_index]; in dce110_translate_regamma_to_hw_format()
519 rgb_resulted[hw_points - 1].green = output_tf->tf_pts.green[start_index]; in dce110_translate_regamma_to_hw_format()
520 rgb_resulted[hw_points - 1].blue = output_tf->tf_pts.blue[start_index]; in dce110_translate_regamma_to_hw_format()
550 if (output_tf->tf == TRANSFER_FUNCTION_PQ) { in dce110_translate_regamma_to_hw_format()