Lines Matching refs:bit_depth
207 int bit_depth = 0; in pnm2png() local
237 bit_depth = 1; in pnm2png()
259 bit_depth = 1; in pnm2png()
261 bit_depth = 2; in pnm2png()
263 bit_depth = 4; in pnm2png()
265 bit_depth = 8; in pnm2png()
267 bit_depth = 16; in pnm2png()
283 bit_depth = 1; in pnm2png()
285 bit_depth = 2; in pnm2png()
287 bit_depth = 4; in pnm2png()
289 bit_depth = 8; in pnm2png()
291 bit_depth = 16; in pnm2png()
338 if (alpha_depth != bit_depth) in pnm2png()
364 row_bytes = (width * channels * bit_depth + 7) / 8; in pnm2png()
368 row_bytes = width * channels * ((bit_depth <= 8) ? 1 : 2); in pnm2png()
391 *pix_ptr++ = get_data (pnm_file, bit_depth); in pnm2png()
393 if (bit_depth <= 8) in pnm2png()
394 *pix_ptr++ = get_value (pnm_file, bit_depth); in pnm2png()
397 tmp16 = get_value (pnm_file, bit_depth); in pnm2png()
411 *pix_ptr++ = get_value (alpha_file, bit_depth); in pnm2png()
414 tmp16 = get_value (alpha_file, bit_depth); in pnm2png()
455 png_set_IHDR (png_ptr, info_ptr, width, height, bit_depth, color_type, in pnm2png()