Lines Matching refs:sbit
931 png_write_sBIT(png_structp png_ptr, png_color_8p sbit, int color_type) in png_write_sBIT() argument
948 if (sbit->red == 0 || sbit->red > maxbits || in png_write_sBIT()
949 sbit->green == 0 || sbit->green > maxbits || in png_write_sBIT()
950 sbit->blue == 0 || sbit->blue > maxbits) in png_write_sBIT()
955 buf[0] = sbit->red; in png_write_sBIT()
956 buf[1] = sbit->green; in png_write_sBIT()
957 buf[2] = sbit->blue; in png_write_sBIT()
962 if (sbit->gray == 0 || sbit->gray > png_ptr->usr_bit_depth) in png_write_sBIT()
967 buf[0] = sbit->gray; in png_write_sBIT()
973 if (sbit->alpha == 0 || sbit->alpha > png_ptr->usr_bit_depth) in png_write_sBIT()
978 buf[size++] = sbit->alpha; in png_write_sBIT()