From 2c0ff9a3b414e524b67a515320dd953dc33f99e9 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 14 Jun 2022 16:18:43 +0300 Subject: [PATCH] tests/color_util: expose color_float_apply_curve() I will be needing this in color-icc-output blending test. Signed-off-by: Pekka Paalanen --- tests/color_util.c | 2 +- tests/color_util.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/color_util.c b/tests/color_util.c index da5eb5a3..fc406d87 100644 --- a/tests/color_util.c +++ b/tests/color_util.c @@ -257,7 +257,7 @@ a8r8g8b8_to_float(uint32_t v) return cf; } -static struct color_float +struct color_float color_float_apply_curve(enum transfer_fn fn, struct color_float c) { unsigned i; diff --git a/tests/color_util.h b/tests/color_util.h index fab42440..a5003fa8 100644 --- a/tests/color_util.h +++ b/tests/color_util.h @@ -111,6 +111,9 @@ process_pixel_using_pipeline(enum transfer_fn pre_curve, struct color_float color_float_unpremult(struct color_float in); +struct color_float +color_float_apply_curve(enum transfer_fn fn, struct color_float c); + struct color_float color_float_apply_matrix(const struct lcmsMAT3 *mat, struct color_float c);