[babl] babl: prepare babl_fish_process for direct calling



commit 7ed3fe06526a5774d142fcd097ced0812dc7c24a
Author: Øyvind Kolås <pippin gimp org>
Date:   Sun Jan 7 00:35:22 2018 +0100

    babl: prepare babl_fish_process for direct calling

 babl/babl-fish-path.c |   27 +++++++++++++++++++++------
 export-symbols        |    2 +-
 2 files changed, 22 insertions(+), 7 deletions(-)
---
diff --git a/babl/babl-fish-path.c b/babl/babl-fish-path.c
index 4b087fc..7878c1c 100644
--- a/babl/babl-fish-path.c
+++ b/babl/babl-fish-path.c
@@ -608,7 +608,7 @@ babl_fish_path (const Babl *source,
 }
 
 static long
-babl_fish_path_process (Babl       *babl,
+babl_fish_path_process (const Babl *babl,
                         const void *source,
                         void       *destination,
                         long        n)
@@ -651,10 +651,10 @@ babl_fish_path_process (Babl       *babl,
 }
 
 static long
-babl_fish_process (Babl       *babl,
-                   const void *source,
-                   void       *destination,
-                   long        n)
+_babl_fish_process (const Babl *babl,
+                    const void *source,
+                    void       *destination,
+                    long        n)
 {
   long ret = 0;
 
@@ -697,6 +697,21 @@ babl_fish_process (Babl       *babl,
 }
 
 long
+babl_fish_process (const Babl *babl,
+                   const void *source,
+                   void       *destination,
+                   long        n);
+
+long
+babl_fish_process (const Babl *babl,
+                   const void *source,
+                   void       *destination,
+                   long        n)
+{
+  return _babl_fish_process (babl, source, destination, n);
+}
+
+long
 babl_process (const Babl *cbabl,
               const void *source,
               void       *destination,
@@ -717,7 +732,7 @@ babl_process (const Babl *cbabl,
     {
       babl->fish.processings++;
       babl->fish.pixels +=
-             babl_fish_process (babl, source, destination, n);
+             _babl_fish_process (babl, source, destination, n);
       return n;
     }
 
diff --git a/export-symbols b/export-symbols
index f85fec9..d229698 100644
--- a/export-symbols
+++ b/export-symbols
@@ -36,7 +36,7 @@ babl_new_palette
 babl_palette_reset
 babl_palette_set_palette
 babl_process
-babl_process
+babl_fish_process
 babl_sampling
 babl_set_user_data
 babl_space


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