Lines Matching full:bit_depth
377 int bit_depth, int color_type, int compression_type, int filter_type,
390 switch (bit_depth)
401 if (bit_depth != 8 && bit_depth != 16)
406 switch (bit_depth)
416 if (bit_depth != 8 && bit_depth != 16)
421 if (bit_depth != 8 && bit_depth != 16)
470 png_ptr->bit_depth = (png_byte)bit_depth;
480 png_ptr->pixel_depth = (png_byte)(bit_depth * png_ptr->channels);
484 png_ptr->usr_bit_depth = png_ptr->bit_depth;
490 buf[8] = (png_byte)bit_depth;
506 png_ptr->bit_depth < 8)
630 png_ptr->channels * png_ptr->bit_depth + 15) >> 3);
1080 if(tran->gray >= (1 << png_ptr->bit_depth))
1083 "Ignoring attempt to write tRNS chunk out-of-range for bit_depth");
1095 if(png_ptr->bit_depth == 8 && (buf[0] | buf[2] | buf[4]))
1098 "Ignoring attempt to write 16-bit tRNS chunk when bit_depth is 8");
1141 if(png_ptr->bit_depth == 8 && (buf[0] | buf[2] | buf[4]))
1144 "Ignoring attempt to write 16-bit bKGD chunk when bit_depth is 8");
1151 if(back->gray >= (1 << png_ptr->bit_depth))
1154 "Ignoring attempt to write bKGD chunk out-of-range for bit_depth");