[babl] reduce set of default RGB spaces
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] reduce set of default RGB spaces
- Date: Wed, 30 Aug 2017 16:03:45 +0000 (UTC)
commit 4050502c943375662ea14411873f5cadbfdaf0fb
Author: Øyvind Kolås <pippin gimp org>
Date: Wed Aug 30 18:03:18 2017 +0200
reduce set of default RGB spaces
babl/babl-space.c | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/babl/babl-space.c b/babl/babl-space.c
index 77d4d42..beecf3c 100644
--- a/babl/babl-space.c
+++ b/babl/babl-space.c
@@ -309,6 +309,15 @@ babl_space_class_init (void)
babl_trc("1.8"), NULL, NULL);
babl_space_from_chromaticities (
+ "WideGamutRGB",
+ 0.34567, 0.3585, /* D50 */
+ 0.7350, 0.2650,
+ 0.1150, 0.8260,
+ 0.1570, 0.0180,
+ babl_trc("2.2"), NULL, NULL);
+
+#if 0
+ babl_space_from_chromaticities (
"Best",
0.34567, 0.3585, /* D50 */
0.7347, 0.2653,
@@ -363,14 +372,7 @@ babl_space_class_init (void)
0.2150, 0.7650,
0.1300, 0.0350,
babl_trc("1.8"), NULL, NULL);
-
- babl_space_from_chromaticities (
- "WideGamutRGB",
- 0.34567, 0.3585, /* D50 */
- 0.7350, 0.2650,
- 0.1150, 0.8260,
- 0.1570, 0.0180,
- babl_trc("2.2"), NULL, NULL);
+#endif
}
void babl_space_to_xyz (const Babl *space, const double *rgb, double *xyz)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]