Home
last modified time | relevance | path

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

/external/skia/src/opts/
DSkRasterPipeline_opts.h1585 SI U32 to_unorm(F v, F scale, F bias = 1.0f) {
1942 dst = to_unorm(r, 1, 255) in STAGE()
1943 | to_unorm(g, 1, 255) << 8 in STAGE()
1944 | to_unorm(b, 1, 255) << 16 in STAGE()
1945 | to_unorm(a, 1, 255) << 24; in STAGE()
2275 r = from_byte(gather(tables->r, to_unorm(r, 255))); in STAGE()
2276 g = from_byte(gather(tables->g, to_unorm(g, 255))); in STAGE()
2277 b = from_byte(gather(tables->b, to_unorm(b, 255))); in STAGE()
2278 a = from_byte(gather(tables->a, to_unorm(a, 255))); in STAGE()
2392 U8 packed = pack(pack(to_unorm(a, 255))); in STAGE()
[all …]
/external/skia/src/effects/
DSkTableColorFilter.cpp128 skvm::I32 index = to_unorm(8, clamp01(c)); in onProgram()
/external/skia/src/core/
DSkVM.h1341 SI I32 to_unorm(int bits, F32 x) { return x-> to_unorm(bits,x); } in to_unorm() function
DSkVM.cpp1176 I32 Builder::to_unorm(int bits, F32 x) { in to_unorm() function in skvm::Builder
1390 return to_unorm(bits, sk_program_transfer_fn(v, skcms_TFType_sRGBish, in pack32()
1403 return to_unorm(bits, (v - min) * (1.0f / range)); in pack32()
1410 case PixelFormat::UNORM: encoded = to_unorm(bits, channel); break; in pack32()
1421 case PixelFormat:: SRGB: encoded = to_unorm(bits, channel); break; in pack32()