From 0d261745b36ba816d19df55c7340c8244a0d0c26 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Tue, 6 Aug 2019 20:13:55 +0200 Subject: [PATCH] babl.h: declared BablModelFlag so gobject introspection understands it --- babl/babl.h | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/babl/babl.h b/babl/babl.h index 71e06cf..e25e519 100644 --- a/babl/babl.h +++ b/babl/babl.h @@ -285,8 +285,21 @@ const Babl * babl_format_get_model (const Babl *format); - -enum _BablModelFlag +/** + * BablModelFlag + * @BABL_MODEL_FLAG_ALPHA: the model encodes alpha. + * @BABL_MODEL_FLAG_ASSOCIATED: the alpha is associated alpha. + * @BABL_MODEL_FLAG_INVERTED: the components are inverted (used for getting the additive complement space of CMYK). + * @BABL_MODEL_FLAG_LINEAR: the data has no TRC, i.e. is linear + * @BABL_MODEL_FLAG_NONLINEAR: the data has a TRC - the TRC from the configured space + * @BABL_MODEL_FLAG_PERCEPTUAL: the data has a TRC - a perceptual TRC where 50% gray is 0.5 + * @BABL_MODEL_FLAG_GRAY: this is a gray component model + * @BABL_MODEL_FLAG_RGB: this is an RGB based component model, the space associated is expected to contain an RGB matrix profile. + * @BABL_MODEL_FLAG_CIE: this model is part of the CIE family of spaces + * @BABL_MODEL_FLAG_CMYK: the encodings described are CMYK encodings, the space associated is expected to contain an CMYK ICC profile. + * + */ +typedef enum { BABL_MODEL_FLAG_ALPHA = 1<<1, BABL_MODEL_FLAG_ASSOCIATED = 1<<2, @@ -302,13 +315,11 @@ enum _BablModelFlag BABL_MODEL_FLAG_CIE = 1<<23, BABL_MODEL_FLAG_CMYK = 1<<24, /* BABL_MODEL_FLAG_LUZ = 1<<25, NYI */ -}; +} BablModelFlag; // XXX : should warn when used #define BABL_MODEL_FLAG_PREMULTIPLIED BABL_MODEL_FLAG_ASSOCIATED -typedef enum _BablModelFlag BablModelFlag; - /* linear, nonlinear and perceptual could occupy two bits with a decidated 0, * but we do not have a lack of bits in this bit pattern so leave it be. */ -- 2.30.2