2
* $Id: BKE_colortools.h,v 1.3 2006/02/14 17:32:48 ton Exp $
4
* ***** BEGIN GPL LICENSE BLOCK *****
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software Foundation,
18
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
* The Original Code is Copyright (C) 2006 Blender Foundation.
21
* All rights reserved.
23
* The Original Code is: all of this file.
25
* Contributor(s): none yet.
27
* ***** END GPL/BL DUAL LICENSE BLOCK *****
29
#ifndef BKE_COLORTOOLS_H
30
#define BKE_COLORTOOLS_H
37
struct CurveMapping *curvemapping_add(int tot, float minx, float miny, float maxx, float maxy);
38
void curvemapping_free(struct CurveMapping *cumap);
39
struct CurveMapping *curvemapping_copy(struct CurveMapping *cumap);
40
void curvemapping_set_black_white(struct CurveMapping *cumap, float *black, float *white);
42
void curvemap_remove(struct CurveMap *cuma, int flag);
43
void curvemap_insert(struct CurveMap *cuma, float x, float y);
44
void curvemap_reset(struct CurveMap *cuma, struct rctf *clipr);
45
void curvemap_sethandle(struct CurveMap *cuma, int type);
47
void curvemapping_changed(struct CurveMapping *cumap, int rem_doubles);
49
/* single curve, no table check */
50
float curvemap_evaluateF(struct CurveMap *cuma, float value);
51
/* single curve, with table check */
52
float curvemapping_evaluateF(struct CurveMapping *cumap, int cur, float value);
53
void curvemapping_evaluate3F(struct CurveMapping *cumap, float *vecout, const float *vecin);
54
void curvemapping_evaluateRGBF(struct CurveMapping *cumap, float *vecout, const float *vecin);
55
void curvemapping_evaluate_premulRGBF(struct CurveMapping *cumap, float *vecout, const float *vecin);
56
void curvemapping_do_image(struct CurveMapping *cumap, struct Image *ima);
57
void curvemapping_premultiply(struct CurveMapping *cumap, int restore);
58
int curvemapping_RGBA_does_something(struct CurveMapping *cumap);
59
void curvemapping_initialize(struct CurveMapping *cumap);