From: ellson Date: Wed, 13 Jul 2005 12:02:04 +0000 (+0000) Subject: add some comments X-Git-Tag: LAST_LIBGRAPH~32^2~7464 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ed5909dcc5beff2c10d09e706604b55ad2407b7;p=graphviz add some comments --- diff --git a/contrib/diffimg/Makefile b/contrib/diffimg/Makefile index 33b02dcaf..23d972d4d 100644 --- a/contrib/diffimg/Makefile +++ b/contrib/diffimg/Makefile @@ -1,3 +1,6 @@ +VERSION=0.1 + +CFLAGS=-O2 -Wall -DVERSION="$(VERSION)" LDFLAGS = -lgd diffimg: diffimg.o @@ -11,5 +14,12 @@ test: diffimg echo $(GRAPH) | dot -Grankdir=LR -Tpng:cg >hello2.png ./diffimg hello1.png hello2.png >test2.png +dist: clean + mkdir diffimg-$(VERSION) + tar cf - --exclude diffimg-$(VERSION) . | (cd diffimg-$(VERSION); tar xf -) + tar czf - diffimg-$(VERSION) >diffimg-$(VERSION).tgz + rm -rf diffimg-$(VERSION) + clean: - rm -f diffimg *.o *.png + rm -f diffimg *.o *.png *,tgz + diff --git a/contrib/diffimg/diffimg.c b/contrib/diffimg/diffimg.c index 16a6b93a3..5055bf326 100644 --- a/contrib/diffimg/diffimg.c +++ b/contrib/diffimg/diffimg.c @@ -1,3 +1,30 @@ +/* $Id$ $Revision$ */ +/* vim:set shiftwidth=4 ts=8: */ + +/********************************************************** +* This software is part of the graphviz package * +* http://www.graphviz.org/ * +* * +* Copyright (c) 1994-2004 AT&T Corp. * +* and is licensed under the * +* Common Public License, Version 1.0 * +* by AT&T Corp. * +* * +* Information and Software Systems Research * +* AT&T Research, Florham Park NJ * +**********************************************************/ + +/* + * This program generates an image where each pixel is the difference between + * the corresponding pixel in each of the two source images. Thus, if the source images + * are the same the resulting image will be black, otherwise it will have regions of + * non-black where the images differ. + * + * Currently only supports PNG images. + * + * John Ellson + */ + #include #include #include