[gegl] noise-hurl: use babl_model_is
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] noise-hurl: use babl_model_is
- Date: Wed, 11 Jul 2018 21:46:32 +0000 (UTC)
commit f801a01fa89568c087b66478f4abe4ca93def589
Author: Øyvind Kolås <pippin gimp org>
Date: Wed Jul 11 23:44:48 2018 +0200
noise-hurl: use babl_model_is
operations/common/noise-hurl.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/operations/common/noise-hurl.c b/operations/common/noise-hurl.c
index 3146d4c40..81b453d89 100644
--- a/operations/common/noise-hurl.c
+++ b/operations/common/noise-hurl.c
@@ -58,10 +58,12 @@ prepare (GeglOperation *operation)
if (input_format)
{
- if (babl_format_get_model (input_format) == babl_model ("Y'") ||
- babl_format_get_model (input_format) == babl_model ("Y'A") ||
- babl_format_get_model (input_format) == babl_model ("Y") ||
- babl_format_get_model (input_format) == babl_model ("YA"))
+ const Babl *model = babl_format_get_model (input_format);
+
+ if (babl_model_is (model, "Y'") ||
+ babl_model_is (model, "Y'A") ||
+ babl_model_is (model, "Y") ||
+ babl_model_is (model, "YA"))
o->user_data = (void*)0x1;
/* a bit hacky, signaling of data being grayscale data and only
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]