Helper class to wrap around pixel vectors.
More...
#include <OutputHardware.hpp>
|
| using | size_type = typename ::std::vector<Pixel>::size_type |
| | Size type of this vector.
|
| |
| using | vector_type = typename ::std::vector<Pixel> |
| | Type of the backing variable.
|
| |
Helper class to wrap around pixel vectors.
Definition at line 31 of file OutputHardware.hpp.
◆ size_type
◆ vector_type
◆ fill() [1/2]
Fill the entire vector with a pixel color.
- Parameters
-
◆ fill() [2/2]
Fill a segment with a pixel color.
- Parameters
-
| [in,out] | data | Pixel vector |
| color | Pixel color |
| fromIndex | Segment start index (inclusive) |
| toIndex | Segment end index (inclusive) |
◆ shift()
Shift the contents of a vector up (right) or down (left)
- Note
- if
from_index is greater than to_index, contents are shifted down, otherwise, contents are shifted up.
-
The pixel that overflows in one end is reintroduced in the other end
- Parameters
-
| [in,out] | data | Pixel vector |
| from_index | Index where shifting starts (inclusive) |
| to_index | Index where shifting ends (inclusive) |
| shift | Count of pixels to be shifted |
◆ shift_left()
Shift left (or down)
- Parameters
-
| [in,out] | data | Pixel vector |
| count | Number of pixels to shift |
◆ shift_right()
Shift right (or up)
- Parameters
-
| [in,out] | data | Pixel vector |
| count | Number of pixels to shift |
The documentation for this struct was generated from the following file: