![]() |
Oyranos
git-devel
Oyranos is a full featured Color Management System
|
Pixel buffer abstraction. More...
|
Data Structures | |
| struct | oyArray2d_s |
| 2d data array More... | |
| struct | oyImage_s |
| A reference struct to gather information for image transformation. More... | |
| struct | oyRectangle_s |
| A simple rectangle of double values. More... | |
Typedefs | |
| typedef uint32_t | oyPixel_t |
Enumerations | |
| enum | oyDATATYPE_e { oyUINT8, oyUINT16, oyUINT32, oyHALF, oyFLOAT, oyDOUBLE } |
| Basic data types for anonymous pointers. More... | |
| enum | oyCHANNELTYPE_e { oyCHANNELTYPE_UNDEFINED, oyCHANNELTYPE_OTHER, oyCHANNELTYPE_LIGHTNESS, oyCHANNELTYPE_COLOR, oyCHANNELTYPE_COLOR_LIGHTNESS, oyCHANNELTYPE_COLOR_LIGHTNESS_PREMULTIPLIED, oyCHANNELTYPE_DEPTH, oyCHANNELTYPE_ALPHA1, oyCHANNELTYPE_ALPHA2, oyCHANNELTYPE_ALPHA3, oyCHANNELTYPE_U, oyCHANNELTYPE_V } |
| Channels types of Colors. More... | |
| enum | oyPIXEL_ACCESS_TYPE_e { oyPIXEL_ACCESS_IMAGE, oyPIXEL_ACCESS_POINT, oyPIXEL_ACCESS_LINE } |
| Pixel access types. More... | |
| enum | oyLAYOUT_e { oyLAYOUT = 0, oyPOFF_X, oyPOFF_Y, oyCOFF, oyDATA_SIZE, oyCHANS, oyCHAN0 } |
| Pixel mask descriptions. More... | |
Functions | |
| size_t | oyDataTypeGetSize (oyDATATYPE_e data_type) |
| oyDATATYPE_e to byte mapping More... | |
| const char * | oyDataTypeToText (oyDATATYPE_e data_type) |
| oyDATATYPE_e to string mapping More... | |
| oyCHANNELTYPE_e | oyICCColorSpaceToChannelLayout (icColorSpaceSignature sig, int pos) |
| describe a channels characteristic More... | |
Pixel buffer abstraction.
| #define OY_TYPE_1234_8 (oyChannels_m(4)|oyDataType_m(oyUINT8)) |
8-bit Cmyk
| #define OY_TYPE_1234A_8 (oyChannels_m(5)|oyDataType_m(oyUINT8)) |
8-bit Cmyk alpha
| #define OY_TYPE_123_16 (oyChannels_m(3)|oyDataType_m(oyUINT16)) |
16-bit RGB/...
| #define OY_TYPE_123_8 (oyChannels_m(3)|oyDataType_m(oyUINT8)) |
8-bit RGB/YUV/XYZ/...
| #define OY_TYPE_123_DBL (oyChannels_m(3)|oyDataType_m(oyDOUBLE)) |
64-bit double RGB/...
| #define OY_TYPE_123_FLOAT (oyChannels_m(3)|oyDataType_m(oyFLOAT)) |
32-bit float RGB/...
| #define OY_TYPE_123_HALF (oyChannels_m(3)|oyDataType_m(oyHALF)) |
16-bit float RGB/...
| #define OY_TYPE_123A_16 (oyChannels_m(4)|oyDataType_m(oyUINT16)) |
16-bit RGB/... alpha
| #define OY_TYPE_123A_8 (oyChannels_m(4)|oyDataType_m(oyUINT8)) |
8-bit RGB/... alpha
| #define OY_TYPE_123A_DBL (oyChannels_m(4)|oyDataType_m(oyDOUBLE)) |
64-bit double RGB/... alpha
| #define OY_TYPE_123A_FLOAT (oyChannels_m(4)|oyDataType_m(oyFLOAT)) |
32-bit float RGB/... alpha
| #define OY_TYPE_123A_HALF (oyChannels_m(4)|oyDataType_m(oyHALF)) |
16-bit float RGB/... alpha
| #define OY_TYPE_123AZ_DBL (oyChannels_m(5)|oyDataType_m(oyDOUBLE)) |
64-bit double RGB/... alpha + Z
| #define OY_TYPE_123AZ_FLOAT (oyChannels_m(5)|oyDataType_m(oyFLOAT)) |
32-bit float RGB/... alpha + Z
| #define OY_TYPE_123AZ_HALF (oyChannels_m(5)|oyDataType_m(oyHALF)) |
16-bit float RGB/... alpha + Z
| #define OY_TYPE_1_16 (oyChannels_m(1)|oyDataType_m(oyUINT16)) |
16-bit Gray
| #define OY_TYPE_1_8 (oyChannels_m(1)|oyDataType_m(oyUINT8)) |
8-bit Gray
| #define oyByteswap_m | ( | x | ) | ((x) << 31) |
Set byte swapping for integers larger than 8 byte in oyPixel_t
| #define oyChannels_m | ( | c | ) | (c) |
Set channels count in oyPixel_t
Referenced by oyConnectorImaging_s::oyFilterSocket_MatchImagingPlug().
| #define oyColorOffset_m | ( | o | ) | ((o) << 16) |
Set offset count to first color channel in oyPixel_t
| #define oyDataType_m | ( | t | ) | ((t) << 24) |
Set oyDATATYPE_e in oyPixel_t
| #define oyFlavor_m | ( | p | ) | ((f) << 30) |
Set min is white in oyPixel_t
| #define oyPlanar_m | ( | p | ) | ((p) << 29) |
Set planar instead of interwoven color channels in oyPixel_t
| #define oySwapColorChannels_m | ( | s | ) | ((s) << 28) |
Set swapping of color channels in oyPixel_t , e.g. BGR
| #define oyToByteswap_m | ( | x | ) | (((x) >> 31)&1) |
Get byte swapping for integers larger than 8 byte in oyPixel_t
Referenced by oyConnectorImaging_s::oyFilterSocket_MatchImagingPlug().
| #define oyToChannels_m | ( | c | ) | ((c)&65535) |
Get channels count in oyPixel_t
Referenced by oyPixelToLcm2PixelLayout_().
| #define oyToColorOffset_m | ( | o | ) | (((o) >> 16)&255) |
Get offset count to first color channel in oyPixel_t
Referenced by oyPixelToLcm2PixelLayout_().
| #define oyToDataType_m | ( | t | ) | ((oyDATATYPE_e)(((t) >> 24)&15)) |
Get oyDATATYPE_e in oyPixel_t
Referenced by oyConnectorImaging_s::oyFilterSocket_MatchImagingPlug(), and oyPixelToLcm2PixelLayout_().
| #define oyToFlavor_m | ( | f | ) | (((f) >> 30)&1) |
Get min is white in oyPixel_t
Referenced by oyConnectorImaging_s::oyFilterSocket_MatchImagingPlug(), and oyPixelToLcm2PixelLayout_().
| #define oyToPlanar_m | ( | p | ) | (((p) >> 29)&1) |
Get planar instead of interwoven color channels in oyPixel_t
Referenced by oyConnectorImaging_s::oyFilterSocket_MatchImagingPlug(), and oyPixelToLcm2PixelLayout_().
| #define oyToSwapColorChannels_m | ( | s | ) | (((s) >> 28)&1) |
Get swapping of color channels in oyPixel_t , e.g. BGR
Referenced by oyConnectorImaging_s::oyFilterSocket_MatchImagingPlug().
parametric type as shorthand for the channel layout in bitmaps
should fit into a 32bit type, usual unsigned int or uint32_t
X F P S TTTT OOOOOOOO CCCCCCCCCCCCCCCC
C channels count per pixel (3 for RGB); max 65535
O color channel offset (0 for RGB, 1 for ARGB)
P Planar bit: 0 - interwoven, 1 - one channel after the other
S Swap color channels bit (BGR)
T Type oyDATATYPE_e
X non host byte order bit
F Revert bit: 0 - MinIsBlack(Chocolate) 1 - MinIsWhite(Vanilla);
exchange min and max : (1-x)
| enum oyCHANNELTYPE_e |
Channels types of Colors.
This type is useful to present color manipulation UI elements in a sensible way.
| enum oyDATATYPE_e |
Basic data types for anonymous pointers.
| enum oyLAYOUT_e |
Pixel mask descriptions.
| Enumerator | |
|---|---|
| oyLAYOUT | remembering the layout
|
| oyPOFF_X | pixel count x offset |
| oyPOFF_Y | pixel count y offset |
| oyCOFF | channel offset |
| oyDATA_SIZE | sample size in byte |
| oyCHANS | number of channels |
| oyCHAN0 | first color channel position |
| size_t oyDataTypeGetSize | ( | oyDATATYPE_e | data_type | ) |
| const char* oyDataTypeToText | ( | oyDATATYPE_e | data_type | ) |
| oyCHANNELTYPE_e oyICCColorSpaceToChannelLayout | ( | icColorSpaceSignature | sig, |
| int | pos | ||
| ) |
describe a channels characteristic
Function: oyICCColorSpaceToChannelLayout
References oyCHANNELTYPE_COLOR, oyCHANNELTYPE_COLOR_LIGHTNESS, oyCHANNELTYPE_LIGHTNESS, oyCHANNELTYPE_OTHER, and oyICCColorSpaceGetChannelCount().
1.8.13