synfig-core  1.0.3
Namespaces | Macros | Typedefs | Variables
common.h File Reference

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]

Detailed Description

Common definitions for color classes.

$Id$

Macro Definition Documentation

#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)