/* alphaout.cpp * Copyright (C) 2005 Jean-Sebastien Senecal (js@drone.ws) * This file is a Frei0r plugin. * * 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "frei0r.hpp" #include "frei0r_math.h" #include class alphaover : public frei0r::mixer2 { public: alphaover(unsigned int width, unsigned int height) { } void update() { uint8_t *dst = reinterpret_cast(out); const uint8_t *src1 = reinterpret_cast(in1); const uint8_t *src2 = reinterpret_cast(in2); for (int i=0; i plugin("alphaover", "the alpha OVER operation", "Jean-Sebastien Senecal", 0,1, F0R_COLOR_MODEL_RGBA8888);