Searched refs:to_unorm (Results 1 - 4 of 4) sorted by relevance
/third_party/skia/src/opts/ |
H A D | SkRasterPipeline_opts.h | 1270 SI U32 to_unorm(F v, F scale, F bias = 1.0f) { 1271 // Any time we use round() we probably want to use to_unorm(). 1598 // to_unorm() clamps back to gamut. Scaling by 1 since we're already 255-biased. 1599 dst = to_unorm(r, 1, 255) 1600 | to_unorm(g, 1, 255) << 8 1601 | to_unorm(b, 1, 255) << 16 1602 | to_unorm(a, 1, 255) << 24; 1840 r = from_byte(gather(tables->r, to_unorm(r, 255))); 1841 g = from_byte(gather(tables->g, to_unorm(g, 255))); 1842 b = from_byte(gather(tables->b, to_unorm( [all...] |
/third_party/skia/src/effects/ |
H A D | SkTableColorFilter.cpp | 70 skvm::I32 index = to_unorm(8, clamp01(c));
|
/third_party/skia/src/core/ |
H A D | SkVM.h | 925 I32 to_unorm(int bits, F32); // E.g. to_unorm(8, x) -> round(x * 255) in abs() 1311 SI I32 to_unorm(int bits, F32 x) { return x-> to_unorm(bits,x); } in to_unorm() function
|
H A D | SkVM.cpp | 1156 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()
|
Completed in 15 milliseconds