PRECACHE_OUTPUT_MAX 342 third_party/qcms/src/transform.c gray = linear * PRECACHE_OUTPUT_MAX; PRECACHE_OUTPUT_MAX 366 third_party/qcms/src/transform.c gray = linear * PRECACHE_OUTPUT_MAX; PRECACHE_OUTPUT_MAX 402 third_party/qcms/src/transform.c r = out_linear_r * PRECACHE_OUTPUT_MAX; PRECACHE_OUTPUT_MAX 403 third_party/qcms/src/transform.c g = out_linear_g * PRECACHE_OUTPUT_MAX; PRECACHE_OUTPUT_MAX 404 third_party/qcms/src/transform.c b = out_linear_b * PRECACHE_OUTPUT_MAX; PRECACHE_OUTPUT_MAX 440 third_party/qcms/src/transform.c r = out_linear_r * PRECACHE_OUTPUT_MAX; PRECACHE_OUTPUT_MAX 441 third_party/qcms/src/transform.c g = out_linear_g * PRECACHE_OUTPUT_MAX; PRECACHE_OUTPUT_MAX 442 third_party/qcms/src/transform.c b = out_linear_b * PRECACHE_OUTPUT_MAX; PRECACHE_OUTPUT_MAX 77 third_party/qcms/src/transform_util.c uint32_t upper = (value + PRECACHE_OUTPUT_MAX-1) / PRECACHE_OUTPUT_MAX; PRECACHE_OUTPUT_MAX 79 third_party/qcms/src/transform_util.c uint32_t lower = value / PRECACHE_OUTPUT_MAX; PRECACHE_OUTPUT_MAX 81 third_party/qcms/src/transform_util.c uint32_t interp = value % PRECACHE_OUTPUT_MAX; PRECACHE_OUTPUT_MAX 84 third_party/qcms/src/transform_util.c value = (table[upper]*(interp) + table[lower]*(PRECACHE_OUTPUT_MAX - interp)); // 0..(65535*PRECACHE_OUTPUT_MAX) PRECACHE_OUTPUT_MAX 87 third_party/qcms/src/transform_util.c value += (PRECACHE_OUTPUT_MAX*65535/255)/2; PRECACHE_OUTPUT_MAX 88 third_party/qcms/src/transform_util.c value /= (PRECACHE_OUTPUT_MAX*65535/255); // scale to 0..255 PRECACHE_OUTPUT_MAX 433 third_party/qcms/src/transform_util.c output[v] = 255. * pow(v/(double)PRECACHE_OUTPUT_MAX, gamma);