• Home
  • Raw
  • Download

Lines Matching refs:colorspace

1071     png_colorspacerp colorspace, png_fixed_point gAMA, int from)
1084 if ((colorspace->flags & PNG_COLORSPACE_HAVE_GAMMA) != 0 &&
1085 (png_muldiv(&gtest, colorspace->gamma, PNG_FP_1, gAMA) == 0 ||
1094 if ((colorspace->flags & PNG_COLORSPACE_FROM_sRGB) != 0 || from == 2)
1115 png_colorspacerp colorspace, png_fixed_point gAMA)
1136 (colorspace->flags & PNG_COLORSPACE_FROM_gAMA) != 0)
1141 else if ((colorspace->flags & PNG_COLORSPACE_INVALID) != 0)
1146 if (png_colorspace_check_gamma(png_ptr, colorspace, gAMA,
1150 colorspace->gamma = gAMA;
1151 colorspace->flags |=
1164 colorspace->flags |= PNG_COLORSPACE_INVALID;
1171 if ((info_ptr->colorspace.flags & PNG_COLORSPACE_INVALID) != 0)
1192 if ((info_ptr->colorspace.flags & PNG_COLORSPACE_MATCHES_sRGB) != 0)
1198 if ((info_ptr->colorspace.flags & PNG_COLORSPACE_HAVE_ENDPOINTS) != 0)
1205 if ((info_ptr->colorspace.flags & PNG_COLORSPACE_HAVE_GAMMA) != 0)
1220 info_ptr->colorspace = png_ptr->colorspace;
1673 png_colorspacerp colorspace, const png_xy *xy, const png_XYZ *XYZ,
1676 if ((colorspace->flags & PNG_COLORSPACE_INVALID) != 0)
1684 (colorspace->flags & PNG_COLORSPACE_HAVE_ENDPOINTS) != 0)
1689 if (png_colorspace_endpoints_match(xy, &colorspace->end_points_xy,
1692 colorspace->flags |= PNG_COLORSPACE_INVALID;
1702 colorspace->end_points_xy = *xy;
1703 colorspace->end_points_XYZ = *XYZ;
1704 colorspace->flags |= PNG_COLORSPACE_HAVE_ENDPOINTS;
1710 colorspace->flags |= PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB;
1713 colorspace->flags &= PNG_COLORSPACE_CANCEL(
1721 png_colorspacerp colorspace, const png_xy *xy, int preferred)
1734 return png_colorspace_set_xy_and_XYZ(png_ptr, colorspace, xy, &XYZ,
1741 colorspace->flags |= PNG_COLORSPACE_INVALID;
1749 colorspace->flags |= PNG_COLORSPACE_INVALID;
1758 png_colorspacerp colorspace, const png_XYZ *XYZ_in, int preferred)
1766 return png_colorspace_set_xy_and_XYZ(png_ptr, colorspace, &xy, &XYZ,
1771 colorspace->flags |= PNG_COLORSPACE_INVALID;
1776 colorspace->flags |= PNG_COLORSPACE_INVALID;
1823 png_icc_profile_error(png_const_structrp png_ptr, png_colorspacerp colorspace,
1829 if (colorspace != NULL)
1830 colorspace->flags |= PNG_COLORSPACE_INVALID;
1864 (colorspace != NULL) ? PNG_CHUNK_ERROR : PNG_CHUNK_WRITE_ERROR);
1872 png_colorspace_set_sRGB(png_const_structrp png_ptr, png_colorspacerp colorspace,
1896 if ((colorspace->flags & PNG_COLORSPACE_INVALID) != 0)
1909 return png_icc_profile_error(png_ptr, colorspace, "sRGB",
1912 if ((colorspace->flags & PNG_COLORSPACE_HAVE_INTENT) != 0 &&
1913 colorspace->rendering_intent != intent)
1914 return png_icc_profile_error(png_ptr, colorspace, "sRGB",
1917 if ((colorspace->flags & PNG_COLORSPACE_FROM_sRGB) != 0)
1926 if ((colorspace->flags & PNG_COLORSPACE_HAVE_ENDPOINTS) != 0 &&
1927 !png_colorspace_endpoints_match(&sRGB_xy, &colorspace->end_points_xy,
1935 (void)png_colorspace_check_gamma(png_ptr, colorspace, PNG_GAMMA_sRGB_INVERSE,
1939 colorspace->rendering_intent = (png_uint_16)intent;
1940 colorspace->flags |= PNG_COLORSPACE_HAVE_INTENT;
1943 colorspace->end_points_xy = sRGB_xy;
1944 colorspace->end_points_XYZ = sRGB_XYZ;
1945 colorspace->flags |=
1949 colorspace->gamma = PNG_GAMMA_sRGB_INVERSE;
1950 colorspace->flags |= PNG_COLORSPACE_HAVE_GAMMA;
1953 colorspace->flags |=
1970 icc_check_length(png_const_structrp png_ptr, png_colorspacerp colorspace,
1974 return png_icc_profile_error(png_ptr, colorspace, name, profile_length,
1981 png_icc_check_length(png_const_structrp png_ptr, png_colorspacerp colorspace,
1984 if (!icc_check_length(png_ptr, colorspace, name, profile_length))
1996 return png_icc_profile_error(png_ptr, colorspace, name, profile_length,
2000 return png_icc_profile_error(png_ptr, colorspace, name, profile_length,
2005 return png_icc_profile_error(png_ptr, colorspace, name, profile_length,
2014 png_icc_check_header(png_const_structrp png_ptr, png_colorspacerp colorspace,
2027 return png_icc_profile_error(png_ptr, colorspace, name, temp,
2032 return png_icc_profile_error(png_ptr, colorspace, name, profile_length,
2038 return png_icc_profile_error(png_ptr, colorspace, name, temp,
2046 return png_icc_profile_error(png_ptr, colorspace, name, temp,
2070 return png_icc_profile_error(png_ptr, colorspace, name, temp,
2109 return png_icc_profile_error(png_ptr, colorspace, name, temp,
2115 return png_icc_profile_error(png_ptr, colorspace, name, temp,
2120 return png_icc_profile_error(png_ptr, colorspace, name, temp,
2145 return png_icc_profile_error(png_ptr, colorspace, name, temp,
2155 return png_icc_profile_error(png_ptr, colorspace, name, temp,
2189 return png_icc_profile_error(png_ptr, colorspace, name, temp,
2197 png_icc_check_tag_table(png_const_structrp png_ptr, png_colorspacerp colorspace,
2225 return png_icc_profile_error(png_ptr, colorspace, name, tag_id,
2429 png_colorspacerp colorspace, png_const_bytep profile, uLong adler)
2435 (void)png_colorspace_set_sRGB(png_ptr, colorspace,
2442 png_colorspace_set_ICC(png_const_structrp png_ptr, png_colorspacerp colorspace,
2446 if ((colorspace->flags & PNG_COLORSPACE_INVALID) != 0)
2449 if (icc_check_length(png_ptr, colorspace, name, profile_length) != 0 &&
2450 png_icc_check_header(png_ptr, colorspace, name, profile_length, profile,
2452 png_icc_check_tag_table(png_ptr, colorspace, name, profile_length,
2457 png_icc_set_sRGB(png_ptr, colorspace, profile, 0);
2473 (png_ptr->colorspace.flags & PNG_COLORSPACE_HAVE_ENDPOINTS) != 0)
2478 png_fixed_point r = png_ptr->colorspace.end_points_XYZ.red_Y;
2479 png_fixed_point g = png_ptr->colorspace.end_points_XYZ.green_Y;
2480 png_fixed_point b = png_ptr->colorspace.end_points_XYZ.blue_Y;
4216 png_reciprocal2(png_ptr->colorspace.gamma,
4225 png_reciprocal(png_ptr->colorspace.gamma));
4230 png_ptr->colorspace.gamma/* Probably doing rgb_to_gray */);
4299 png_ptr->screen_gamma > 0 ? png_product2(png_ptr->colorspace.gamma,
4304 png_ptr->screen_gamma > 0 ? png_reciprocal2(png_ptr->colorspace.gamma,
4313 png_reciprocal(png_ptr->colorspace.gamma));
4321 png_ptr->colorspace.gamma/* Probably doing rgb_to_gray */);