Lines Matching refs:bit_depth
35 unsigned int bit_depth, unsigned int channels) in component() argument
42 png_uint_32 bit_offset_hi = bit_depth * ((x >> 6) * channels); in component()
43 png_uint_32 bit_offset_lo = bit_depth * ((x & 0x3f) * channels + c); in component()
53 switch (bit_depth) in component()
64 fprintf(stderr, "pngpixel: invalid bit depth %u\n", bit_depth); in component()
76 unsigned int bit_depth = png_get_bit_depth(png_ptr, info_ptr); in print_pixel() local
81 printf("GRAY %u\n", component(row, x, 0, bit_depth, 1)); in print_pixel()
90 int index = component(row, x, 0, bit_depth, 1); in print_pixel()
119 printf("RGB %u %u %u\n", component(row, x, 0, bit_depth, 3), in print_pixel()
120 component(row, x, 1, bit_depth, 3), in print_pixel()
121 component(row, x, 2, bit_depth, 3)); in print_pixel()
125 printf("GRAY+ALPHA %u %u\n", component(row, x, 0, bit_depth, 2), in print_pixel()
126 component(row, x, 1, bit_depth, 2)); in print_pixel()
130 printf("RGBA %u %u %u %u\n", component(row, x, 0, bit_depth, 4), in print_pixel()
131 component(row, x, 1, bit_depth, 4), in print_pixel()
132 component(row, x, 2, bit_depth, 4), in print_pixel()
133 component(row, x, 3, bit_depth, 4)); in print_pixel()
183 int bit_depth, color_type, interlace_method, in main() local
218 &bit_depth, &color_type, &interlace_method, in main()