tests/color_util: expose color_float_apply_curve()

I will be needing this in color-icc-output blending test.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2022-06-14 16:18:43 +03:00 committed by Pekka Paalanen
parent 77fb2f56af
commit 2c0ff9a3b4
2 changed files with 4 additions and 1 deletions

View file

@ -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;

View file

@ -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);