Lines Matching refs:grey
2988 unsigned char grey = r; /*((unsigned short)r + g + b) / 3*/; in rgba8ToPixel() local
2989 if(mode->bitdepth == 8) out[i] = grey; in rgba8ToPixel()
2990 else if(mode->bitdepth == 16) out[i * 2 + 0] = out[i * 2 + 1] = grey; in rgba8ToPixel()
2994 grey = (grey >> (8 - mode->bitdepth)) & ((1 << mode->bitdepth) - 1); in rgba8ToPixel()
2995 addColorBits(out, i, mode->bitdepth, grey); in rgba8ToPixel()
3022 unsigned char grey = r; /*((unsigned short)r + g + b) / 3*/; in rgba8ToPixel() local
3025 out[i * 2 + 0] = grey; in rgba8ToPixel()
3030 out[i * 4 + 0] = out[i * 4 + 1] = grey; in rgba8ToPixel()
3063 unsigned short grey = r; /*((unsigned)r + g + b) / 3*/; in rgba16ToPixel() local
3064 out[i * 2 + 0] = (grey >> 8) & 255; in rgba16ToPixel()
3065 out[i * 2 + 1] = grey & 255; in rgba16ToPixel()
3078 unsigned short grey = r; /*((unsigned)r + g + b) / 3*/; in rgba16ToPixel() local
3079 out[i * 4 + 0] = (grey >> 8) & 255; in rgba16ToPixel()
3080 out[i * 4 + 1] = grey & 255; in rgba16ToPixel()
3817 unsigned grey = profile.key_r; in lodepng_auto_choose_color() local
3820 if(profile.key) setColorKeyFrom16bit(mode_out, grey, grey, grey, mode_out->bitdepth); in lodepng_auto_choose_color()