Packed pixel composition, i.e.
More...
#include <PixelFormat.hpp>
|
| constexpr const u32array4_t & | bitCount () const noexcept |
| |
| constexpr const u32array4_t & | bitMask () const noexcept |
| |
| constexpr const u32array4_t & | bitShift () const noexcept |
| |
| constexpr uint32_t | bitsPerPixel () const noexcept |
| | Number of bits per pixel, e.g.
|
| |
| constexpr uint32_t | bitStride () const noexcept |
| | Bit distance between pixels.
|
| |
| constexpr uint32_t | bytesPerPixel () const noexcept |
| | Number of bytes per pixel, i.e.
|
| |
| constexpr uint32_t | defaultValue (uint32_t cIdx, bool shiftResult) const noexcept |
| |
| constexpr uint32_t | find (CType s) const noexcept |
| | Returns first index of given CType within componentOrder(), -1 if not exists.
|
| |
| constexpr uint32_t | fromFloat (float f, uint32_t cIdx, bool shiftResult) const noexcept |
| |
| constexpr size_t | hashCode () const noexcept |
| |
| constexpr bool | isInterleaved () const noexcept |
| | Returns true if all components are packed, i.e.
|
| |
| constexpr bool | isUniform () const noexcept |
| | Returns true if all components are of same bit-size, e.g.
|
| |
| constexpr bool | operator== (const PixelFormat &rhs) const noexcept |
| |
| constexpr const comparray4_t & | order () const noexcept |
| | Returns the Component type order of all components, see componentBitMask().
|
| |
| constexpr jau::nsize_t | size () const noexcept |
| | Number of components per pixel, e.g.
|
| |
| constexpr float | toFloat (uint32_t v, jau::nsize_t cIdx, bool isShifted) const noexcept |
| |
| std::string | toString () const noexcept |
| |
| uint32_t | toU32 (const uint8_t *src) const |
| |
| constexpr uint32_t | toU32 (uint8_t c1NormI8) const noexcept |
| |
| constexpr uint32_t | toU32 (uint8_t c1NormI8, uint8_t c2NormI8, uint8_t c3NormI8) const noexcept |
| |
| constexpr uint32_t | toU32 (uint8_t c1NormI8, uint8_t c2NormI8, uint8_t c3NormI8, uint8_t c4NormI8) const noexcept |
| |
Packed pixel composition, i.e.
layout of its components.
Components are interleaved, i.e. packed.
Definition at line 53 of file PixelFormat.hpp.
◆ toString()
| std::string gamp::render::pixel::PixelFormat::toString |
( |
| ) |
const |
|
inlinenoexcept |
◆ isUniform()
| bool gamp::render::pixel::PixelFormat::isUniform |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ isInterleaved()
| bool gamp::render::pixel::PixelFormat::isInterleaved |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ size()
| jau::nsize_t gamp::render::pixel::PixelFormat::size |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ bitsPerPixel()
| uint32_t gamp::render::pixel::PixelFormat::bitsPerPixel |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ bitStride()
| uint32_t gamp::render::pixel::PixelFormat::bitStride |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ bytesPerPixel()
| uint32_t gamp::render::pixel::PixelFormat::bytesPerPixel |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ order()
| const comparray4_t & gamp::render::pixel::PixelFormat::order |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ find()
| uint32_t gamp::render::pixel::PixelFormat::find |
( |
CType | s | ) |
const |
|
inlineconstexprnoexcept |
◆ bitMask()
| const u32array4_t & gamp::render::pixel::PixelFormat::bitMask |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ bitCount()
| const u32array4_t & gamp::render::pixel::PixelFormat::bitCount |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ bitShift()
| const u32array4_t & gamp::render::pixel::PixelFormat::bitShift |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ toU32() [1/4]
| uint32_t gamp::render::pixel::PixelFormat::toU32 |
( |
uint8_t | c1NormI8 | ) |
const |
|
inlineconstexprnoexcept |
◆ toU32() [2/4]
| uint32_t gamp::render::pixel::PixelFormat::toU32 |
( |
uint8_t | c1NormI8, |
|
|
uint8_t | c2NormI8, |
|
|
uint8_t | c3NormI8 ) const |
|
inlineconstexprnoexcept |
◆ toU32() [3/4]
| uint32_t gamp::render::pixel::PixelFormat::toU32 |
( |
uint8_t | c1NormI8, |
|
|
uint8_t | c2NormI8, |
|
|
uint8_t | c3NormI8, |
|
|
uint8_t | c4NormI8 ) const |
|
inlineconstexprnoexcept |
◆ toU32() [4/4]
| uint32_t gamp::render::pixel::PixelFormat::toU32 |
( |
const uint8_t * | src | ) |
const |
|
inline |
◆ toFloat()
| float gamp::render::pixel::PixelFormat::toFloat |
( |
uint32_t | v, |
|
|
jau::nsize_t | cIdx, |
|
|
bool | isShifted ) const |
|
inlineconstexprnoexcept |
◆ fromFloat()
| uint32_t gamp::render::pixel::PixelFormat::fromFloat |
( |
float | f, |
|
|
uint32_t | cIdx, |
|
|
bool | shiftResult ) const |
|
inlineconstexprnoexcept |
◆ defaultValue()
| uint32_t gamp::render::pixel::PixelFormat::defaultValue |
( |
uint32_t | cIdx, |
|
|
bool | shiftResult ) const |
|
inlineconstexprnoexcept |
◆ hashCode()
| size_t gamp::render::pixel::PixelFormat::hashCode |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ operator==()
| bool gamp::render::pixel::PixelFormat::operator== |
( |
const PixelFormat & | rhs | ) |
const |
|
inlineconstexprnoexcept |
◆ PixelFormats
The documentation for this class was generated from the following file: