From: Øyvind Kolås Date: Tue, 28 May 2019 21:32:34 +0000 (+0200) Subject: remove unused file conversions-type.c X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~11^2~111 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5a54c1381704164ac15c5a48900257126f4ab2a2;p=babl.git remove unused file conversions-type.c Really resolving merge request !12 this time. --- 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: diff --git a/babl/base/conversions-type.c b/babl/base/conversions-type.c deleted file mode 100644 index 5ac1745..0000000 --- a/babl/base/conversions-type.c +++ /dev/null @@ -1,24 +0,0 @@ -/* babl - dynamically extendable universal pixel conversion library. - * Copyright (C) 2005, Øyvind KolÃ¥s. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, see - * . - */ - -#include "config.h" -#include -#include "babl.h" -#include - -