[babl] remove unused file conversions-type.c
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] remove unused file conversions-type.c
- Date: Tue, 28 May 2019 21:34:46 +0000 (UTC)
commit 5a54c1381704164ac15c5a48900257126f4ab2a2
Author: Øyvind Kolås <pippin gimp org>
Date: Tue May 28 23:32:34 2019 +0200
remove unused file conversions-type.c
Really resolving merge request !12 this time.
babl/babl-space.c | 12 ++++++++++++
babl/babl.h | 8 ++++++++
babl/base/conversions-type.c | 24 ------------------------
3 files changed, 20 insertions(+), 24 deletions(-)
---
diff --git a/babl/babl-space.c b/babl/babl-space.c
index ebf05be..f64ca3b 100644
--- a/babl/babl-space.c
+++ b/babl/babl-space.c
@@ -1218,3 +1218,15 @@ babl_space_is_cmyk (const Babl *space)
* of Adobe Systems Incorporated in many countires.
*/
+const double *
+babl_space_get_RGBtoXYZ (const Babl *space)
+{
+ return &space->space.RGBtoXYZ[0];
+}
+
+const double *
+babl_space_get_XYZtoRGB (const Babl *space)
+{
+ return &space->space.XYZtoRGB[0];
+}
+
diff --git a/babl/babl.h b/babl/babl.h
index 3b2fa68..8e71fac 100644
--- a/babl/babl.h
+++ b/babl/babl.h
@@ -577,6 +577,14 @@ void babl_space_get (const Babl *space,
const Babl **green_trc,
const Babl **blue_trc);
+/* returns a pointer to the 9 element RGB to XYZ matrix */
+const double *
+babl_space_get_RGBtoXYZ (const Babl *space);
+
+/* returns a pointer to the 9 element XYZ to RGB matrix */
+const double *
+babl_space_get_XYZtoRGB (const Babl *space);
+
/**
* babl_model_is:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]