Lines Matching refs:bit_depth
184 volatile int bit_depth = 0; in pnm2png() local
214 bit_depth = 1; in pnm2png()
237 bit_depth = 1; in pnm2png()
239 bit_depth = 2; in pnm2png()
241 bit_depth = 4; in pnm2png()
243 bit_depth = 8; in pnm2png()
245 bit_depth = 16; in pnm2png()
263 bit_depth = 1; in pnm2png()
265 bit_depth = 2; in pnm2png()
267 bit_depth = 4; in pnm2png()
269 bit_depth = 8; in pnm2png()
271 bit_depth = 16; in pnm2png()
322 if (alpha_depth != bit_depth) in pnm2png()
351 row_bytes = (width * channels * bit_depth + 7) / 8; in pnm2png()
357 row_bytes = width * channels * ((bit_depth <= 8) ? 1 : 2); in pnm2png()
396 *pix_ptr++ = get_data (pnm_file, bit_depth); in pnm2png()
400 if (bit_depth <= 8) in pnm2png()
402 *pix_ptr++ = get_value (pnm_file, bit_depth); in pnm2png()
406 tmp16 = get_value (pnm_file, bit_depth); in pnm2png()
425 *pix_ptr++ = get_value (alpha_file, bit_depth); in pnm2png()
429 tmp16 = get_value (alpha_file, bit_depth); in pnm2png()
474 png_set_IHDR (png_ptr, info_ptr, width, height, bit_depth, color_type, in pnm2png()