[babl] babl: remove some redundant processing in babl_fish_reference



commit 351303d40195e234ad78d4b01be2f22200d16780
Author: Øyvind Kolås <pippin gimp org>
Date:   Sun Feb 24 18:25:14 2019 +0100

    babl: remove some redundant processing in babl_fish_reference

 babl/babl-fish-reference.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/babl/babl-fish-reference.c b/babl/babl-fish-reference.c
index d05dc61..f9e2122 100644
--- a/babl/babl-fish-reference.c
+++ b/babl/babl-fish-reference.c
@@ -1229,15 +1229,14 @@ babl_fish_reference_process_float (const Babl *babl,
     }
     {
       sprintf (dst_name, "%s float", babl_get_name((void*)babl->fish.destination->format.model));
+      destination_float_format =
+        babl_format_with_space (dst_name,
+                   BABL (BABL ((babl->fish.destination))->format.space));
       conv_from_rgba  =
         babl_conversion_find (
         babl_format_with_space ("RGBA float",
                    BABL (BABL ((babl->fish.destination))->format.space)),
-        babl_format_with_space (dst_name,
-                   BABL (BABL ((babl->fish.destination))->format.space)));
-      destination_float_format =
-        babl_format_with_space (dst_name,
-                   BABL (BABL ((babl->fish.destination))->format.space));
+                   destination_float_format);
     }
 
     if (!conv_to_rgba || !conv_from_rgba)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]