Lines Matching refs:sbit
1258 png_write_sBIT(png_structrp png_ptr, png_const_color_8p sbit, int color_type) in png_write_sBIT() argument
1273 if (sbit->red == 0 || sbit->red > maxbits || in png_write_sBIT()
1274 sbit->green == 0 || sbit->green > maxbits || in png_write_sBIT()
1275 sbit->blue == 0 || sbit->blue > maxbits) in png_write_sBIT()
1281 buf[0] = sbit->red; in png_write_sBIT()
1282 buf[1] = sbit->green; in png_write_sBIT()
1283 buf[2] = sbit->blue; in png_write_sBIT()
1289 if (sbit->gray == 0 || sbit->gray > png_ptr->usr_bit_depth) in png_write_sBIT()
1295 buf[0] = sbit->gray; in png_write_sBIT()
1301 if (sbit->alpha == 0 || sbit->alpha > png_ptr->usr_bit_depth) in png_write_sBIT()
1307 buf[size++] = sbit->alpha; in png_write_sBIT()