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 21 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 36 of file colors.
References shift().
◆ 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 81 of file colors.
References shift(), and size().
◆ 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 63 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 55 of file colors.
References Color_component().
◆ 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 73 of file colors.
◆ shift()
| unsigned char L4Re::Video::Color_component::shift |
( |
| ) |
const |
|
inline |
Return the position of the component in the pixel.
- Returns
- Position in bits of the component in the pixel
Definition at line 49 of file colors.
Referenced by Color_component(), and dump().
◆ size()
| unsigned char L4Re::Video::Color_component::size |
( |
| ) |
const |
|
inline |
Return the number of bits used by the component.
- Returns
- Number of bits used by the component
Definition at line 43 of file colors.
Referenced by dump().
The documentation for this class was generated from the following file: