Searched refs:offsetf (Results 1 – 2 of 2) sorted by relevance
981 float offsetf = roundf((static_cast<float>(clipRect.x0) - srcRect.x0) * ratio); in ClipSrcRect() local982 if (!FloatFitsInInt(offsetf) || !std::isfinite(ratio)) in ClipSrcRect()986 int offset = static_cast<int>(offsetf); in ClipSrcRect()995 srcRect.x0 += offsetf / ratio; in ClipSrcRect()1000 float offsetf = roundf((srcRect.x1 - static_cast<float>(clipRect.x1)) * ratio); in ClipSrcRect() local1001 if (!FloatFitsInInt(offsetf) || !std::isfinite(ratio)) in ClipSrcRect()1005 int offset = static_cast<int>(offsetf); in ClipSrcRect()1014 srcRect.x1 -= offsetf / ratio; in ClipSrcRect()1019 float offsetf = roundf((static_cast<float>(clipRect.y0) - srcRect.y0) * ratio); in ClipSrcRect() local1020 if (!FloatFitsInInt(offsetf) || !std::isfinite(ratio)) in ClipSrcRect()[all …]
256 float offsetf = offset / 65535.0f; in premultiplyf32offset() local260 dst[x] = ((msrc[x] - offsetf) * asrc[x]) + offsetf; in premultiplyf32offset()456 float offsetf = offset / 65535.0f; in unpremultiplyf32offset() local461 dst[x] = (msrc[x] - offsetf) / asrc[x] + offsetf; in unpremultiplyf32offset()