Lines Matching defs:alpha
2496 case 4: if(!( bd == 8 || bd == 16)) return 37; break; /*grey + alpha*/
2510 case 4: return 2; /*grey + alpha*/
2913 index for a color. It's like an octree, but because the alpha channel is used too, each
3475 unsigned char alpha; /*alpha channel, or alpha palette, required*/
3498 profile->alpha = 0;
3533 std::cout << "alpha: " << (int)p->alpha << std::endl;
3595 if(!profile->alpha && !profile->key)
3605 profile->alpha = 1;
3615 profile->alpha = 1;
3685 profile->alpha = 1;
3695 profile->alpha = 1;
3783 if(!profile.alpha)
3796 if(profile.alpha)
3812 int grey_ok = !profile.colored && !profile.alpha; /*grey without alpha, with potentially low bits*/
3842 if(profile.alpha)
4272 color->palette[4 * i + 3] = 255; /*alpha*/
4283 /*error: more alpha values given than there are palette entries*/
4762 from greyscale input color type, to 8-bit greyscale or greyscale with alpha"*/
4931 /*add all channels except alpha channel*/
4949 /*the tail of palette values that all have 255 as alpha, does not have to be encoded*/
4955 /*add only alpha channel*/
5625 returns 1 if the palette has a single color with alpha 0 ==> color key
5631 unsigned r = 0, g = 0, b = 0; /*the value of the color with alpha 0, so long as color keying is possible*/
5965 case 39: return "more palette alpha values given in tRNS chunk than there are colors in the palette";