Lines Matching refs:bit_depth
393 int bit_depth, int color_type, int compression_type, int filter_type,
409 switch (bit_depth)
421 if (bit_depth != 8 && bit_depth != 16)
426 switch (bit_depth)
436 if (bit_depth != 8 && bit_depth != 16)
441 if (bit_depth != 8 && bit_depth != 16)
490 png_ptr->bit_depth = (png_byte)bit_depth;
500 png_ptr->pixel_depth = (png_byte)(bit_depth * png_ptr->channels);
504 png_ptr->usr_bit_depth = png_ptr->bit_depth;
510 buf[8] = (png_byte)bit_depth;
526 png_ptr->bit_depth < 8)
666 png_ptr->channels * png_ptr->bit_depth + 15) >> 3);
1100 if (tran->gray >= (1 << png_ptr->bit_depth))
1103 "Ignoring attempt to write tRNS chunk out-of-range for bit_depth");
1115 if (png_ptr->bit_depth == 8 && (buf[0] | buf[2] | buf[4]))
1118 "Ignoring attempt to write 16-bit tRNS chunk when bit_depth is 8");
1162 if (png_ptr->bit_depth == 8 && (buf[0] | buf[2] | buf[4]))
1165 "Ignoring attempt to write 16-bit bKGD chunk when bit_depth is 8");
1172 if (back->gray >= (1 << png_ptr->bit_depth))
1175 "Ignoring attempt to write bKGD chunk out-of-range for bit_depth");