summaryrefslogtreecommitdiff
path: root/babl/babl-internal.h
diff options
context:
space:
mode:
authorØyvind Kolås <pippin@gimp.org>2018-01-14 22:49:40 +0100
committerØyvind Kolås <pippin@gimp.org>2018-01-14 23:30:11 +0100
commit9debb9d7f68afb5b9028343e3b33cbf4aa7edc6c (patch)
tree012223465396bab58c82c880643244e440f01c7d /babl/babl-internal.h
parentc159b6314e11984ee390a6c793070868cb304c36 (diff)
babl: refactor code to get rid of more branches in babl_process
In the best case scenario now, babl_process increments instrumentation counters and directly calls the relevant registered fast path function, with no additional call stack frames in-between.
Diffstat (limited to 'babl/babl-internal.h')
-rw-r--r--babl/babl-internal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/babl/babl-internal.h b/babl/babl-internal.h
index 337541b..9d29b47 100644
--- a/babl/babl-internal.h
+++ b/babl/babl-internal.h
@@ -78,7 +78,8 @@ void babl_extension_deinit (void);
void babl_fish_reference_process (const Babl *babl,
const char *source,
char *destination,
- long n);
+ long n,
+ void *data); // data is ignored
Babl * babl_fish_reference (const Babl *source,
const Babl *destination);
@@ -495,4 +496,6 @@ babl_conversion_process (const Babl *babl,
conversion->dispatch (babl, source, destination, n, conversion->data);
}
+void _babl_fish_rig_dispatch (Babl *babl);
+
#endif