Monochromatic floating point arithmetic.  
 More...
#include <pixel_arithmetic.h>
Monochromatic floating point arithmetic. 
Definition at line 93 of file pixel_arithmetic.h.
 
◆ operating_type
◆ operator pixint1()
  
  
      
        
          | Beatmup::pixfloat1::operator pixint1  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator pixint3()
  
  
      
        
          | Beatmup::pixfloat1::operator pixint3  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator pixint4()
  
  
      
        
          | Beatmup::pixfloat1::operator pixint4  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator pixfloat3()
  
  
      
        
          | Beatmup::pixfloat1::operator pixfloat3  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator pixfloat4()
  
  
      
        
          | Beatmup::pixfloat1::operator pixfloat4  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator==()
  
  
      
        
          | bool Beatmup::pixfloat1::operator==  | 
          ( | 
          const pixfloat1  | 
          P | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator=() [1/6]
  
  
      
        
          | void Beatmup::pixfloat1::operator=  | 
          ( | 
          const pixint1  | 
          P | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator=() [2/6]
  
  
      
        
          | void Beatmup::pixfloat1::operator=  | 
          ( | 
          const pixfloat1  | 
          P | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator=() [3/6]
  
  
      
        
          | void Beatmup::pixfloat1::operator=  | 
          ( | 
          const pixint3  | 
          P | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator=() [4/6]
  
  
      
        
          | void Beatmup::pixfloat1::operator=  | 
          ( | 
          const pixfloat3  | 
          P | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator=() [5/6]
  
  
      
        
          | void Beatmup::pixfloat1::operator=  | 
          ( | 
          const pixint4  | 
          P | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator=() [6/6]
  
  
      
        
          | void Beatmup::pixfloat1::operator=  | 
          ( | 
          const pixfloat4  | 
          P | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator+() [1/8]
  
  
      
        
          | pixfloat1 Beatmup::pixfloat1::operator+  | 
          ( | 
          const int  | 
          P | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator+() [2/8]
  
  
      
        
          | pixfloat1 Beatmup::pixfloat1::operator+  | 
          ( | 
          const float  | 
          P | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator+() [3/8]
◆ operator+() [4/8]
◆ operator+() [5/8]
Definition at line 646 of file pixel_arithmetic.h.
  647         return pixfloat3{ 
x + P.r / 255.0f, 
x + P.g / 255.0f, 
x + P.b / 255.0f };
 
 
 
 
◆ operator+() [6/8]
◆ operator+() [7/8]
Definition at line 650 of file pixel_arithmetic.h.
  651         return pixfloat4(
x + P.r / 255.0f, 
x + P.g / 255.0f, 
x + P.b / 255.0f, 1.0f + P.a / 255.0f);
 
 
 
 
◆ operator+() [8/8]
◆ operator-() [1/8]
  
  
      
        
          | pixfloat1 Beatmup::pixfloat1::operator-  | 
          ( | 
          const int  | 
          P | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator-() [2/8]
  
  
      
        
          | pixfloat1 Beatmup::pixfloat1::operator-  | 
          ( | 
          const float  | 
          P | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator-() [3/8]
◆ operator-() [4/8]
◆ operator-() [5/8]
Definition at line 679 of file pixel_arithmetic.h.
  680         return pixfloat3{ 
x - P.r / 255.0f, 
x - P.g / 255.0f, 
x - P.b / 255.0f };
 
 
 
 
◆ operator-() [6/8]
◆ operator-() [7/8]
Definition at line 683 of file pixel_arithmetic.h.
  684         return pixfloat4(
x - P.r / 255.0f, 
x - P.g / 255.0f, 
x - P.b / 255.0f, 1.0f - P.a / 255.0f);
 
 
 
 
◆ operator-() [8/8]
◆ operator*() [1/8]
  
  
      
        
          | pixfloat1 Beatmup::pixfloat1::operator*  | 
          ( | 
          const int  | 
          P | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator*() [2/8]
  
  
      
        
          | pixfloat1 Beatmup::pixfloat1::operator*  | 
          ( | 
          const float  | 
          P | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator*() [3/8]
◆ operator*() [4/8]
◆ operator*() [5/8]
Definition at line 712 of file pixel_arithmetic.h.
  713         return pixfloat3{ 
x * P.r / 255.0f, 
x * P.g / 255.0f, 
x * P.b / 255.0f };
 
 
 
 
◆ operator*() [6/8]
◆ operator*() [7/8]
Definition at line 716 of file pixel_arithmetic.h.
  717         return pixfloat4(
x * P.r / 255.0f, 
x * P.g / 255.0f, 
x * P.b / 255.0f, P.a / 255.0f);
 
 
 
 
◆ operator*() [8/8]
◆ operator/()
  
  
      
        
          | pixfloat1 Beatmup::pixfloat1::operator/  | 
          ( | 
          const int  | 
          P | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ makeFloat()
  
  
      
        
          | pixfloat1 Beatmup::pixfloat1::makeFloat  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ zero()
  
  
      
        
          | void Beatmup::pixfloat1::zero  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ sum()
  
  
      
        
          | float Beatmup::pixfloat1::sum  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ mean()
  
  
      
        
          | float Beatmup::pixfloat1::mean  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ max()
  
  
      
        
          | float Beatmup::pixfloat1::max  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ abs()
The documentation for this struct was generated from the following file: