[babl: 5/6] tests: add code that processes a palette format with changed space
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl: 5/6] tests: add code that processes a palette format with changed space
- Date: Thu, 6 Dec 2018 21:14:14 +0000 (UTC)
commit 231c40c05aadba839ef2aab605a9c8c72d42eb25
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Dec 6 22:10:02 2018 +0100
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]