Monochromatic integer arithmetic.  
 More...
#include <pixel_arithmetic.h>
Monochromatic integer arithmetic. 
Definition at line 42 of file pixel_arithmetic.h.
 
◆ operating_type
◆ operator pixint3()
  
  
      
        
          | Beatmup::pixint1::operator pixint3  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator pixint4()
  
  
      
        
          | Beatmup::pixint1::operator pixint4  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator pixfloat1()
  
  
      
        
          | Beatmup::pixint1::operator pixfloat1  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator pixfloat3()
  
  
      
        
          | Beatmup::pixint1::operator pixfloat3  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator pixfloat4()
  
  
      
        
          | Beatmup::pixint1::operator pixfloat4  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Definition at line 437 of file pixel_arithmetic.h.
  438         float _ = 
x / 255.0f;
 
  439         return pixfloat4{ _, _, _, 1 };
 
 
 
 
◆ operator==()
  
  
      
        
          | bool Beatmup::pixint1::operator==  | 
          ( | 
          const pixint1  | 
          P | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator=() [1/6]
  
  
      
        
          | void Beatmup::pixint1::operator=  | 
          ( | 
          const pixint1  | 
          P | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator=() [2/6]
  
  
      
        
          | void Beatmup::pixint1::operator=  | 
          ( | 
          const pixfloat1  | 
          P | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator=() [3/6]
  
  
      
        
          | void Beatmup::pixint1::operator=  | 
          ( | 
          const pixint3  | 
          P | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator=() [4/6]
  
  
      
        
          | void Beatmup::pixint1::operator=  | 
          ( | 
          const pixfloat3  | 
          P | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator=() [5/6]
  
  
      
        
          | void Beatmup::pixint1::operator=  | 
          ( | 
          const pixint4  | 
          P | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator=() [6/6]
  
  
      
        
          | void Beatmup::pixint1::operator=  | 
          ( | 
          const pixfloat4  | 
          P | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator+() [1/8]
  
  
      
        
          | pixint1 Beatmup::pixint1::operator+  | 
          ( | 
          const int  | 
          P | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator+() [2/8]
  
  
      
        
          | pixfloat1 Beatmup::pixint1::operator+  | 
          ( | 
          const float  | 
          P | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator+() [3/8]
◆ operator+() [4/8]
◆ operator+() [5/8]
◆ operator+() [6/8]
Definition at line 495 of file pixel_arithmetic.h.
  496         return pixfloat3{ 
x / 255.0f + P.r, 
x / 255.0f + P.g, 
x / 255.0f + P.b };
 
 
 
 
◆ operator+() [7/8]
◆ operator+() [8/8]
Definition at line 499 of file pixel_arithmetic.h.
  500         return pixfloat4(
x / 255.0f + P.r, 
x / 255.0f + P.g, 
x / 255.0f + P.b, 1.0f + P.a);
 
 
 
 
◆ operator-() [1/8]
  
  
      
        
          | pixint1 Beatmup::pixint1::operator-  | 
          ( | 
          const int  | 
          P | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator-() [2/8]
  
  
      
        
          | pixfloat1 Beatmup::pixint1::operator-  | 
          ( | 
          const float  | 
          P | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator-() [3/8]
◆ operator-() [4/8]
◆ operator-() [5/8]
◆ operator-() [6/8]
Definition at line 528 of file pixel_arithmetic.h.
  529         return pixfloat3{ 
x / 255.0f - P.r, 
x / 255.0f - P.g, 
x / 255.0f - P.b };
 
 
 
 
◆ operator-() [7/8]
◆ operator-() [8/8]
Definition at line 532 of file pixel_arithmetic.h.
  533         return pixfloat4(
x / 255.0f - P.r, 
x / 255.0f - P.g, 
x / 255.0f - P.b, 1.0f - P.a);
 
 
 
 
◆ operator*() [1/8]
  
  
      
        
          | pixint1 Beatmup::pixint1::operator*  | 
          ( | 
          const int  | 
          P | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator*() [2/8]
  
  
      
        
          | pixfloat1 Beatmup::pixint1::operator*  | 
          ( | 
          const float  | 
          P | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator*() [3/8]
◆ operator*() [4/8]
◆ operator*() [5/8]
◆ operator*() [6/8]
Definition at line 561 of file pixel_arithmetic.h.
  562         return pixfloat3{ 
x * P.r / 255.0f, 
x * P.g / 255.0f, 
x * P.b / 255.0f };
 
 
 
 
◆ operator*() [7/8]
◆ operator*() [8/8]
Definition at line 565 of file pixel_arithmetic.h.
  566         return pixfloat4(
x * P.r / 255.0f, 
x * P.g / 255.0f, 
x * P.b / 255.0f, P.a);
 
 
 
 
◆ operator/()
  
  
      
        
          | pixint1 Beatmup::pixint1::operator/  | 
          ( | 
          const int  | 
          P | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ makeFloat()
  
  
      
        
          | pixfloat1 Beatmup::pixint1::makeFloat  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ zero()
  
  
      
        
          | void Beatmup::pixint1::zero  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ sum()
  
  
      
        
          | int Beatmup::pixint1::sum  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ mean()
  
  
      
        
          | float Beatmup::pixint1::mean  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ max()
  
  
      
        
          | int Beatmup::pixint1::max  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ abs()
  
  
      
        
          | pixint1 Beatmup::pixint1::abs  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
The documentation for this struct was generated from the following file: