Back to index

lightning-sunbird  0.9+nobinonly
buffer_diff.h
Go to the documentation of this file.
00001 /* imagediff - Compare two images
00002  *
00003  * Copyright © 2004 Richard D. Worth
00004  *
00005  * Permission to use, copy, modify, distribute, and sell this software
00006  * and its documentation for any purpose is hereby granted without
00007  * fee, provided that the above copyright notice appear in all copies
00008  * and that both that copyright notice and this permission notice
00009  * appear in supporting documentation, and that the name of Richard Worth
00010  * not be used in advertising or publicity pertaining to distribution
00011  * of the software without specific, written prior permission.
00012  * Richard Worth makes no representations about the suitability of this
00013  * software for any purpose.  It is provided "as is" without express
00014  * or implied warranty.
00015  * 
00016  * RICHARD WORTH DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
00017  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
00018  * NO EVENT SHALL RICHARD WORTH BE LIABLE FOR ANY SPECIAL, INDIRECT OR
00019  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
00020  * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
00021  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
00022  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
00023  *
00024  * Author: Richard D. Worth <richard@theworths.org> */
00025 
00026 #ifndef BUFFER_DIFF_H
00027 #define BUFFER_DIFF_H
00028 
00029 /* Image comparison code courttesy of Richard Worth.
00030  * Returns number of pixels changed.
00031  * Also fills out a "diff" image intended to visually show where the
00032  * images differ.
00033  */
00034 int
00035 buffer_diff (char *buf_a, char *buf_b, char *buf_diff,
00036             int width, int height, int stride);
00037 
00038 #endif