Lines Matching defs:value
226 /* Check for flag values. The main reason for having the old Mac value as a
228 * value is from Apple documentation - a working Mac system is needed to
229 * discover the value!
235 * sRGB value. (This is a side effect of using this function!)
278 png_fixed_error(png_ptr, "gamma value");
300 /* Validate the value to ensure it is in a reasonable range. The value
303 * who use the inverse of the gamma value accidentally! Since some of these
313 * gamma may be changed below so get the file value first:
331 * with a default gamma value. Otherwise PNG_COMPOSE must not be set.
835 * accept '0' for the gamma value it takes, because it isn't always used.
847 /* Set the gamma values unconditionally - this overrides the value in the PNG
886 * convert tRNS to the grayscale/RGB format (16-bit RGB value), or replace
887 * the transparent color with a particular RGB value, or drop tRNS entirely.
1340 * third gamma value other than png_set_background with 'UNIQUE', and,
1345 /* We have a gamma value now. */
1456 * the file was grayscale the background value is gray.
1508 * application will supply a 16-bit value so reduce it here.
1562 * built when it would be quicker to just calculate the correct value for
1568 * gamma encoded value.
1982 /* The following is almost certainly wrong unless the background value is in
1996 * the screen_gamma value. The following probably results in weirdness if
2130 /* Adding in 1.5.4: cache the above value in png_struct so that we can later
2370 int value = (bp[0] << 8) + bp[1];
2372 value >>= shift[channel];
2375 *bp++ = (png_byte)(value >> 8);
2376 *bp++ = (png_byte)value;
2402 * 8 bits each. For a 16-bit value V the required value (from the PNG
2409 * Represent V as the two byte value vhi.vlo. Make a guess that the
2410 * result is the top byte of V, vhi, then the correction to this value
2973 * numbers, however if the four decimal place value used in ITU-R Rec 709 is
4213 int shift, value;
4260 value = (*sp >> shift) & 0x03;
4261 *dp = (png_byte)value;
4283 value = (*sp >> shift) & 0x0f;
4284 *dp = (png_byte)value;
4380 * expanded transparency value is supplied, an alpha channel is built.
4386 int shift, value;
4437 value = (*sp >> shift) & 0x03;
4438 *dp = (png_byte)(value | (value << 2) | (value << 4) |
4439 (value << 6));
4462 value = (*sp >> shift) & 0x0f;
4463 *dp = (png_byte)(value | (value << 4));