[babl] base: add half version of CMYK formats



commit 00d9838859640597e0eb835e10e769524179b413
Author: Øyvind Kolås <pippin gimp org>
Date:   Sat Dec 1 21:35:46 2018 +0100

    base: add half version of CMYK formats

 babl/base/model-cmyk.c | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
---
diff --git a/babl/base/model-cmyk.c b/babl/base/model-cmyk.c
index a550427..c689d28 100644
--- a/babl/base/model-cmyk.c
+++ b/babl/base/model-cmyk.c
@@ -924,6 +924,28 @@ babl_base_model_cmyk (void)
     babl_component ("A"),
     NULL
   );
+
+  babl_format_new (
+    "name", "cmyk half",
+    babl_model ("cmyk"),
+    babl_type ("half"),
+    babl_component ("cyan"),
+    babl_component ("magenta"),
+    babl_component ("yellow"),
+    babl_component ("key"),
+    NULL
+  );
+  babl_format_new (
+    "name", "cmykA half",
+    babl_model ("cmykA"),
+    babl_type ("half"),
+    babl_component ("cyan"),
+    babl_component ("magenta"),
+    babl_component ("yellow"),
+    babl_component ("key"),
+    babl_component ("A"),
+    NULL
+  );
   babl_format_new (
     "name", "camayakaA u16",
     babl_model ("camayakaA"),
@@ -980,6 +1002,27 @@ babl_base_model_cmyk (void)
     babl_component ("Key"),
     NULL
   );
+  babl_format_new (
+    "name", "CMYKA half",
+    babl_model ("CMYKA"),
+    babl_type ("half"),
+    babl_component ("Cyan"),
+    babl_component ("Magenta"),
+    babl_component ("Yellow"),
+    babl_component ("Key"),
+    babl_component ("A"),
+    NULL
+  );
+  babl_format_new (
+    "name", "CMYK half",
+    babl_model ("CMYK"),
+    babl_type ("half"),
+    babl_component ("Cyan"),
+    babl_component ("Magenta"),
+    babl_component ("Yellow"),
+    babl_component ("Key"),
+    NULL
+  );
 
   babl_format_new (
     "name", "CMYK u8",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]