Lines Matching refs:info_ptr

1940 png_read_transform_info(png_structrp png_ptr, png_inforp info_ptr)
1947 if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
1954 info_ptr->color_type = PNG_COLOR_TYPE_RGB_ALPHA;
1957 info_ptr->color_type = PNG_COLOR_TYPE_RGB;
1959 info_ptr->bit_depth = 8;
1960 info_ptr->num_trans = 0;
1970 info_ptr->color_type |= PNG_COLOR_MASK_ALPHA;
1972 if (info_ptr->bit_depth < 8)
1973 info_ptr->bit_depth = 8;
1975 info_ptr->num_trans = 0;
1986 info_ptr->background = png_ptr->background;
1995 * TODO: this looks wrong; the info_ptr should end up with a gamma equal to
1997 * the info_ptr is used by the app after the rows have been read.
1999 info_ptr->colorspace.gamma = png_ptr->colorspace.gamma;
2002 if (info_ptr->bit_depth == 16)
2007 info_ptr->bit_depth = 8;
2012 info_ptr->bit_depth = 8;
2026 info_ptr->bit_depth = 8;
2031 info_ptr->bit_depth = 8;
2042 info_ptr->color_type = (png_byte)(info_ptr->color_type |
2048 info_ptr->color_type = (png_byte)(info_ptr->color_type &
2055 if (((info_ptr->color_type == PNG_COLOR_TYPE_RGB) ||
2056 (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)) &&
2057 png_ptr->palette_lookup != 0 && info_ptr->bit_depth == 8)
2059 info_ptr->color_type = PNG_COLOR_TYPE_PALETTE;
2066 info_ptr->bit_depth == 8 &&
2067 info_ptr->color_type != PNG_COLOR_TYPE_PALETTE)
2069 info_ptr->bit_depth = 16;
2075 (info_ptr->bit_depth < 8))
2076 info_ptr->bit_depth = 8;
2079 if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
2080 info_ptr->channels = 1;
2082 else if ((info_ptr->color_type & PNG_COLOR_MASK_COLOR) != 0)
2083 info_ptr->channels = 3;
2086 info_ptr->channels = 1;
2091 info_ptr->color_type = (png_byte)(info_ptr->color_type &
2093 info_ptr->num_trans = 0;
2097 if ((info_ptr->color_type & PNG_COLOR_MASK_ALPHA) != 0)
2098 info_ptr->channels++;
2103 (info_ptr->color_type == PNG_COLOR_TYPE_RGB ||
2104 info_ptr->color_type == PNG_COLOR_TYPE_GRAY))
2106 info_ptr->channels++;
2109 info_ptr->color_type |= PNG_COLOR_MASK_ALPHA;
2118 info_ptr->bit_depth = png_ptr->user_transform_depth;
2121 info_ptr->channels = png_ptr->user_transform_channels;
2125 info_ptr->pixel_depth = (png_byte)(info_ptr->channels *
2126 info_ptr->bit_depth);
2128 info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, info_ptr->width);
2136 png_ptr->info_rowbytes = info_ptr->rowbytes;