synfig-core
1.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
modules
mod_filter
colorcorrect.h
Go to the documentation of this file.
1
/* === S Y N F I G ========================================================= */
22
/* ========================================================================= */
23
24
/* === S T A R T =========================================================== */
25
26
#ifndef __SYNFIG_LAYER_COLORCORRECT_H
27
#define __SYNFIG_LAYER_COLORCORRECT_H
28
29
/* === H E A D E R S ======================================================= */
30
31
#include <
synfig/layer.h
>
32
#include <
synfig/angle.h
>
33
#include <
synfig/gamma.h
>
34
#include <
synfig/rect.h
>
35
36
/* === M A C R O S ========================================================= */
37
38
/* === T Y P E D E F S ===================================================== */
39
40
/* === C L A S S E S & S T R U C T S ======================================= */
41
42
namespace
synfig {
43
44
class
Layer_ColorCorrect
:
public
Layer
45
{
46
SYNFIG_LAYER_MODULE_EXT
47
48
private
:
50
ValueBase
param_hue_adjust;
52
ValueBase
param_brightness;
54
ValueBase
param_contrast;
56
ValueBase
param_exposure;
58
ValueBase
param_gamma;
59
// This gamma member is kept to avoid need to recalculate the gamma table
60
// on each pixel
61
Gamma
gamma;
62
63
Color
correct_color(
const
Color
&in)
const
;
64
65
public
:
66
67
Layer_ColorCorrect
();
68
69
virtual
bool
set_param
(
const
String
& param,
const
synfig::ValueBase
&value);
70
71
virtual
ValueBase
get_param
(
const
String
& param)
const
;
72
73
virtual
Color
get_color
(
Context
context,
const
Point
&pos)
const
;
74
75
virtual
Rect
get_full_bounding_rect
(
Context
context)
const
;
76
77
virtual
bool
accelerated_render
(
Context
context,
Surface
*surface,
int
quality,
const
RendDesc
&renddesc,
ProgressCallback
*cb)
const
;
78
virtual
bool
accelerated_cairorender
(
Context
context,cairo_t *cr,
int
quality,
const
RendDesc
&renddesc,
ProgressCallback
*cb)
const
;
79
80
virtual
Vocab
get_param_vocab
()
const
;
81
};
// END of class Layer_ColorCorrect
82
83
};
// END of namespace synfig
84
85
/* === E N D =============================================================== */
86
87
#endif
Generated on Mon Nov 16 2015 15:33:38 for synfig-core by
1.8.1.2