#include <gfx_image_bits.h>
This class represents the number of bits in a pixel format.
Static Public Member Functions | |
| static Result< void > | DescribeIO (const DataSerializeInterface &stream) |
Private Attributes | |
| Int | _bits |
|
default |
|
explicit |
Sets the bits of the object. BITS(8) means 8 bit.
| MAXON_ATTRIBUTE_FORCE_INLINE Int Get | ( | ) | const |
Returns the number of bits.
| MAXON_ATTRIBUTE_FORCE_INLINE Int GetBytes | ( | Int | pixelCnt = 1 | ) | const |
Returns the number of bytes needed for the bits of this object.
| MAXON_ATTRIBUTE_FORCE_INLINE Bool operator== | ( | const BITS & | other | ) | const |
Compares against another BITS value.
| MAXON_ATTRIBUTE_FORCE_INLINE Bool operator!= | ( | const BITS & | other | ) | const |
Compares against another BITS value.
| MAXON_ATTRIBUTE_FORCE_INLINE Bool operator< | ( | const BITS & | other | ) | const |
Compares against another BITS value.
| MAXON_ATTRIBUTE_FORCE_INLINE Bool operator<= | ( | const BITS & | other | ) | const |
Compares against another BITS value.
| MAXON_ATTRIBUTE_FORCE_INLINE Bool operator> | ( | const BITS & | other | ) | const |
Compares against another BITS value.
| MAXON_ATTRIBUTE_FORCE_INLINE Bool operator>= | ( | const BITS & | other | ) | const |
Compares against another BITS value.
| MAXON_ATTRIBUTE_FORCE_INLINE BITS operator+ | ( | const BITS & | other | ) | const |
Add BITS.
| MAXON_ATTRIBUTE_FORCE_INLINE BITS operator- | ( | const BITS & | other | ) | const |
Sub BITS.
| MAXON_ATTRIBUTE_FORCE_INLINE BITS operator* | ( | const BITS & | other | ) | const |
Mul BITS.
| MAXON_ATTRIBUTE_FORCE_INLINE BITS operator* | ( | Int | other | ) | const |
Mul BITS.
| MAXON_ATTRIBUTE_FORCE_INLINE BITS operator/ | ( | const BITS & | other | ) | const |
Div BITS.
| String ToString | ( | const FormatStatement * | formatStatement = nullptr | ) | const |
|
static |
Describe all elements of this class for I/O operations.
| [in] | stream | The stream that is used to register the class members. |
| HashInt GetHashCode | ( | ) | const |
|
private |