// // overlay - overlay 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: overlay // #include #include "plugin.h" INFO("overlay of two images") void perform_effect(struct frame f, struct args a) { printf("Using overlay 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; byte r, g, b; w = f1.width