Home
last modified time | relevance | path

Searched refs:ivals (Results 1 - 1 of 1) sorted by relevance

/third_party/astc-encoder/Source/
H A Dastcenc_color_quantize.cpp1214 int ivals[4]; in quantize_hdr_rgbo() variable
1220 ivals[i] = astc::flt2int_rtn(vals[i] * (1.0f / 512.0f)); in quantize_hdr_rgbo()
1221 cvals[i] = static_cast<float>(ivals[i]) * 512.0f; in quantize_hdr_rgbo()
1228 ivals[3] = astc::flt2int_rtn(vals[3] * (1.0f / 512.0f)); in quantize_hdr_rgbo()
1231 encvals[0] = (ivals[0] & 0x3f) | 0xC0; in quantize_hdr_rgbo()
1232 encvals[1] = (ivals[1] & 0x7f) | 0x80; in quantize_hdr_rgbo()
1233 encvals[2] = (ivals[2] & 0x7f) | 0x80; in quantize_hdr_rgbo()
1234 encvals[3] = (ivals[3] & 0x7f) | ((ivals[0] & 0x40) << 1); in quantize_hdr_rgbo()

Completed in 7 milliseconds