Beatmup
pixel_arithmetic.h File Reference
#include "abstract_bitmap.h"
#include "../exception.h"
#include "../utils/utils.hpp"
#include <algorithm>

Go to the source code of this file.

Classes

struct  Beatmup::pixint1
 Monochromatic integer arithmetic. More...
 
struct  Beatmup::pixfloat1
 Monochromatic floating point arithmetic. More...
 
struct  Beatmup::pixint3
 Trichromatic integer arithmetic. More...
 
struct  Beatmup::pixfloat3
 Trichromatic floating point arithmetic. More...
 
struct  Beatmup::pixint4
 4-channel integer arithmetic More...
 
struct  Beatmup::pixfloat4
 4-channel floating point arithmetic More...
 

Namespaces

 Beatmup
 

Functions

pixbyte Beatmup::pixfloat2pixbyte (pixfloat x)
 Converts a floating point pixel value to a 0..255 integer. More...
 
pixfloat Beatmup::int2pixfloat (int x)
 Converts an integer value to 0..1 floating point pixel value. More...
 
pixfloat Beatmup::clipPixfloat (pixfloat x)
 Clips a floating point pixel value to 0..1 range. More...
 
pixbyte Beatmup::clipPixint (int x)
 Clips an integer pixel value to 0..255 range. More...
 
pixint1 Beatmup::operator- (int x, pixint1 P)