Lines Matching refs:channels

48                     png_uint_32* width, png_uint_32* height, png_byte* channels) {  in open_png()  argument
98 *channels = png_get_channels(*png_ptr, *info_ptr); in open_png()
100 if (bit_depth == 8 && *channels == 3 && color_type == PNG_COLOR_TYPE_RGB) { in open_png()
102 } else if (bit_depth <= 8 && *channels == 1 && color_type == PNG_COLOR_TYPE_GRAY) { in open_png()
105 } else if (bit_depth <= 8 && *channels == 1 && color_type == PNG_COLOR_TYPE_PALETTE) { in open_png()
111 *channels = 3; in open_png()
114 bit_depth, *channels, color_type); in open_png()
164 int channels, int width) { in transform_rgb_to_draw() argument
169 switch (channels) { in transform_rgb_to_draw()
204 png_byte channels; in res_create_display_surface() local
210 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_display_surface()
226 transform_rgb_to_draw(p_row, surface->data + y * surface->row_bytes, channels, width); in res_create_display_surface()
245 png_byte channels; in res_create_multi_display_surface() local
254 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_multi_display_surface()
306 transform_rgb_to_draw(p_row, out_row, channels, width); in res_create_multi_display_surface()
332 png_byte channels; in res_create_alpha_surface() local
336 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_alpha_surface()
339 if (channels != 1) { in res_create_alpha_surface()
393 png_byte channels; in res_create_localized_alpha_surface() local
408 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_localized_alpha_surface()
411 if (channels != 1) { in res_create_localized_alpha_surface()