From: Øyvind Kolås Date: Sun, 26 Aug 2018 21:19:35 +0000 (+0200) Subject: babl: move BABL_ALPHA_FLOOR to public babl header X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~14^2~41 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=edeed3fdc125132762f70ee6e0838d1211959769;p=babl.git babl: move BABL_ALPHA_FLOOR to public babl header --- diff --git a/babl/babl.h b/babl/babl.h index 2e0735d..5a7ca7e 100644 --- a/babl/babl.h +++ b/babl/babl.h @@ -584,6 +584,12 @@ babl_space_from_rgbxyz_matrix (const char *name, */ const char * babl_format_get_encoding (const Babl *babl); +/* values below this are stored premultiplied with this value, + * it can also be used as a generic alpha zero epsilon in GEGL + * + */ +#define BABL_ALPHA_FLOOR (1/65536.0) + #ifdef __cplusplus } #endif diff --git a/babl/base/util.h b/babl/base/util.h index 4d9f536..b16840e 100644 --- a/babl/base/util.h +++ b/babl/base/util.h @@ -30,8 +30,6 @@ */ #define BABL_ALPHA_THRESHOLD 0.000000152590219 - /* values below this are stored premultiplied with this value */ -#define BABL_ALPHA_FLOOR (1/65536.0) #define BABL_PLANAR_SANITY \ { \