Home | History | Annotate | Download | only in coders

Lines Matching defs:bits_per_pixel

110     bits_per_pixel,
233 tga_info.bits_per_pixel=(unsigned char) ReadBlobByte(image);
237 if ((((tga_info.bits_per_pixel <= 1) || (tga_info.bits_per_pixel >= 17)) &&
238 (tga_info.bits_per_pixel != 24) && (tga_info.bits_per_pixel != 32)))
246 image->alpha_trait=(alpha_bits > 0) || (tga_info.bits_per_pixel == 32) ||
250 image->depth=(size_t) ((tga_info.bits_per_pixel <= 8) ? 8 :
251 (tga_info.bits_per_pixel <= 16) ? 5 : 8);
275 image->colors=one << tga_info.bits_per_pixel;
452 switch (tga_info.bits_per_pixel)
802 tga_info.bits_per_pixel=8;
820 tga_info.bits_per_pixel=16;
826 tga_info.bits_per_pixel=24;
829 tga_info.bits_per_pixel=32;
869 (void) WriteBlobByte(image,tga_info.bits_per_pixel);