[babl] remove babl_process_cost
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] remove babl_process_cost
- Date: Sun, 20 Nov 2016 09:35:56 +0000 (UTC)
commit aba8335da94c4867e04cdbad431cf7fd1e6298d6
Author: Øyvind Kolås <pippin gimp org>
Date: Sat Nov 19 15:01:14 2016 +0100
remove babl_process_cost
babl/babl-conversion.c | 2 +-
babl/babl-fish-path.c | 4 ++--
babl/babl-util.c | 7 -------
babl/babl-util.h | 4 ----
4 files changed, 3 insertions(+), 14 deletions(-)
---
diff --git a/babl/babl-conversion.c b/babl/babl-conversion.c
index 37453e0..dbdce50 100644
--- a/babl/babl-conversion.c
+++ b/babl/babl-conversion.c
@@ -543,7 +543,7 @@ babl_conversion_error (BablConversion *conversion)
babl_free (ref_destination_rgba_double);
conversion->error = error;
- conversion->cost = babl_process_cost (ticks_start, ticks_end);
+ conversion->cost = ticks_end - ticks_start;
return error;
}
diff --git a/babl/babl-fish-path.c b/babl/babl-fish-path.c
index acad60e..51fbe69 100644
--- a/babl/babl-fish-path.c
+++ b/babl/babl-fish-path.c
@@ -606,7 +606,7 @@ init_path_instrumentation (FishPathInstrumentation *fpi,
babl_process (fpi->fish_reference,
fpi->source, fpi->ref_destination, fpi->num_test_pixels);
ticks_end = babl_ticks ();
- fpi->reference_cost = babl_process_cost (ticks_start, ticks_end);
+ fpi->reference_cost = ticks_end - ticks_start;
/* transform the reference destination buffer to RGBA */
babl_process (fpi->fish_destination_to_rgba,
@@ -682,7 +682,7 @@ get_path_instrumentation (FishPathInstrumentation *fpi,
ticks_start = babl_ticks ();
process_conversion_path (path, fpi->source, source_bpp, fpi->destination, dest_bpp, fpi->num_test_pixels);
ticks_end = babl_ticks ();
- *path_cost = babl_process_cost (ticks_start, ticks_end);
+ *path_cost = ticks_end - ticks_start;
/* transform the reference and the actual destination buffers to RGBA
* for comparison with each other
diff --git a/babl/babl-util.c b/babl/babl-util.c
index b9dd1e4..01a5e97 100644
--- a/babl/babl-util.c
+++ b/babl/babl-util.c
@@ -80,13 +80,6 @@ babl_ticks (void)
}
#endif
-long
-babl_process_cost (long ticks_start,
- long ticks_end)
-{
- return (ticks_end - ticks_start);
-}
-
double
babl_rel_avg_error (const double *imgA,
const double *imgB,
diff --git a/babl/babl-util.h b/babl/babl-util.h
index e04120e..05ebdf4 100644
--- a/babl/babl-util.h
+++ b/babl/babl-util.h
@@ -22,10 +22,6 @@
long
babl_ticks (void);
-long
-babl_process_cost (long ticks_start,
- long ticks_end);
-
double
babl_rel_avg_error (const double *imgA,
const double *imgB,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]