Searched refs:linear1 (Results 1 – 3 of 3) sorted by relevance
218 int32_t linear1; in diffTwoBytePrimaries() local223 linear1 = (int32_t)((p1 >> 16) & 0xff) - 4; in diffTwoBytePrimaries()228 linear1 = (int32_t)((p1 >> 16) & 0xff) - 2; in diffTwoBytePrimaries()232 linear1 += factor * (int32_t)((p1 >> 24) & 0xff); in diffTwoBytePrimaries()234 return linear2 - linear1; in diffTwoBytePrimaries()245 int32_t linear1 = (int32_t)((p1 >> 8) & 0xff) - 2; in diffThreeBytePrimaries() local250 linear1 += 254 * ((int32_t)((p1 >> 16) & 0xff) - 4); in diffThreeBytePrimaries()255 linear1 += 254 * ((int32_t)((p1 >> 16) & 0xff) - 2); in diffThreeBytePrimaries()259 linear1 += factor * (int32_t)((p1 >> 24) & 0xff); in diffThreeBytePrimaries()261 return linear2 - linear1; in diffThreeBytePrimaries()
114 float3 linear1 = color.rgb / 12.92; in sRGBtoLinear() local117 float4 linear = float4(factor * linear1 + float3(1.0 - factor) * linear2, color.a); in sRGBtoLinear()
145 float3 linear1 = color.rgb / 12.92;148 float4 linear = float4(factor * linear1 + float3(1.0 - factor) * linear2, color.a);