[gimp/gimp-2-10] app: in gimp:mask-components, handle half-precision float formats
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: in gimp:mask-components, handle half-precision float formats
- Date: Sat, 16 Feb 2019 18:10:48 +0000 (UTC)
commit 99130068bcae26c775b2892a04f043fcc644d6c7
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
(cherry picked from commit 7c1429d1fff162f2a69b4675533cc89f012dadef)
app/operations/gimpoperationmaskcomponents.cc | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/app/operations/gimpoperationmaskcomponents.cc b/app/operations/gimpoperationmaskcomponents.cc
index 9f55b2c6de..6f4f469e80 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]