Lines Matching defs:bit_depth
33 unsigned int bit_depth, unsigned int channels)
40 png_uint_32 bit_offset_hi = bit_depth * ((x >> 6) * channels);
41 png_uint_32 bit_offset_lo = bit_depth * ((x & 0x3f) * channels + c);
51 switch (bit_depth)
62 fprintf(stderr, "pngpixel: invalid bit depth %u\n", bit_depth);
74 PNG_CONST unsigned int bit_depth = png_get_bit_depth(png_ptr, info_ptr);
79 printf("GRAY %u\n", component(row, x, 0, bit_depth, 1));
88 PNG_CONST unsigned int index = component(row, x, 0, bit_depth, 1);
117 printf("RGB %u %u %u\n", component(row, x, 0, bit_depth, 3),
118 component(row, x, 1, bit_depth, 3),
119 component(row, x, 2, bit_depth, 3));
123 printf("GRAY+ALPHA %u %u\n", component(row, x, 0, bit_depth, 2),
124 component(row, x, 1, bit_depth, 2));
128 printf("RGBA %u %u %u %u\n", component(row, x, 0, bit_depth, 4),
129 component(row, x, 1, bit_depth, 4),
130 component(row, x, 2, bit_depth, 4),
131 component(row, x, 3, bit_depth, 4));
181 int bit_depth, color_type, interlace_method,
216 &bit_depth, &color_type, &interlace_method,