synfig-core
1.0.3
|
Common definitions for color classes. More...
#include <cmath>
#include <stdint.h>
#include <synfig/gamma.h>
#include <synfig/string.h>
#include <synfig/angle.h>
Go to the source code of this file.
Namespaces | |
namespace | synfig |
Where every function and class of the synfig library can be found. |
Macros | |
#define | use_colorspace_gamma() App::use_colorspace_gamma |
#define | colorspace_gamma() (2.2f) |
#define | gamma_in(x) ((x>=0) ? pow((float)x,1.0f/colorspace_gamma()) : -pow((float)-x,1.0f/colorspace_gamma())) |
#define | gamma_out(x) ((x>=0) ? pow((float)x, colorspace_gamma()) : -pow((float)-x, colorspace_gamma())) |
#define | isnan(x) (std::isnan)(x) |
Typedefs | |
typedef float | synfig::ColorReal |
Variables | |
static const float | synfig::EncodeYUV [3][3] |
static const float | synfig::DecodeYUV [3][3] |
Common definitions for color classes.
$Id$
#define use_colorspace_gamma | ( | ) | App::use_colorspace_gamma |
#define colorspace_gamma | ( | ) | (2.2f) |
#define gamma_in | ( | x | ) | ((x>=0) ? pow((float)x,1.0f/colorspace_gamma()) : -pow((float)-x,1.0f/colorspace_gamma())) |
#define gamma_out | ( | x | ) | ((x>=0) ? pow((float)x, colorspace_gamma()) : -pow((float)-x, colorspace_gamma())) |
#define isnan | ( | x | ) | (std::isnan)(x) |
Referenced by CurveWarp::accelerated_cairorender(), Warp::accelerated_cairorender(), CurveWarp::accelerated_render(), Warp::accelerated_render(), synfig::Layer_Polygon::add_polygon(), synfig::Color::clamped(), synfig::Color::clamped_negative(), synfig::Color::is_valid(), synfig::Transformation::is_valid(), synfig::Time::is_valid(), synfig::ColorAccumulator::is_valid(), synfig::CairoColorAccumulator::is_valid(), synfig::Layer_Shape::line_to(), synfig::Gradient::operator()(), and synfig::Transformation::transform_bounds().