Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
DDevice.cpp981 float offsetf = roundf((static_cast<float>(clipRect.x0) - srcRect.x0) * ratio); in ClipSrcRect() local
982 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() local
1001 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() local
1020 if (!FloatFitsInInt(offsetf) || !std::isfinite(ratio)) in ClipSrcRect()
[all …]
/third_party/ffmpeg/libavfilter/
Dvf_premultiply.c256 float offsetf = offset / 65535.0f; in premultiplyf32offset() local
260 dst[x] = ((msrc[x] - offsetf) * asrc[x]) + offsetf; in premultiplyf32offset()
456 float offsetf = offset / 65535.0f; in unpremultiplyf32offset() local
461 dst[x] = (msrc[x] - offsetf) / asrc[x] + offsetf; in unpremultiplyf32offset()