diff options
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 |
commit | 9debb9d7f68afb5b9028343e3b33cbf4aa7edc6c (patch) | |
tree | 012223465396bab58c82c880643244e440f01c7d /babl/babl-internal.h | |
parent | c159b6314e11984ee390a6c793070868cb304c36 (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.h | 5 |
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 |