Lines Matching refs:LCT_GREY
2640 … case LCT_GREY: if(!(bd == 1 || bd == 2 || bd == 4 || bd == 8 || bd == 16)) return 37; break; in checkColorValidity()
2653 case LCT_GREY: return 1; in getNumColorChannels()
2770 return info->colortype == LCT_GREY || info->colortype == LCT_GREY_ALPHA; in lodepng_is_greyscale_type()
3173 if(mode->colortype == LCT_GREY) { in rgba8ToPixel()
3227 if(mode->colortype == LCT_GREY) { in rgba16ToPixel()
3261 if(mode->colortype == LCT_GREY) { in getPixelColorRGBA8()
3336 if(mode->colortype == LCT_GREY) { in getPixelColorsRGBA8()
3432 if(mode->colortype == LCT_GREY) { in getPixelColorsRGB8()
3503 if(mode->colortype == LCT_GREY) { in getPixelColorRGBA16()
3616 if(mode_in->colortype == LCT_GREY || mode_in->colortype == LCT_GREY_ALPHA) { in lodepng_convert_rgb()
3632 if(mode_out->colortype == LCT_GREY || mode_out->colortype == LCT_GREY_ALPHA) { in lodepng_convert_rgb()
3957 : (gray_ok ? LCT_GREY : LCT_RGB); in auto_choose_color()
4379 } else if(color->colortype == LCT_GREY) { in readChunk_tRNS()
4412 } else if(info->color.colortype == LCT_GREY || info->color.colortype == LCT_GREY_ALPHA) { in readChunk_bKGD()
5153 } else if(info->colortype == LCT_GREY) { in addChunk_tRNS()
5282 if(info->color.colortype == LCT_GREY || info->color.colortype == LCT_GREY_ALPHA) { in addChunk_bKGD()
5899 unsigned gray_png = info.color.colortype == LCT_GREY || info.color.colortype == LCT_GREY_ALPHA; in lodepng_encode()