Home
last modified time | relevance | path

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

/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/include/
H A Dpixel_convert.h104 constexpr float HALF_ONE = 0.5F; member
136 uint32_t result = static_cast<float>(colorComponent) * ALPHA_OPAQUE / alpha + HALF_ONE; in Unpremul255()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/
H A Dpixel_map.cpp3124 if ((nPixel + HALF_ONE) >= UINT8_MAX) { in ProcessPremulPixel()
3127 return static_cast<uint8_t>(nPixel + HALF_ONE); in ProcessPremulPixel()
3146 pixel[alphaIndex] = static_cast<uint8_t>(UINT8_MAX * percent + HALF_ONE); in SetUintPixelAlpha()
3155 if ((rPixel + HALF_ONE) >= UINT10_MAX) { in CheckPixel()
3158 pixel = static_cast<uint16_t>(rPixel + HALF_ONE); in CheckPixel()
3181 a = static_cast<uint16_t>(UINT2_MAX * percent + HALF_ONE); in SetRGBA1010102PixelAlpha()
3187 uint8_t alpha = static_cast<uint8_t>(UINT2_MAX * percent + HALF_ONE); in SetRGBA1010102PixelAlpha()
3226 wpixel[pixelIndex] = static_cast<uint8_t>(nPixel + HALF_ONE); in ConvertUintPixelAlpha()

Completed in 7 milliseconds