A color component.
More...
#include <colors>
|
| Color_component () |
| Constructor.
|
|
| Color_component (unsigned char bits, unsigned char shift) |
| Constructor.
|
|
unsigned char | size () const |
| Return the number of bits used by the component.
|
|
unsigned char | shift () const |
| Return the position of the component in the pixel.
|
|
bool | operator== (Color_component const &o) const |
| Compare for equality.
|
|
int | get (unsigned long v) const |
| Get component from value (normalized to 16bits).
|
|
long unsigned | set (int v) const |
| Transform 16bit normalized value to the component in the color space.
|
|
template<typename OUT > |
void | dump (OUT &s) const |
| Dump information on the view information to a stream.
|
|
A color component.
Definition at line 32 of file colors.
◆ Color_component()
L4Re::Video::Color_component::Color_component |
( |
unsigned char |
bits, |
|
|
unsigned char |
shift |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
bits | Number of bits used by the component |
shift | Position in bits of the component in the pixel |
Definition at line 47 of file colors.
◆ dump()
template<typename OUT >
void L4Re::Video::Color_component::dump |
( |
OUT & |
s | ) |
const |
|
inline |
Dump information on the view information to a stream.
- Parameters
-
Definition at line 92 of file colors.
◆ get()
int L4Re::Video::Color_component::get |
( |
unsigned long |
v | ) |
const |
|
inline |
Get component from value (normalized to 16bits).
- Parameters
-
- Returns
- Converted value
Definition at line 74 of file colors.
◆ operator==()
bool L4Re::Video::Color_component::operator== |
( |
Color_component const & |
o | ) |
const |
|
inline |
Compare for equality.
- Returns
- True if the same components are described, false if not.
Definition at line 66 of file colors.
◆ set()
long unsigned L4Re::Video::Color_component::set |
( |
int |
v | ) |
const |
|
inline |
Transform 16bit normalized value to the component in the color space.
- Parameters
-
v | Value return Converted value. |
Definition at line 84 of file colors.
◆ shift()
unsigned char L4Re::Video::Color_component::shift |
( |
| ) |
const |
|
inline |
◆ size()
unsigned char L4Re::Video::Color_component::size |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: