Searched refs:channels (Results 1 – 1 of 1) sorted by relevance
50 png_uint_32* width, png_uint_32* height, png_byte* channels) { in open_png() argument100 *channels = png_get_channels(*png_ptr, *info_ptr); 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()113 *channels = 3; in open_png()116 bit_depth, *channels, color_type); in open_png()166 int channels, int width) { in transform_rgb_to_draw() argument171 switch (channels) { in transform_rgb_to_draw()206 png_byte channels; in res_create_display_surface() local[all …]