Home
last modified time | relevance | path

Searched refs:nPixel (Results 1 – 1 of 1) sorted by relevance

/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/
H A Dpixel_map.cpp3117 float nPixel = mulPixel * percent * UINT8_MAX / alpha; in ProcessPremulPixel() local
3118 if ((nPixel + HALF_ONE) >= UINT8_MAX) { in ProcessPremulPixel()
3121 return static_cast<uint8_t>(nPixel + HALF_ONE); in ProcessPremulPixel()
3214 float nPixel; in ConvertUintPixelAlpha() local
3216 nPixel = pixelValue * alphaValue; in ConvertUintPixelAlpha()
3218 nPixel = (alphaValue > 0) ? pixelValue / alphaValue : 0; in ConvertUintPixelAlpha()
3220 wpixel[pixelIndex] = static_cast<uint8_t>(nPixel + HALF_ONE); in ConvertUintPixelAlpha()