Lines Matching refs:pixel_depth
215 int pixel_depth = pixel_depth_of_type(color_type, bit_depth); in image_size_of_type() local
219 if (pixel_depth <= 8) /* there will be one row */ in image_size_of_type()
220 return 1 << pixel_depth; in image_size_of_type()
226 else if (pixel_depth < 8) in image_size_of_type()
229 else if (pixel_depth > 16) in image_size_of_type()
401 unsigned int pixel_depth = pixel_depth_of_type(color_type, bit_depth); in generate_row() local
407 switch (pixel_depth) in generate_row()
504 assert(size_max == 255 && rowbytes == 256*(pixel_depth>>3)); in generate_row()
505 pixel_depth >>= 3; /* now in bytes */ in generate_row()
508 const size_t pixel_index = --rowbytes/pixel_depth; in generate_row()
516 rowbytes - pixel_index * pixel_depth; in generate_row()
827 unsigned int pixel_depth = in write_png() local
830 if (pixel_depth <= 8U) in write_png()
832 assert(size == (1U<<pixel_depth)); in write_png()