From: Øyvind Kolås Date: Thu, 6 Dec 2018 21:10:02 +0000 (+0100) Subject: tests: add code that processes a palette format with changed space X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~12^2~13 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=231c40c05aadba839ef2aab605a9c8c72d42eb25;p=babl.git tests: add code that processes a palette format with changed space --- 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; }