Searched refs:bit_depth (Results 1 – 1 of 1) sorted by relevance
54 int color_type, bit_depth; in open_png() local97 png_get_IHDR(*png_ptr, *info_ptr, width, height, &bit_depth, in open_png()102 if (bit_depth == 8 && *channels == 3 && color_type == PNG_COLOR_TYPE_RGB) { in open_png()104 } else if (bit_depth <= 8 && *channels == 1 && color_type == PNG_COLOR_TYPE_GRAY) { in open_png()107 } else if (bit_depth <= 8 && *channels == 1 && color_type == PNG_COLOR_TYPE_PALETTE) { in open_png()116 bit_depth, *channels, color_type); in open_png()