[gimp] app: in gimp:mask-components, handle half-precision float formats
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: in gimp:mask-components, handle half-precision float formats
- Date: Sat, 16 Feb 2019 18:11:03 +0000 (UTC)
commit 7c1429d1fff162f2a69b4675533cc89f012dadef
Author: Ell <ell_se yahoo com>
Date: Sat Feb 16 13:06:24 2019 -0500
app: in gimp:mask-components, handle half-precision float formats
app/operations/gimpoperationmaskcomponents.cc | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/app/operations/gimpoperationmaskcomponents.cc b/app/operations/gimpoperationmaskcomponents.cc
index 459b41092c..f0f1142bed 100644
--- a/app/operations/gimpoperationmaskcomponents.cc
+++ b/app/operations/gimpoperationmaskcomponents.cc
@@ -397,6 +397,8 @@ gimp_operation_mask_components_get_format (const Babl *input_format)
format = babl_format ("RGBA u16");
else if (! strcmp (type_name, "u32"))
format = babl_format ("RGBA u32");
+ else if (! strcmp (type_name, "half"))
+ format = babl_format ("RGBA half");
else if (! strcmp (type_name, "float"))
format = babl_format ("RGBA float");
}
@@ -412,6 +414,8 @@ gimp_operation_mask_components_get_format (const Babl *input_format)
format = babl_format ("R'G'B'A u16");
else if (! strcmp (type_name, "u32"))
format = babl_format ("R'G'B'A u32");
+ else if (! strcmp (type_name, "half"))
+ format = babl_format ("R'G'B'A half");
else if (! strcmp (type_name, "float"))
format = babl_format ("R'G'B'A float");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]