Home
last modified time | relevance | path

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

/linux-6.6.21/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.6.21/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_cm_common.c315 const struct dc_transfer_func *output_tf, in cm_helper_translate_curve_to_hw_format() argument
328 if (output_tf == NULL || lut_params == NULL || output_tf->type == TF_TYPE_BYPASS) in cm_helper_translate_curve_to_hw_format()
338 if (output_tf->tf == TRANSFER_FUNCTION_PQ || output_tf->tf == TRANSFER_FUNCTION_GAMMA22) { in cm_helper_translate_curve_to_hw_format()
385 rgb_resulted[j].red = output_tf->tf_pts.red[i]; in cm_helper_translate_curve_to_hw_format()
386 rgb_resulted[j].green = output_tf->tf_pts.green[i]; in cm_helper_translate_curve_to_hw_format()
387 rgb_resulted[j].blue = output_tf->tf_pts.blue[i]; in cm_helper_translate_curve_to_hw_format()
394 rgb_resulted[hw_points - 1].red = output_tf->tf_pts.red[start_index]; in cm_helper_translate_curve_to_hw_format()
395 rgb_resulted[hw_points - 1].green = output_tf->tf_pts.green[start_index]; in cm_helper_translate_curve_to_hw_format()
396 rgb_resulted[hw_points - 1].blue = output_tf->tf_pts.blue[start_index]; in cm_helper_translate_curve_to_hw_format()
434 if (output_tf->tf == TRANSFER_FUNCTION_PQ) { in cm_helper_translate_curve_to_hw_format()
[all …]
Ddcn10_cm_common.h110 const struct dc_transfer_func *output_tf,
114 const struct dc_transfer_func *output_tf,
/linux-6.6.21/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,
118 bool calculate_user_regamma_coeff(struct dc_transfer_func *output_tf,
123 bool calculate_user_regamma_ramp(struct dc_transfer_func *output_tf,
Dcolor_gamma.c1756 bool calculate_user_regamma_coeff(struct dc_transfer_func *output_tf, in calculate_user_regamma_coeff() argument
1783 output_tf->tf_pts.red[i] = dc_fixpt_zero; in calculate_user_regamma_coeff()
1784 output_tf->tf_pts.green[i] = dc_fixpt_zero; in calculate_user_regamma_coeff()
1785 output_tf->tf_pts.blue[i] = dc_fixpt_zero; in calculate_user_regamma_coeff()
1790 output_tf->tf_pts.red[i] = translate_from_linear_space_ex( in calculate_user_regamma_coeff()
1792 output_tf->tf_pts.green[i] = translate_from_linear_space_ex( in calculate_user_regamma_coeff()
1794 output_tf->tf_pts.blue[i] = translate_from_linear_space_ex( in calculate_user_regamma_coeff()
1801 apply_lut_1d(ramp, MAX_HW_POINTS, &output_tf->tf_pts); in calculate_user_regamma_coeff()
1804 build_new_custom_resulted_curve(MAX_HW_POINTS, &output_tf->tf_pts); in calculate_user_regamma_coeff()
1805 output_tf->type = TF_TYPE_DISTRIBUTED_POINTS; in calculate_user_regamma_coeff()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_hw_sequencer.c434 dce110_translate_regamma_to_hw_format(const struct dc_transfer_func *output_tf, in dce110_translate_regamma_to_hw_format() argument
450 if (output_tf == NULL || regamma_params == NULL || output_tf->type == TF_TYPE_BYPASS) in dce110_translate_regamma_to_hw_format()
459 if (output_tf->tf == TRANSFER_FUNCTION_PQ) { in dce110_translate_regamma_to_hw_format()
511 rgb_resulted[j].red = output_tf->tf_pts.red[i]; in dce110_translate_regamma_to_hw_format()
512 rgb_resulted[j].green = output_tf->tf_pts.green[i]; in dce110_translate_regamma_to_hw_format()
513 rgb_resulted[j].blue = output_tf->tf_pts.blue[i]; in dce110_translate_regamma_to_hw_format()
520 rgb_resulted[hw_points - 1].red = output_tf->tf_pts.red[start_index]; in dce110_translate_regamma_to_hw_format()
521 rgb_resulted[hw_points - 1].green = output_tf->tf_pts.green[start_index]; in dce110_translate_regamma_to_hw_format()
522 rgb_resulted[hw_points - 1].blue = output_tf->tf_pts.blue[start_index]; in dce110_translate_regamma_to_hw_format()
552 if (output_tf->tf == TRANSFER_FUNCTION_PQ) { in dce110_translate_regamma_to_hw_format()