Home
last modified time | relevance | path

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

/third_party/skia/src/opts/
DSkRasterPipeline_opts.h1270 SI U32 to_unorm(F v, F scale, F bias = 1.0f) {
1599 dst = to_unorm(r, 1, 255) in STAGE()
1600 | to_unorm(g, 1, 255) << 8 in STAGE()
1601 | to_unorm(b, 1, 255) << 16 in STAGE()
1602 | to_unorm(a, 1, 255) << 24; in STAGE()
1840 r = from_byte(gather(tables->r, to_unorm(r, 255))); in STAGE()
1841 g = from_byte(gather(tables->g, to_unorm(g, 255))); in STAGE()
1842 b = from_byte(gather(tables->b, to_unorm(b, 255))); in STAGE()
1843 a = from_byte(gather(tables->a, to_unorm(a, 255))); in STAGE()
1957 U8 packed = pack(pack(to_unorm(a, 255))); in STAGE()
[all …]
/third_party/skia/src/effects/
DSkTableColorFilter.cpp70 skvm::I32 index = to_unorm(8, clamp01(c)); in onProgram()
/third_party/skia/src/core/
DSkVM.h1311 SI I32 to_unorm(int bits, F32 x) { return x-> to_unorm(bits,x); } in to_unorm() function
DSkVM.cpp1156 I32 Builder::to_unorm(int bits, F32 x) { in to_unorm() function in skvm::Builder
1360 return to_unorm(bits, sk_program_transfer_fn(v, sRGBish_TF, in pack32()
1374 case PixelFormat::UNORM: encoded = to_unorm(bits, channel); break; in pack32()
1384 case PixelFormat:: SRGB: encoded = to_unorm(bits, channel); break; in pack32()