Lines Matching refs:sbit
850 png_write_sBIT(png_structp png_ptr, png_color_8p sbit, int color_type)
866 if (sbit->red == 0 || sbit->red > maxbits ||
867 sbit->green == 0 || sbit->green > maxbits ||
868 sbit->blue == 0 || sbit->blue > maxbits)
873 buf[0] = sbit->red;
874 buf[1] = sbit->green;
875 buf[2] = sbit->blue;
880 if (sbit->gray == 0 || sbit->gray > png_ptr->usr_bit_depth)
885 buf[0] = sbit->gray;
891 if (sbit->alpha == 0 || sbit->alpha > png_ptr->usr_bit_depth)
896 buf[size++] = sbit->alpha;