Generic PixelRectangle implementation.
More...
#include <PixelFormat.hpp>
Generic PixelRectangle implementation.
Definition at line 322 of file PixelFormat.hpp.
◆ GenericPixelRect() [1/3]
| gamp::render::pixel::GenericPixelRect::GenericPixelRect |
( |
const PixelFormat & | pixelformat, |
|
|
const Point2u32 & | size, |
|
|
uint32_t | strideInBytes, |
|
|
bool | isGLOriented ) |
|
inline |
- Parameters
-
| pixelformat | |
| size | |
| strideInBytes | stride in byte-size, i.e. byte count from one line to the next. If not zero, value must be >= width * bytes-per-pixel. If zero, stride is set to width * bytes-per-pixel. |
| isGLOriented | |
- Exceptions
-
| IllegalArgumentException | if strideInBytes is invalid. |
| IndexOutOfBoundsException | if pixels has insufficient bytes left |
Definition at line 357 of file PixelFormat.hpp.
◆ GenericPixelRect() [2/3]
| gamp::render::pixel::GenericPixelRect::GenericPixelRect |
( |
const GenericPixelRect & | o | ) |
|
|
deletenoexcept |
◆ GenericPixelRect() [3/3]
| gamp::render::pixel::GenericPixelRect::GenericPixelRect |
( |
GenericPixelRect && | o | ) |
|
|
inlinenoexcept |
◆ pixelHashCode()
| size_t gamp::render::pixel::GenericPixelRect::pixelHashCode |
( |
| ) |
const |
|
inlineprotectednoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ hashCode()
| size_t gamp::render::pixel::GenericPixelRect::hashCode |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
Computes a hash code over:
-
pixelformat
-
size
-
stride
-
isGLOriented
-
pixels
The hashCode shall be computed only once with first call and stored for later retrieval to enhance performance.
Computes a hash code over:
-
pixelformat
-
size
-
stride
-
isGLOriented
-
pixels
The hashCode shall be computed only once with first call and stored for later retrieval to enhance performance.
Implements gamp::render::pixel::PixelRectangle.
Definition at line 394 of file PixelFormat.hpp.
◆ format()
| const PixelFormat & gamp::render::pixel::GenericPixelRect::format |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
◆ size()
| const Point2u32 & gamp::render::pixel::GenericPixelRect::size |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
◆ stride()
| uint32_t gamp::render::pixel::GenericPixelRect::stride |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
◆ isGLOriented()
| bool gamp::render::pixel::GenericPixelRect::isGLOriented |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
◆ pixels()
| const uint8_t * gamp::render::pixel::GenericPixelRect::pixels |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
◆ mutablePixels()
| uint8_t * gamp::render::pixel::GenericPixelRect::mutablePixels |
( |
| ) |
|
|
inlineoverridevirtualnoexcept |
◆ toString()
| std::string gamp::render::pixel::GenericPixelRect::toString |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ m_pixelformat
| const PixelFormat* gamp::render::pixel::GenericPixelRect::m_pixelformat |
|
protected |
◆ m_size
| Point2u32 gamp::render::pixel::GenericPixelRect::m_size |
|
protected |
◆ m_strideInBytes
| uint32_t gamp::render::pixel::GenericPixelRect::m_strideInBytes |
|
protected |
◆ m_isGLOriented
| bool gamp::render::pixel::GenericPixelRect::m_isGLOriented |
|
protected |
◆ m_data
| std::vector<uint8_t> gamp::render::pixel::GenericPixelRect::m_data |
|
protected |
◆ m_hashCode
| size_t gamp::render::pixel::GenericPixelRect::m_hashCode = 0 |
|
mutableprotected |
◆ m_hashCodeComputed
◆ m_mtx
| std::mutex gamp::render::pixel::GenericPixelRect::m_mtx |
|
mutableprotected |
The documentation for this class was generated from the following file: