ARB
Classes | Macros | Typedefs | Functions
aw_rgb.hxx File Reference
#include <cxxforward.h>
#include <arb_assert.h>
#include <stdint.h>
#include <cmath>
#include <algorithm>
Include dependency graph for aw_rgb.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AW_rgb16
 
class  AW_rgb_normalized
 
class  AW_rgb_diff
 

Macros

#define aw_assert(bed)   arb_assert(bed)
 

Typedefs

typedef unsigned long AW_rgb
 

Functions

AW_rgb_diff operator- (const AW_rgb_normalized &c1, const AW_rgb_normalized &c2)
 
AW_rgb_diff operator+ (const AW_rgb_diff &d1, const AW_rgb_diff &d2)
 
AW_rgb_diff operator* (const AW_rgb_diff &d, const float &f)
 
AW_rgb_diff operator* (const float &f, const AW_rgb_diff &d)
 
AW_rgb_diff operator- (const AW_rgb_diff &d)
 
AW_rgb_diff max (const AW_rgb_diff &d1, const AW_rgb_diff &d2)
 
float avoid_overflow (float f)
 
AW_rgb_normalized operator+ (const AW_rgb_normalized &col, const AW_rgb_diff &off)
 
AW_rgb_normalized operator- (const AW_rgb_normalized &col, const AW_rgb_diff &off)
 
AW_rgb_diff operator- (const AW_rgb16 &c1, const AW_rgb16 &c2)
 
AW_rgb16 operator+ (const AW_rgb16 &col, const AW_rgb_diff &off)
 
AW_rgb16 operator- (const AW_rgb16 &col, const AW_rgb_diff &off)
 

Macro Definition Documentation

#define aw_assert (   bed)    arb_assert(bed)

Definition at line 31 of file aw_rgb.hxx.

Typedef Documentation

typedef unsigned long AW_rgb

Definition at line 34 of file aw_rgb.hxx.

Function Documentation

AW_rgb_diff operator- ( const AW_rgb_normalized c1,
const AW_rgb_normalized c2 
)
inline
AW_rgb_diff operator+ ( const AW_rgb_diff d1,
const AW_rgb_diff d2 
)
inline

Definition at line 128 of file aw_rgb.hxx.

References AW_rgb_diff::b(), AW_rgb_diff::g(), and AW_rgb_diff::r().

AW_rgb_diff operator* ( const AW_rgb_diff d,
const float &  f 
)
inline

Definition at line 133 of file aw_rgb.hxx.

References AW_rgb_diff::b(), AW_rgb_diff::g(), and AW_rgb_diff::r().

AW_rgb_diff operator* ( const float &  f,
const AW_rgb_diff d 
)
inline

Definition at line 134 of file aw_rgb.hxx.

AW_rgb_diff operator- ( const AW_rgb_diff d)
inline

Definition at line 135 of file aw_rgb.hxx.

AW_rgb_diff max ( const AW_rgb_diff d1,
const AW_rgb_diff d2 
)
inline

Definition at line 137 of file aw_rgb.hxx.

References AW_rgb_diff::b(), AW_rgb_diff::g(), and AW_rgb_diff::r().

float avoid_overflow ( float  f)
inline

Definition at line 144 of file aw_rgb.hxx.

Referenced by operator+().

AW_rgb_normalized operator+ ( const AW_rgb_normalized col,
const AW_rgb_diff off 
)
inline
AW_rgb_normalized operator- ( const AW_rgb_normalized col,
const AW_rgb_diff off 
)
inline

Definition at line 151 of file aw_rgb.hxx.

AW_rgb_diff operator- ( const AW_rgb16 c1,
const AW_rgb16 c2 
)
inline

Definition at line 154 of file aw_rgb.hxx.

AW_rgb16 operator+ ( const AW_rgb16 col,
const AW_rgb_diff off 
)
inline

Definition at line 155 of file aw_rgb.hxx.

AW_rgb16 operator- ( const AW_rgb16 col,
const AW_rgb_diff off 
)
inline

Definition at line 156 of file aw_rgb.hxx.