summaryrefslogtreecommitdiff
path: root/test/buffer-diff.h
diff options
context:
space:
mode:
authorJeff Muizelaar <jeff@infidigm.net>2005-08-05 11:15:04 +0000
committerJeff Muizelaar <jeff@infidigm.net>2005-08-05 11:15:04 +0000
commit5f78feda5d9819f82ff99911b90cd09e228466a9 (patch)
tree1c423c861e296aa707975ec410e8c530da819fa0 /test/buffer-diff.h
parent2e1eaa88ff07fbd2048c76587cd6b9ca565fa047 (diff)
rewrite buffer_diff to be endian safe and add a new fuction buffer_diff_noalpha
Diffstat (limited to 'test/buffer-diff.h')
-rw-r--r--test/buffer-diff.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/buffer-diff.h b/test/buffer-diff.h
index a02834f3d..2734713a3 100644
--- a/test/buffer-diff.h
+++ b/test/buffer-diff.h
@@ -26,7 +26,7 @@
#ifndef BUFFER_DIFF_H
#define BUFFER_DIFF_H
-/* Returns number of pixels changed, (or -1 on error).
+/* Returns number of pixels changed.
* Also fills in a "diff" buffer intended to visually show where the
* images differ.
*/
@@ -38,6 +38,18 @@ buffer_diff (unsigned char *buf_a,
int height,
int stride);
+/* Returns number of pixels changed ignoring the alpha channel.
+ * Also fills in a "diff" buffer intended to visually show where the
+ * images differ.
+ */
+int
+buffer_diff_noalpha (unsigned char *buf_a,
+ unsigned char *buf_b,
+ unsigned char *buf_diff,
+ int width,
+ int height,
+ int stride);
+
/* Returns number of pixels changed, (or -1 on error).
* Also saves a "diff" image intended to visually show where the
* images differ.