From 311e440f30c218015d17fb390f50829f430d5128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juha=20Vehvil=C3=A4inen?= Date: Tue, 9 Jul 2002 12:19:44 +0000 Subject: PixelPack002 by Olaf Matthes svn path=/trunk/Framestein/; revision=30 --- Plugins/multiply.c | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 Plugins/multiply.c (limited to 'Plugins/multiply.c') diff --git a/Plugins/multiply.c b/Plugins/multiply.c new file mode 100644 index 0000000..45aa9bb --- /dev/null +++ b/Plugins/multiply.c @@ -0,0 +1,85 @@ +// +// multiply - multiply of two images +// +// written by Olaf Matthes +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// usage: multiply +// + +#include "plugin.h" + +void perform_effect(struct frame f, struct args a) +{ + printf("Using multiply as effect does nothing!\n"); +} + +void perform_copy(struct frame f1, struct frame f2, struct args a) +{ + short x, y, w, h; + pixel16 *pix1_16, *pix2_16; + pixel24 *pix1_24, *pix2_24; + pixel32 *pix1_32, *pix2_32; + + w = f1.width