Searched refs:channels (Results 1 – 1 of 1) sorted by relevance
101 int channels = info_ptr->channels; in res_create_surface() local103 ((channels == 3 && color_type == PNG_COLOR_TYPE_RGB) || in res_create_surface()104 (channels == 4 && color_type == PNG_COLOR_TYPE_RGBA) || in res_create_surface()105 (channels == 1 && color_type == PNG_COLOR_TYPE_PALETTE)))) { in res_create_surface()121 surface->format = (channels == 3) ? in res_create_surface()134 if (channels == 3 || (channels == 1 && !alpha)) { in res_create_surface()