ARM Compute Library
17.04
|
Class describing the value of a pixel for any image format. More...
#include <PixelValue.h>
Public Member Functions | |
PixelValue () | |
Default constructor: value initialized to 0. More... | |
PixelValue (uint8_t v) | |
Initialize the union with a U8 pixel value. More... | |
PixelValue (uint16_t v) | |
Initialize the union with a U16 pixel value. More... | |
PixelValue (int16_t v) | |
Initialize the union with a S16 pixel value. More... | |
PixelValue (uint32_t v) | |
Initialize the union with a U32 pixel value. More... | |
PixelValue (int32_t v) | |
Initialize the union with a S32 pixel value. More... | |
PixelValue (float v) | |
Initialize the union with a F32 pixel value. More... | |
void | get (uint8_t &v) const |
Interpret the pixel value as a U8. More... | |
void | get (uint16_t &v) const |
Interpret the pixel value as a U16. More... | |
void | get (int16_t &v) const |
Interpret the pixel value as a S16. More... | |
void | get (uint32_t &v) const |
Interpret the pixel value as a U32. More... | |
void | get (int32_t &v) const |
Interpret the pixel value as a S32. More... | |
void | get (float &v) const |
Interpret the pixel value as a F32. More... | |
Data Fields | |
union { | |
uint8_t rgb [3] | |
3 channels: RGB888 More... | |
uint8_t yuv [3] | |
3 channels: Any YUV format More... | |
uint8_t rgbx [4] | |
4 channels: RGBX8888 More... | |
float f32 | |
Single channel float 32. More... | |
uint8_t u8 | |
Single channel U8. More... | |
uint16_t u16 | |
Single channel U16. More... | |
int16_t s16 | |
Single channel S16. More... | |
uint32_t u32 | |
Single channel U32. More... | |
int32_t s32 | |
Single channel S32. More... | |
} | value |
Union which describes the value of a pixel for any image format. More... | |
Class describing the value of a pixel for any image format.
Definition at line 32 of file PixelValue.h.
|
inline |
Default constructor: value initialized to 0.
Definition at line 36 of file PixelValue.h.
|
inline |
Initialize the union with a U8 pixel value.
[in] | v | U8 value. |
Definition at line 44 of file PixelValue.h.
References PixelValue::value.
|
inline |
Initialize the union with a U16 pixel value.
[in] | v | U16 value. |
Definition at line 53 of file PixelValue.h.
References PixelValue::value.
|
inline |
Initialize the union with a S16 pixel value.
[in] | v | S16 value. |
Definition at line 62 of file PixelValue.h.
References PixelValue::value.
|
inline |
Initialize the union with a U32 pixel value.
[in] | v | U32 value. |
Definition at line 71 of file PixelValue.h.
References PixelValue::value.
|
inline |
Initialize the union with a S32 pixel value.
[in] | v | S32 value. |
Definition at line 80 of file PixelValue.h.
References PixelValue::value.
|
inline |
Initialize the union with a F32 pixel value.
[in] | v | F32 value. |
Definition at line 89 of file PixelValue.h.
References PixelValue::value.
|
inline |
Interpret the pixel value as a U8.
[out] | v | Returned value |
Definition at line 113 of file PixelValue.h.
References PixelValue::value.
|
inline |
Interpret the pixel value as a U16.
[out] | v | Returned value |
Definition at line 121 of file PixelValue.h.
References PixelValue::value.
|
inline |
Interpret the pixel value as a S16.
[out] | v | Returned value |
Definition at line 129 of file PixelValue.h.
References PixelValue::value.
|
inline |
Interpret the pixel value as a U32.
[out] | v | Returned value |
Definition at line 137 of file PixelValue.h.
References PixelValue::value.
|
inline |
Interpret the pixel value as a S32.
[out] | v | Returned value |
Definition at line 145 of file PixelValue.h.
References PixelValue::value.
|
inline |
Interpret the pixel value as a F32.
[out] | v | Returned value |
Definition at line 153 of file PixelValue.h.
References PixelValue::value.
float f32 |
Single channel float 32.
Definition at line 102 of file PixelValue.h.
uint8_t rgb[3] |
3 channels: RGB888
Definition at line 99 of file PixelValue.h.
uint8_t rgbx[4] |
4 channels: RGBX8888
Definition at line 101 of file PixelValue.h.
int16_t s16 |
Single channel S16.
Definition at line 105 of file PixelValue.h.
int32_t s32 |
Single channel S32.
Definition at line 107 of file PixelValue.h.
uint16_t u16 |
Single channel U16.
Definition at line 104 of file PixelValue.h.
uint32_t u32 |
Single channel U32.
Definition at line 106 of file PixelValue.h.
uint8_t u8 |
Single channel U8.
Definition at line 103 of file PixelValue.h.
union { ... } value |
Union which describes the value of a pixel for any image format.
Use the field corresponding to the image format
Referenced by PixelValue::get(), and PixelValue::PixelValue().
uint8_t yuv[3] |
3 channels: Any YUV format
Definition at line 100 of file PixelValue.h.