Home
last modified time | relevance | path

Searched refs:colorComponent (Results 1 - 1 of 1) sorted by relevance

/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/include/
H A Dpixel_convert.h113 static inline uint32_t Premul255(uint32_t colorComponent, uint32_t alpha) in Premul255() argument
115 if (colorComponent == 0 || colorComponent > MAX_15_BIT_VALUE || alpha > MAX_15_BIT_VALUE) { in Premul255()
118 uint32_t product = colorComponent * alpha + GET_8_BIT; in Premul255()
119 if (colorComponent * alpha / colorComponent != alpha) { in Premul255()
125 static inline uint32_t Unpremul255(uint32_t colorComponent, uint32_t alpha) in Unpremul255() argument
127 if (colorComponent > ALPHA_OPAQUE || alpha > ALPHA_OPAQUE) { in Unpremul255()
134 return colorComponent; in Unpremul255()
136 uint32_t result = static_cast<float>(colorComponent) * ALPHA_OPAQU in Unpremul255()
[all...]

Completed in 1 milliseconds