|
Blender
V2.59
|
00001 /* 00002 * $Id: pixelblending.h 35233 2011-02-27 19:31:27Z jesterking $ 00003 * 00004 * ***** BEGIN GPL LICENSE BLOCK ***** 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software Foundation, 00018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 * 00020 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. 00021 * All rights reserved. 00022 * 00023 * Contributor(s): 2004-2006 Blender Foundation, full recode 00024 * 00025 * ***** END GPL/BL DUAL LICENSE BLOCK ***** 00026 */ 00027 00033 #ifndef PIXELBLENDING_EXT_H 00034 #define PIXELBLENDING_EXT_H 00035 00036 00041 void add_filt_fmask(unsigned int mask, float *col, float *rowbuf, int row_w); 00042 void add_filt_fmask_pixsize(unsigned int mask, float *in, float *rowbuf, int row_w, int pixsize); 00043 void add_filt_fmask_coord(float filt[][3], float *col, float *rowbuf, int row_w, int col_h, int x, int y); 00044 void mask_array(unsigned int mask, float filt[][3]); 00045 00049 void addAlphaOverFloat(float *dest, float *source); 00050 00054 void addAlphaUnderFloat(float *dest, float *source); 00055 00056 00060 void addalphaAddfacFloat(float *dest, float *source, char addfac); 00061 00065 void addalphaAddFloat(float *dest, float *source); 00066 00070 void addalphaUnderGammaFloat(float *doel, float *bron); 00071 00072 00073 00074 #endif /* PIXELBLENDING_EXT_H */ 00075