Lines Matching refs:format

1608 /* Utility to find the base format of a PNG file from a png_struct. */
1612 png_uint_32 format = 0;
1615 format |= PNG_FORMAT_FLAG_COLOR;
1618 format |= PNG_FORMAT_FLAG_ALPHA;
1626 format |= PNG_FORMAT_FLAG_ALPHA;
1629 format |= PNG_FORMAT_FLAG_LINEAR;
1632 format |= PNG_FORMAT_FLAG_COLORMAP;
1634 return format;
1678 png_uint_32 format = png_image_format(png_ptr);
1680 image->format = format;
1688 if ((format & PNG_FORMAT_FLAG_COLOR) != 0 && ((png_ptr->colorspace.flags
1695 /* We need the maximum number of entries regardless of the format the
2022 int output_encoding = (image->format & PNG_FORMAT_FLAG_LINEAR) != 0 ?
2024 int convert_to_Y = (image->format & PNG_FORMAT_FLAG_COLOR) == 0 &&
2133 int afirst = (image->format & PNG_FORMAT_FLAG_AFIRST) != 0 &&
2134 (image->format & PNG_FORMAT_FLAG_ALPHA) != 0;
2139 int bgr = (image->format & PNG_FORMAT_FLAG_BGR) != 0 ? 2 : 0;
2148 entry += ip * PNG_IMAGE_SAMPLE_CHANNELS(image->format);
2154 switch (PNG_IMAGE_SAMPLE_CHANNELS(image->format))
2203 entry += ip * PNG_IMAGE_SAMPLE_CHANNELS(image->format);
2205 switch (PNG_IMAGE_SAMPLE_CHANNELS(image->format))
2352 png_uint_32 output_format = image->format;
2387 * output format.
2410 * output format, but the simplified API deduces the gamma from the input
2411 * format.
2433 * color-map entries from the original format.
2464 * corresponding color-map entry using the format from 'image',
3267 * that the caller verifies that the format of the libpng output
3547 (image->format & PNG_FORMAT_FLAG_COLOR) != 0 ? 3 : 1;
3673 if ((image->format & PNG_FORMAT_FLAG_LINEAR) == 0 &&
3674 (image->format & PNG_FORMAT_FLAG_ALPHA) != 0)
3835 unsigned int preserve_alpha = (image->format &
3842 (image->format & PNG_FORMAT_FLAG_AFIRST) != 0)
3935 png_uint_32 format = image->format;
3936 int linear = (format & PNG_FORMAT_FLAG_LINEAR) != 0;
3941 /* Add transforms to ensure the correct output format is produced then check
3947 /* Now check the format to see if it was modified. */
3951 png_uint_32 change = format ^ base_format;
3959 if ((format & PNG_FORMAT_FLAG_COLOR) != 0)
4142 if ((format & PNG_FORMAT_FLAG_AFIRST) != 0)
4168 /* Check only the output format; PNG is never BGR; don't do this if
4169 * the output is gray, but fix up the 'format' value in that case.
4171 if ((format & PNG_FORMAT_FLAG_COLOR) != 0)
4175 format &= ~PNG_FORMAT_FLAG_BGR;
4189 if ((format & PNG_FORMAT_FLAG_ALPHA) != 0)
4199 format &= ~PNG_FORMAT_FLAG_AFIRST;
4247 (format & PNG_FORMAT_FLAG_ALPHA) != 0)
4255 if ((format & PNG_FORMAT_FLAG_ASSOCIATED_ALPHA) != 0) {
4270 if ((format & PNG_FORMAT_FLAG_AFIRST) != 0)
4286 if (info_format != format)
4369 * original PNG format because it may not occur in the output PNG format
4372 unsigned int channels = PNG_IMAGE_PIXEL_CHANNELS(image->format);
4417 0xffffffffU/PNG_IMAGE_PIXEL_COMPONENT_SIZE(image->format)/check)
4419 if ((image->format & PNG_FORMAT_FLAG_COLORMAP) == 0 ||
4436 if ((image->format & PNG_FORMAT_FLAG_COLORMAP) != 0)