mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 04:40:07 +01:00
color: drop weston_color_curve_from_tf_info()
This was never used, and I happened to write a slightly different version of it in color-lcms. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
bcfa2724d2
commit
7b5053f7fa
2 changed files with 0 additions and 35 deletions
|
|
@ -196,35 +196,6 @@ weston_color_profile_params_to_str(struct weston_color_profile_params *params,
|
|||
return str;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a struct weston_color_curve given a transfer function.
|
||||
*
|
||||
* \param curve The curve to initialize.
|
||||
* \param tf_info The tf_info object.
|
||||
* \param tf_params When the tf is parametric, this is required. Otherwise,
|
||||
* this is ignored.
|
||||
* \param tf_direction Determines if this inits a curve equivalent to the direct
|
||||
* or the inverse of the tf.
|
||||
*/
|
||||
WL_EXPORT void
|
||||
weston_color_curve_from_tf_info(struct weston_color_curve *curve,
|
||||
const struct weston_color_tf_info *tf_info,
|
||||
const float tf_params[MAX_PARAMS_TF],
|
||||
enum weston_tf_direction tf_direction)
|
||||
{
|
||||
unsigned int i, j;
|
||||
|
||||
curve->type = WESTON_COLOR_CURVE_TYPE_ENUM;
|
||||
|
||||
curve->u.enumerated.tf = tf_info;
|
||||
curve->u.enumerated.tf_direction = tf_direction;
|
||||
|
||||
for (j = 0; j < tf_info->count_parameters; j++) {
|
||||
for (i = 0; i < 3; i++)
|
||||
curve->u.enumerated.params[i][j] = tf_params[j];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Given an enumerated color curve, returns an equivalent parametric curve.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -656,12 +656,6 @@ weston_color_curve_enum_get_parametric(struct weston_compositor *compositor,
|
|||
const struct weston_color_curve_enum *curve,
|
||||
struct weston_color_curve_parametric *out);
|
||||
|
||||
void
|
||||
weston_color_curve_from_tf_info(struct weston_color_curve *curve,
|
||||
const struct weston_color_tf_info *tf_info,
|
||||
const float tf_params[MAX_PARAMS_TF],
|
||||
enum weston_tf_direction tf_direction);
|
||||
|
||||
enum weston_color_curve_step {
|
||||
WESTON_COLOR_CURVE_STEP_PRE,
|
||||
WESTON_COLOR_CURVE_STEP_POST,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue