Lines Matching defs:encoding
1867 /* A description of an (R,G,B) encoding of color (as defined above); this
1869 * (0,0,1) plus an encoding value that is used to encode the linear
1873 double gamma; /* Encoding (file) gamma of space */
1892 white_point(const color_encoding *encoding)
1896 white.X = encoding->red.X + encoding->green.X + encoding->blue.X;
1897 white.Y = encoding->red.Y + encoding->green.Y + encoding->blue.Y;
1898 white.Z = encoding->red.Z + encoding->green.Z + encoding->blue.Z;
1906 normalize_color_encoding(color_encoding *encoding)
1908 const double whiteY = encoding->red.Y + encoding->green.Y +
1909 encoding->blue.Y;
1913 encoding->red.X /= whiteY;
1914 encoding->red.Y /= whiteY;
1915 encoding->red.Z /= whiteY;
1916 encoding->green.X /= whiteY;
1917 encoding->green.Y /= whiteY;
1918 encoding->green.Z /= whiteY;
1919 encoding->blue.X /= whiteY;
1920 encoding->blue.Y /= whiteY;
1921 encoding->blue.Z /= whiteY;
1993 const color_encoding *current_encoding; /* If an encoding has been set */
2438 /* Iterate through the usefully testable color encodings. An encoding is one
2448 * that this function changes the colour space encoding so it must only be
2476 if (!pm->repeat && /* Else something needs the current encoding again. */
2477 pm->test_uses_encoding) /* Some transform is encoding dependent */
2487 /* Not exhaustive - choose an encoding at random; generate a number in
2526 /* The following must be called before anything else to get the encoding set up
2533 /* Set the encoding to the one specified by the current encoding counter,
2541 /* Now, if required, set the gamma and encoding fields. */
2544 /* The gammas[] array is an array of screen gammas, not encoding gammas,
2569 * assumption below that the first encoding in the list is the one for sRGB.
2958 const color_encoding *encoding;
2982 const color_encoding *encoding)
2984 CIE_color white = white_point(encoding);
2987 me->encoding = encoding;
2993 me->rx = fix(chromaticity_x(encoding->red));
2994 me->ry = fix(chromaticity_y(encoding->red));
2995 me->gx = fix(chromaticity_x(encoding->green));
2996 me->gy = fix(chromaticity_y(encoding->green));
2997 me->bx = fix(chromaticity_x(encoding->blue));
2998 me->by = fix(chromaticity_y(encoding->blue));
5993 /* Set sRGB, cHRM and gAMA transforms as required by the current encoding. */
6572 /* Make sure the encoding fields are correct and enter the required
7236 /* Since we check the encoding this flag must be set: */
7244 /* Coefficients come from the encoding, but may need to be normalized to a
7277 /* If not set then the calculations assume linear encoding (implicitly): */
7282 * by the color space encoding. If doing exhaustive checks do the override
7300 /* These values override the color encoding defaults, simply use random
7362 * here by taking the gamma encoding into account.
7406 /* We have an encoding so a cHRM chunk may have been set; if so then
7435 * color space encoding may not be normalized.
7441 * the normalized Y values of the encoding unless they were
7450 /* Generate a colour space encoding. */
9185 * output encoding.
9715 /* Finally report the output gamma encoding, if any. */
9800 * file encoding, determined by sbit and/or the file depth, secondly
9801 * the output (screen) gamma and thirdly the output file encoding.
11163 /* Fake encoding which selects just the green channel */
11349 * images can never be good enough, regardless of encoding.