Searched refs:xyz (Results 1 – 3 of 3) sorted by relevance
/zscilib-3.4.0/tests/src/ |
D | clr_conv.c | 16 struct zsl_clr_xyz xyz; in ZTEST() local 18 rc = zsl_clr_conv_spd_xyz(&zsl_clr_test_spd_5983k, ZSL_CLR_OBS_2_DEG, &xyz); in ZTEST() 20 zassert_true(val_is_equal(xyz.xyz_x, 0.9516492, 1E-5), NULL); in ZTEST() 21 zassert_true(val_is_equal(xyz.xyz_y, 1.0, 1E-5), NULL); in ZTEST() 22 zassert_true(val_is_equal(xyz.xyz_z, 1.0056107, 1E-5), NULL); in ZTEST() 23 zassert_true(xyz.observer == ZSL_CLR_OBS_2_DEG, NULL); in ZTEST() 24 zassert_false(xyz.x_invalid, NULL); in ZTEST() 25 zassert_false(xyz.y_invalid, NULL); in ZTEST() 26 zassert_false(xyz.z_invalid, NULL); in ZTEST() 32 struct zsl_clr_xyz xyz; in ZTEST() local [all …]
|
/zscilib-3.4.0/src/colorimetry/ |
D | conv.c | 425 struct zsl_clr_xyz *xyz) in zsl_clr_conv_spd_xyz() argument 433 memset(xyz, 0, sizeof(*xyz)); in zsl_clr_conv_spd_xyz() 454 xyz->xyz_x += spd->comps[i].value * in zsl_clr_conv_spd_xyz() 456 xyz->xyz_y += spd->comps[i].value * in zsl_clr_conv_spd_xyz() 458 xyz->xyz_z += spd->comps[i].value * in zsl_clr_conv_spd_xyz() 471 xyz->xyz_x /= matches; in zsl_clr_conv_spd_xyz() 472 xyz->xyz_y /= matches; in zsl_clr_conv_spd_xyz() 473 xyz->xyz_z /= matches; in zsl_clr_conv_spd_xyz() 476 xyz->xyz_x /= xyz->xyz_y; in zsl_clr_conv_spd_xyz() 477 xyz->xyz_z /= xyz->xyz_y; in zsl_clr_conv_spd_xyz() [all …]
|
/zscilib-3.4.0/include/zsl/ |
D | colorimetry.h | 547 struct zsl_clr_xyz *xyz); 558 int zsl_clr_conv_xyy_xyz(struct zsl_clr_xyy *xyy, struct zsl_clr_xyz *xyz); 569 int zsl_clr_conv_xyz_xyy(struct zsl_clr_xyz *xyz, struct zsl_clr_xyy *xyy); 590 int zsl_clr_conv_xyz_uv60(struct zsl_clr_xyz *xyz, struct zsl_clr_uv60 *uv); 601 int zsl_clr_conv_uv60_xyz(struct zsl_clr_uv60 *uv, struct zsl_clr_xyz *xyz); 659 struct zsl_clr_xyz *xyz); 711 struct zsl_clr_xyz *xyz); 736 int zsl_clr_conv_xyz_rgb8(struct zsl_clr_xyz *xyz, struct zsl_mtx *mtx, 753 int zsl_clr_conv_xyz_rgbf(struct zsl_clr_xyz *xyz, struct zsl_mtx *mtx,
|