~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/blenkernel/BKE_colortools.h

  • Committer: Bazaar Package Importer
  • Author(s): Lukas Fittl
  • Date: 2006-09-20 01:57:27 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060920015727-gmoqlxwstx9wwqs3
Tags: 2.42a-1ubuntu1
* Merge from Debian unstable (Closes: Malone #55903). Remaining changes:
  - debian/genpot: Add python scripts from Lee June <blender@eyou.com> to
    generate a reasonable PO template from the sources. Since gettext is used
    in a highly nonstandard way, xgettext does not work for this job.
  - debian/rules: Call the scripts, generate po/blender.pot, and clean it up
    in the clean target.
  - Add a proper header to the generated PO template.
* debian/control: Build depend on libavformat-dev >= 3:0.cvs20060823-3.1,
  otherwise this package will FTBFS

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * $Id: BKE_colortools.h,v 1.3 2006/02/14 17:32:48 ton Exp $ 
 
3
 *
 
4
 * ***** BEGIN GPL LICENSE BLOCK *****
 
5
 *
 
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. 
 
10
 *
 
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.
 
15
 *
 
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.
 
19
 *
 
20
 * The Original Code is Copyright (C) 2006 Blender Foundation.
 
21
 * All rights reserved.
 
22
 *
 
23
 * The Original Code is: all of this file.
 
24
 *
 
25
 * Contributor(s): none yet.
 
26
 *
 
27
 * ***** END GPL/BL DUAL LICENSE BLOCK *****
 
28
 */
 
29
#ifndef BKE_COLORTOOLS_H
 
30
#define BKE_COLORTOOLS_H
 
31
 
 
32
struct CurveMapping;
 
33
struct CurveMap;
 
34
struct Image;
 
35
struct rctf;
 
36
 
 
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);
 
41
 
 
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);
 
46
 
 
47
void                            curvemapping_changed(struct CurveMapping *cumap, int rem_doubles);
 
48
                                        
 
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);
 
60
 
 
61
#endif
 
62