Lines Matching refs:bit_depth
246 png_uint_32 width, png_uint_32 height, int bit_depth,
275 if (bit_depth != 1 && bit_depth != 2 && bit_depth != 4 &&
276 bit_depth != 8 && bit_depth != 16)
283 if (((color_type == PNG_COLOR_TYPE_PALETTE) && bit_depth > 8) ||
286 color_type == PNG_COLOR_TYPE_RGB_ALPHA) && bit_depth < 8))
325 info_ptr->bit_depth = (png_byte)bit_depth;
338 info_ptr->pixel_depth = (png_byte)(info_ptr->channels * info_ptr->bit_depth);