|
L4Re - L4 Runtime Environment
|
Pixel information. More...
Collaboration diagram for L4Re::Video::Pixel_info:Public Member Functions | |
| Color_component const & | r () const |
| Return the red color compoment of the pixel. More... | |
| Color_component const & | g () const |
| Return the green color compoment of the pixel. More... | |
| Color_component const & | b () const |
| Return the blue color compoment of the pixel. More... | |
| Color_component const & | a () const |
| Return the alpha color compoment of the pixel. More... | |
| unsigned char | bytes_per_pixel () const |
| Query size of pixel in bytes. More... | |
| unsigned char | bits_per_pixel () const |
| Number of bits of the pixel. More... | |
| bool | has_alpha () const |
| Return whether the pixel has an alpha channel. More... | |
| void | r (Color_component const &c) |
| Set the red color component of the pixel. More... | |
| void | g (Color_component const &c) |
| Set the green color component of the pixel. More... | |
| void | b (Color_component const &c) |
| Set the blue color component of the pixel. More... | |
| void | a (Color_component const &c) |
| Set the alpha color component of the pixel. More... | |
| void | bytes_per_pixel (unsigned char bpp) |
| Set the size of the pixel in bytes. More... | |
| Pixel_info () | |
| Constructor. | |
| Pixel_info (unsigned char bpp, char r, char rs, char g, char gs, char b, char bs, char a=0, char as=0) | |
| Constructor. More... | |
| template<typename VBI > | |
| Pixel_info (VBI const *vbi) | |
| Convenience constructor. More... | |
| bool | operator== (Pixel_info const &o) const |
| Compare for complete equality of the color space. More... | |
| template<typename OUT > | |
| void | dump (OUT &s) const |
| Dump information on the pixel to a stream. More... | |
Pixel information.
This class wraps the information on a pixel, such as the size and position of each color component in the pixel.
|
inline |
Constructor.
| bpp | Size of pixel in bytes. |
| r | Red component size. |
| rs | Red component shift. |
| g | Green component size. |
| gs | Green component shift. |
| b | Blue component size. |
| bs | Blue component shift. |
| a | Alpha component size, defaults to 0. |
| as | Alpha component shift, defaults to 0. |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Number of bits of the pixel.
Definition at line 147 of file colors.
References L4Re::Video::Color_component::size().
Here is the call graph for this function:
|
inline |
|
inline |
|
inline |
Dump information on the pixel to a stream.
| s | Stream |
Definition at line 238 of file colors.
Referenced by L4Re::Video::View::Info::dump().
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
Return whether the pixel has an alpha channel.
Definition at line 154 of file colors.
References L4Re::Video::Color_component::size().
Here is the call graph for this function:
|
inline |
Compare for complete equality of the color space.
| o | A Pixel_info to compare to. |
|
inline |
|
inline |