diff options
author | Jeff Muizelaar <jeff@infidigm.net> | 2005-08-05 11:15:04 +0000 |
---|---|---|
committer | Jeff Muizelaar <jeff@infidigm.net> | 2005-08-05 11:15:04 +0000 |
commit | 5f78feda5d9819f82ff99911b90cd09e228466a9 (patch) | |
tree | 1c423c861e296aa707975ec410e8c530da819fa0 /test/buffer-diff.h | |
parent | 2e1eaa88ff07fbd2048c76587cd6b9ca565fa047 (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.h | 14 |
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. |