Lines Matching refs:bit_depth
372 int bit_depth, int color_type, int compression_type, int filter_type,
385 switch (bit_depth)
396 if (bit_depth != 8 && bit_depth != 16)
401 switch (bit_depth)
411 if (bit_depth != 8 && bit_depth != 16)
416 if (bit_depth != 8 && bit_depth != 16)
465 png_ptr->bit_depth = (png_byte)bit_depth;
475 png_ptr->pixel_depth = (png_byte)(bit_depth * png_ptr->channels);
479 png_ptr->usr_bit_depth = png_ptr->bit_depth;
485 buf[8] = (png_byte)bit_depth;
501 png_ptr->bit_depth < 8)
624 png_ptr->channels * png_ptr->bit_depth + 15) >> 3);
1048 if(tran->gray >= (1 << png_ptr->bit_depth))
1051 "Ignoring attempt to write tRNS chunk out-of-range for bit_depth");
1063 if(png_ptr->bit_depth == 8 && (buf[0] | buf[2] | buf[4]))
1066 "Ignoring attempt to write 16-bit tRNS chunk when bit_depth is 8");
1109 if(png_ptr->bit_depth == 8 && (buf[0] | buf[2] | buf[4]))
1112 "Ignoring attempt to write 16-bit bKGD chunk when bit_depth is 8");
1119 if(back->gray >= (1 << png_ptr->bit_depth))
1122 "Ignoring attempt to write bKGD chunk out-of-range for bit_depth");