• Home
  • Raw
  • Download

Lines Matching refs:XYZ

1233 png_xy_from_XYZ(png_xy *xy, const png_XYZ *XYZ)
1237 d = XYZ->red_X + XYZ->red_Y + XYZ->red_Z;
1238 if (png_muldiv(&xy->redx, XYZ->red_X, PNG_FP_1, d) == 0)
1240 if (png_muldiv(&xy->redy, XYZ->red_Y, PNG_FP_1, d) == 0)
1243 whiteX = XYZ->red_X;
1244 whiteY = XYZ->red_Y;
1246 d = XYZ->green_X + XYZ->green_Y + XYZ->green_Z;
1247 if (png_muldiv(&xy->greenx, XYZ->green_X, PNG_FP_1, d) == 0)
1249 if (png_muldiv(&xy->greeny, XYZ->green_Y, PNG_FP_1, d) == 0)
1252 whiteX += XYZ->green_X;
1253 whiteY += XYZ->green_Y;
1255 d = XYZ->blue_X + XYZ->blue_Y + XYZ->blue_Z;
1256 if (png_muldiv(&xy->bluex, XYZ->blue_X, PNG_FP_1, d) == 0)
1258 if (png_muldiv(&xy->bluey, XYZ->blue_Y, PNG_FP_1, d) == 0)
1261 whiteX += XYZ->blue_X;
1262 whiteY += XYZ->blue_Y;
1276 png_XYZ_from_xy(png_XYZ *XYZ, const png_xy *xy)
1514 if (png_muldiv(&XYZ->red_X, xy->redx, PNG_FP_1, red_inverse) == 0)
1516 if (png_muldiv(&XYZ->red_Y, xy->redy, PNG_FP_1, red_inverse) == 0)
1518 if (png_muldiv(&XYZ->red_Z, PNG_FP_1 - xy->redx - xy->redy, PNG_FP_1,
1522 if (png_muldiv(&XYZ->green_X, xy->greenx, PNG_FP_1, green_inverse) == 0)
1524 if (png_muldiv(&XYZ->green_Y, xy->greeny, PNG_FP_1, green_inverse) == 0)
1526 if (png_muldiv(&XYZ->green_Z, PNG_FP_1 - xy->greenx - xy->greeny, PNG_FP_1,
1530 if (png_muldiv(&XYZ->blue_X, xy->bluex, blue_scale, PNG_FP_1) == 0)
1532 if (png_muldiv(&XYZ->blue_Y, xy->bluey, blue_scale, PNG_FP_1) == 0)
1534 if (png_muldiv(&XYZ->blue_Z, PNG_FP_1 - xy->bluex - xy->bluey, blue_scale,
1542 png_XYZ_normalize(png_XYZ *XYZ)
1546 if (XYZ->red_Y < 0 || XYZ->green_Y < 0 || XYZ->blue_Y < 0 ||
1547 XYZ->red_X < 0 || XYZ->green_X < 0 || XYZ->blue_X < 0 ||
1548 XYZ->red_Z < 0 || XYZ->green_Z < 0 || XYZ->blue_Z < 0)
1556 Y = XYZ->red_Y;
1557 if (0x7fffffff - Y < XYZ->green_X)
1559 Y += XYZ->green_Y;
1560 if (0x7fffffff - Y < XYZ->blue_X)
1562 Y += XYZ->blue_Y;
1566 if (png_muldiv(&XYZ->red_X, XYZ->red_X, PNG_FP_1, Y) == 0)
1568 if (png_muldiv(&XYZ->red_Y, XYZ->red_Y, PNG_FP_1, Y) == 0)
1570 if (png_muldiv(&XYZ->red_Z, XYZ->red_Z, PNG_FP_1, Y) == 0)
1573 if (png_muldiv(&XYZ->green_X, XYZ->green_X, PNG_FP_1, Y) == 0)
1575 if (png_muldiv(&XYZ->green_Y, XYZ->green_Y, PNG_FP_1, Y) == 0)
1577 if (png_muldiv(&XYZ->green_Z, XYZ->green_Z, PNG_FP_1, Y) == 0)
1580 if (png_muldiv(&XYZ->blue_X, XYZ->blue_X, PNG_FP_1, Y) == 0)
1582 if (png_muldiv(&XYZ->blue_Y, XYZ->blue_Y, PNG_FP_1, Y) == 0)
1584 if (png_muldiv(&XYZ->blue_Z, XYZ->blue_Z, PNG_FP_1, Y) == 0)
1618 png_colorspace_check_xy(png_XYZ *XYZ, const png_xy *xy)
1624 result = png_XYZ_from_xy(XYZ, xy);
1628 result = png_xy_from_XYZ(&xy_test, XYZ);
1644 png_colorspace_check_XYZ(png_xy *xy, png_XYZ *XYZ)
1649 result = png_XYZ_normalize(XYZ);
1653 result = png_xy_from_XYZ(xy, XYZ);
1657 XYZtemp = *XYZ;
1673 png_colorspacerp colorspace, const png_xy *xy, const png_XYZ *XYZ,
1703 colorspace->end_points_XYZ = *XYZ;
1729 png_XYZ XYZ;
1731 switch (png_colorspace_check_xy(&XYZ, xy))
1734 return png_colorspace_set_xy_and_XYZ(png_ptr, colorspace, xy, &XYZ,
1760 png_XYZ XYZ = *XYZ_in;
1763 switch (png_colorspace_check_XYZ(&xy, &XYZ))
1766 return png_colorspace_set_xy_and_XYZ(png_ptr, colorspace, &xy, &XYZ,