#include <image.h>
Describe an image pixel; how to interpret a piece of pixel data.
When you provide image data to these Image classes, it will be converted to the preferred internal representation as specified above. When image data is queried, it will almost always be returned in the preferred internal channel ordering, and will always be returned PreMultiplied.
Public Types | |
enum | ChannelType { uChar = 0, uShort = 1, sHalf = 2, sFloat = 3, sChar = 4, sShort = 5, uInt = 6, sInt = 7, sDouble = 8 } |
Describe the data type of a single channel of a pixel. More... | |
enum | MemoryChannelOrder { orderNONE = 0, orderRGBA = 1, orderABGR = 2, orderBGRA = 3, orderARGB = 4, orderRGB = 5, orderBGR = 6 } |
Describe channel ordering for 4 channel images – these are the order of the channels in memory, not in registers or uInts. More... | |
Public Member Functions | |
PixelDescriptor (char cCount, ChannelType channelType, MemoryChannelOrder channelOrder, bool PreMultiplied) | |
int | channelSize () const |
return the size of a pixel channel in bytes More... | |
int | channelBitSize () const |
return the size of a pixel channel in bits More... | |
int | pixelSize () const |
return the size of a pixel in bytes More... | |
int | pixelBitSize () const |
return the size of a pixel in bits More... | |
ChannelType | channelType () const |
Get the channel type of the image/pixel. More... | |
MemoryChannelOrder | channelOrder () const |
Get the channel ordering of the image/pixel. More... | |
bool | premultiplied () const |
returns true if the RGB values are premultiplied by the A values, false otherwise. More... | |
int | channelCount () const |
return the number of channels – 1, 2, 3, or 4 More... | |
void | setChannelCount (int c) |
set the number of channels – 1, 2, 3, or 4 More... | |
bool | operator== (const PixelDescriptor &pd) const |
returns true if the pixel descriptors are equal More... | |
Protected Attributes | |
char | m_cCount |
number of channels in the image – 1, 3, or 4 More... | |
ChannelType | m_channelType |
Channel type. More... | |
MemoryChannelOrder | m_channelOrder |
channel ordering More... | |
bool | m_PreMultiplied |
true if RGB is premultiplied by A More... | |
enum ChannelType |
Describe the data type of a single channel of a pixel.
Definition at line 1258 of file image.h.
enum MemoryChannelOrder |
Describe channel ordering for 4 channel images – these are the order of the channels in memory, not in registers or uInts.
Definition at line 1273 of file image.h.
|
inline |
Definition at line 1292 of file image.h.
|
inline |
return the size of a pixel channel in bytes
Definition at line 1302 of file image.h.
|
inline |
return the size of a pixel channel in bits
Definition at line 1308 of file image.h.
|
inline |
return the size of a pixel in bytes
Definition at line 1313 of file image.h.
|
inline |
return the size of a pixel in bits
Definition at line 1318 of file image.h.
|
inline |
Get the channel type of the image/pixel.
Definition at line 1323 of file image.h.
|
inline |
Get the channel ordering of the image/pixel.
Definition at line 1326 of file image.h.
|
inline |
returns true if the RGB values are premultiplied by the A values, false otherwise.
Default is true...
Definition at line 1330 of file image.h.
|
inline |
return the number of channels – 1, 2, 3, or 4
Definition at line 1333 of file image.h.
set the number of channels – 1, 2, 3, or 4
Definition at line 1336 of file image.h.
|
inline |
returns true if the pixel descriptors are equal
Definition at line 1339 of file image.h.
|
protected |
|
protected |
|
protected |
|
protected |