4-channel integer arithmetic
More...
#include <pixel_arithmetic.h>
|
union { |
struct { |
int r |
|
int g |
|
int b |
|
int a |
|
} | |
|
int val [4] |
|
}; | |
|
4-channel integer arithmetic
Definition at line 252 of file pixel_arithmetic.h.
◆ operating_type
◆ pixint4() [1/2]
Beatmup::pixint4::pixint4 |
( |
| ) |
|
|
inline |
◆ pixint4() [2/2]
Beatmup::pixint4::pixint4 |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
int |
a |
|
) |
| |
|
inline |
◆ fromColor()
◆ operator pixint1()
Beatmup::pixint4::operator pixint1 |
( |
| ) |
const |
|
inline |
◆ operator pixint3()
Beatmup::pixint4::operator pixint3 |
( |
| ) |
const |
|
inline |
◆ operator pixfloat1()
Beatmup::pixint4::operator pixfloat1 |
( |
| ) |
const |
|
inline |
◆ operator pixfloat3()
Beatmup::pixint4::operator pixfloat3 |
( |
| ) |
const |
|
inline |
◆ operator pixfloat4()
Beatmup::pixint4::operator pixfloat4 |
( |
| ) |
const |
|
inline |
◆ operator==()
bool Beatmup::pixint4::operator== |
( |
const pixint4 |
P | ) |
const |
|
inline |
◆ operator=() [1/6]
void Beatmup::pixint4::operator= |
( |
const pixint1 |
P | ) |
|
|
inline |
◆ operator=() [2/6]
void Beatmup::pixint4::operator= |
( |
const pixfloat1 |
P | ) |
|
|
inline |
◆ operator=() [3/6]
void Beatmup::pixint4::operator= |
( |
const pixint3 |
P | ) |
|
|
inline |
◆ operator=() [4/6]
void Beatmup::pixint4::operator= |
( |
const pixfloat3 |
P | ) |
|
|
inline |
◆ operator=() [5/6]
void Beatmup::pixint4::operator= |
( |
const pixint4 |
P | ) |
|
|
inline |
◆ operator=() [6/6]
void Beatmup::pixint4::operator= |
( |
const pixfloat4 |
P | ) |
|
|
inline |
◆ operator+() [1/8]
pixint4 Beatmup::pixint4::operator+ |
( |
const int |
P | ) |
const |
|
inline |
◆ operator+() [2/8]
pixfloat4 Beatmup::pixint4::operator+ |
( |
const float |
P | ) |
const |
|
inline |
Definition at line 1154 of file pixel_arithmetic.h.
1155 return pixfloat4(
r / 255.0f + P,
g / 255.0f + P,
b / 255.0f + P,
a / 255.0f + P);
◆ operator+() [3/8]
◆ operator+() [4/8]
Definition at line 1170 of file pixel_arithmetic.h.
1171 return pixfloat4(
r / 255.0f + P.x,
g / 255.0f + P.x,
b / 255.0f + P.x,
a / 255.0f + 1.0f);
◆ operator+() [5/8]
◆ operator+() [6/8]
Definition at line 1174 of file pixel_arithmetic.h.
1175 return pixfloat4(
r / 255.0f + P.r,
g / 255.0f + P.g,
b / 255.0f + P.b,
a / 255.0f + 1.0f);
◆ operator+() [7/8]
◆ operator+() [8/8]
Definition at line 1178 of file pixel_arithmetic.h.
1179 return pixfloat4(
r / 255.0f + P.r,
g / 255.0f + P.g,
b / 255.0f + P.b,
a / 255.0f + P.a);
◆ operator-() [1/8]
pixint4 Beatmup::pixint4::operator- |
( |
const int |
P | ) |
const |
|
inline |
◆ operator-() [2/8]
pixfloat4 Beatmup::pixint4::operator- |
( |
const float |
P | ) |
const |
|
inline |
Definition at line 1187 of file pixel_arithmetic.h.
1188 return pixfloat4(
r / 255.0f - P,
g / 255.0f - P,
b / 255.0f - P,
a / 255.0f - P);
◆ operator-() [3/8]
◆ operator-() [4/8]
Definition at line 1203 of file pixel_arithmetic.h.
1204 return pixfloat4(
r / 255.0f - P.x,
g / 255.0f - P.x,
b / 255.0f - P.x,
a / 255.0f - 1.0f);
◆ operator-() [5/8]
◆ operator-() [6/8]
Definition at line 1207 of file pixel_arithmetic.h.
1208 return pixfloat4(
r / 255.0f - P.r,
g / 255.0f - P.g,
b / 255.0f - P.b,
a / 255.0f - 1.0f);
◆ operator-() [7/8]
◆ operator-() [8/8]
Definition at line 1211 of file pixel_arithmetic.h.
1212 return pixfloat4(
r / 255.0f - P.r,
g / 255.0f - P.g,
b / 255.0f - P.b,
a / 255.0f - P.a);
◆ operator*() [1/8]
pixint4 Beatmup::pixint4::operator* |
( |
const int |
P | ) |
const |
|
inline |
◆ operator*() [2/8]
pixfloat4 Beatmup::pixint4::operator* |
( |
const float |
P | ) |
const |
|
inline |
Definition at line 1220 of file pixel_arithmetic.h.
1221 return pixfloat4(
r * P / 255.0f,
g * P / 255.0f,
b * P / 255.0f,
a * P / 255.0f);
◆ operator*() [3/8]
◆ operator*() [4/8]
Definition at line 1236 of file pixel_arithmetic.h.
1237 return pixfloat4(
r * P.x / 255.0f,
g * P.x / 255.0f,
b * P.x / 255.0f,
a / 255.0f);
◆ operator*() [5/8]
◆ operator*() [6/8]
Definition at line 1240 of file pixel_arithmetic.h.
1241 return pixfloat4(
r * P.r / 255.0f,
g * P.g / 255.0f,
b * P.b / 255.0f,
a / 255.0f);
◆ operator*() [7/8]
◆ operator*() [8/8]
Definition at line 1244 of file pixel_arithmetic.h.
1245 return pixfloat4(
r * P.r / 255.0f,
g * P.g / 255.0f,
b * P.b / 255.0f,
a * P.a / 255.0f);
◆ operator/()
pixint4 Beatmup::pixint4::operator/ |
( |
const int |
P | ) |
const |
|
inline |
◆ makeFloat()
pixfloat4 Beatmup::pixint4::makeFloat |
( |
| ) |
const |
|
inline |
◆ zero()
void Beatmup::pixint4::zero |
( |
| ) |
|
|
inline |
◆ sum()
int Beatmup::pixint4::sum |
( |
| ) |
const |
|
inline |
◆ mean()
float Beatmup::pixint4::mean |
( |
| ) |
const |
|
inline |
◆ max()
int Beatmup::pixint4::max |
( |
| ) |
const |
|
inline |
Definition at line 312 of file pixel_arithmetic.h.
CustomPoint< numeric > max(const CustomPoint< numeric > &a, const CustomPoint< numeric > &b)
◆ abs()
pixint4 Beatmup::pixint4::abs |
( |
| ) |
const |
|
inline |
◆ val
int Beatmup::pixint4::val[4] |
The documentation for this struct was generated from the following file: