Lines Matching refs:channels

50                     png_uint_32* width, png_uint_32* height, png_byte* channels)  in open_png()  argument
100 *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()
169 int channels, int width) in transform_rgb_to_draw() argument
175 switch (channels) { in transform_rgb_to_draw()
211 png_byte channels; in res_create_display_surface() local
215 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_display_surface()
228 transform_rgb_to_draw(p_row, surface->data + y * surface->row_bytes, channels, width); in res_create_display_surface()
247 png_byte channels; in res_create_multi_display_surface() local
253 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_multi_display_surface()
295 transform_rgb_to_draw(p_row, out_row, channels, width); in res_create_multi_display_surface()
322 png_byte channels; in res_create_alpha_surface() local
326 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_alpha_surface()
329 if (channels != 1) { in res_create_alpha_surface()
386 png_byte channels; in res_create_localized_alpha_surface() local
399 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); in res_create_localized_alpha_surface()
402 if (channels != 1) { in res_create_localized_alpha_surface()