From 231c40c05aadba839ef2aab605a9c8c72d42eb25 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Thu, 6 Dec 2018 22:10:02 +0100 Subject: [PATCH] tests: add code that processes a palette format with changed space --- tests/palette.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/palette.c b/tests/palette.c index 4a204e1..fcc25b8 100644 --- a/tests/palette.c +++ b/tests/palette.c @@ -138,9 +138,29 @@ main (int argc, CHECK_CONV("rgba to float pal", unsigned char, pal, babl_format("RGBA u8"), in, out); + + { + const Babl *p2; + p2 = babl_format_with_space ((void*)pal, babl_space ("ACEScg")); + + + fprintf (stderr, "%p\n", p2); + fprintf (stderr, "%s\n", babl_get_name (pal)); + fprintf (stderr, "%s\n", babl_get_name (p2)); + + + CHECK_CONV("rgba to float pal", unsigned char, + p2, babl_format("RGBA u8"), + in, out); + + + } + } #endif + + babl_exit (); return !OK; } -- 2.30.2