Home | History | Annotate | Download | only in coders

Lines Matching defs:bits_per_pixel

110     bits_per_pixel,
234 tga_info.bits_per_pixel=(unsigned char) ReadBlobByte(image);
238 if ((((tga_info.bits_per_pixel <= 1) || (tga_info.bits_per_pixel >= 17)) &&
239 (tga_info.bits_per_pixel != 24) && (tga_info.bits_per_pixel != 32)))
247 image->alpha_trait=(alpha_bits > 0) || (tga_info.bits_per_pixel == 32) ||
251 image->depth=(size_t) ((tga_info.bits_per_pixel <= 8) ? 8 :
252 (tga_info.bits_per_pixel <= 16) ? 5 :
253 (tga_info.bits_per_pixel == 24) ? 8 :
254 (tga_info.bits_per_pixel == 32) ? 8 : 8);
280 image->colors=one << tga_info.bits_per_pixel;
451 switch (tga_info.bits_per_pixel)
795 tga_info.bits_per_pixel=8;
813 tga_info.bits_per_pixel=16;
819 tga_info.bits_per_pixel=24;
822 tga_info.bits_per_pixel=32;
867 (void) WriteBlobByte(image,tga_info.bits_per_pixel);