Memory Consumption

Description

Every color category (model-format pair) occupy some memory.
In below table are given memory consumption in bytes.

Note

Not all combination of model-format are implemented.
Memory consumption depends of OS and/or compiler setting.
This table does not guarantee those values.

Table

modelbool (1 )uint8_t (1 )uint16_t (2 )uint24_t (3 )uint32_t (4 )uint48_t (6 )uint64_t (8 )float (4 )double (8 )long double (8 )split233 split332 split422 split556 split565 split655 split5551 split1555 split2222 split4444 split8888 splitAAA2
rgb"3"36"3"12"3"24122424111222"3""3""3""3""3""3"
bgr"3"36"3"12"3"24122424111222"3""3""3""3""3""3"
rgba"4"48"4"16"4"32163232"4""4""4""4""4""4"221244
argb"4"48"4"16"4"32163232"4""4""4""4""4""4"221244
bgra"4"48"4"16"4"32163232"4""4""4""4""4""4"221244
abgr"4"48"4"16"4"32163232"4""4""4""4""4""4"221244
cmy "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
cmyk"4"48"4"16"4"32163232"4""4""4""4""4""4""4""4""4""4""4""4"
gray112"4"4"4"8488"4""4""4""4""4""4""4""4""4""4""4""4"
hsl "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
hsv "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
hsi "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
yiq "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
yuv601 "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
yuv709 "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
YPbPr601 "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
YPbPr709 "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
YPbPr2020 "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
YCgCo "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
YDbDr "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
xyz "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
labCIE"4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
labHunter "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
lmsKries65 "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
lmsKriesE "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
lmsBFD "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
lmsCAT97 "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
lmsCAT02 "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
luv "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
xyy "4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"
tsl"4"36"4"12"4"24122424"4""4""4""4""4""4""4""4""4""4""4""4"

Type Size
char 1
char 1
wchar_t 2
wchar_t 2
std::int8_t 1
std::int16_t 2
std::int32_t 4
std::int64_t 8
std::uint8_t 1
std::uint16_t 2
std::uint32_t 4
std::uint64_t 8
float 4
double 8
long double 8
nullptr_t 4
void* 4
unsigned 2
short 2
int 4
unsigned 4
long 4
long long 8