[gimp] app: make LCH lightness select-criterion faster
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: make LCH lightness select-criterion faster
- Date: Thu, 11 May 2017 21:45:29 +0000 (UTC)
commit b5974d345788f5885c715fef028812d52e0a85f7
Author: Ell <ell_se yahoo com>
Date: Tue May 9 19:30:43 2017 -0400
app: make LCH lightness select-criterion faster
babl already has a faster path for getting L only, than going
through LCH.
app/core/gimppickable-contiguous-region.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimppickable-contiguous-region.c b/app/core/gimppickable-contiguous-region.c
index 3fb8e65..3e0606e 100644
--- a/app/core/gimppickable-contiguous-region.c
+++ b/app/core/gimppickable-contiguous-region.c
@@ -286,6 +286,9 @@ choose_format (GeglBuffer *buffer,
break;
case GIMP_SELECT_CRITERION_LCH_L:
+ format = babl_format ("CIE L alpha float");
+ break;
+
case GIMP_SELECT_CRITERION_LCH_C:
case GIMP_SELECT_CRITERION_LCH_H:
format = babl_format ("CIE LCH(ab) alpha float");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]