Lines Matching refs:bit_depth

1204          switch (png_ptr->bit_depth)  in png_init_rgb_transformations()
1447 png_ptr->bit_depth != 16) in png_init_read_transformations()
1474 png_ptr->bit_depth == 16) in png_init_read_transformations()
1532 png_build_gamma_table(png_ptr, png_ptr->bit_depth); in png_init_read_transformations()
1899 info_ptr->bit_depth = 8; in png_read_transform_info()
1909 if (info_ptr->bit_depth < 8) in png_read_transform_info()
1910 info_ptr->bit_depth = 8; in png_read_transform_info()
1935 if (info_ptr->bit_depth == 16) in png_read_transform_info()
1940 info_ptr->bit_depth = 8; in png_read_transform_info()
1945 info_ptr->bit_depth = 8; in png_read_transform_info()
1959 info_ptr->bit_depth = 8; in png_read_transform_info()
1964 info_ptr->bit_depth = 8; in png_read_transform_info()
1990 png_ptr->palette_lookup && info_ptr->bit_depth == 8) in png_read_transform_info()
1998 if (png_ptr->transformations & PNG_EXPAND_16 && info_ptr->bit_depth == 8 && in png_read_transform_info()
2001 info_ptr->bit_depth = 16; in png_read_transform_info()
2006 if ((png_ptr->transformations & PNG_PACK) && (info_ptr->bit_depth < 8)) in png_read_transform_info()
2007 info_ptr->bit_depth = 8; in png_read_transform_info()
2048 if (info_ptr->bit_depth < png_ptr->user_transform_depth) in png_read_transform_info()
2049 info_ptr->bit_depth = png_ptr->user_transform_depth; in png_read_transform_info()
2057 info_ptr->bit_depth); in png_read_transform_info()
2358 row_info->bit_depth = png_ptr->user_transform_depth; in png_do_read_transformations()
2363 row_info->pixel_depth = (png_byte)(row_info->bit_depth * in png_do_read_transformations()
2383 if (row_info->bit_depth < 8) in png_do_unpack()
2388 switch (row_info->bit_depth) in png_do_unpack()
2463 row_info->bit_depth = 8; in png_do_unpack()
2491 int bit_depth = row_info->bit_depth; in png_do_unshift() local
2495 shift[channels++] = bit_depth - sig_bits->red; in png_do_unshift()
2496 shift[channels++] = bit_depth - sig_bits->green; in png_do_unshift()
2497 shift[channels++] = bit_depth - sig_bits->blue; in png_do_unshift()
2502 shift[channels++] = bit_depth - sig_bits->gray; in png_do_unshift()
2507 shift[channels++] = bit_depth - sig_bits->alpha; in png_do_unshift()
2518 if (shift[c] <= 0 || shift[c] >= bit_depth) in png_do_unshift()
2529 switch (bit_depth) in png_do_unshift()
2620 if (row_info->bit_depth == 16) in png_do_scale_16_to_8()
2665 row_info->bit_depth = 8; in png_do_scale_16_to_8()
2681 if (row_info->bit_depth == 16) in png_do_chop()
2693 row_info->bit_depth = 8; in png_do_chop()
2711 if (row_info->bit_depth == 8) in png_do_read_swap_alpha()
2757 if (row_info->bit_depth == 8) in png_do_read_swap_alpha()
2807 if (row_info->bit_depth == 8) in png_do_read_invert_alpha()
2859 if (row_info->bit_depth == 8) in png_do_read_invert_alpha()
2917 if (row_info->bit_depth == 8) in png_do_read_filler()
2952 else if (row_info->bit_depth == 16) in png_do_read_filler()
2994 if (row_info->bit_depth == 8) in png_do_read_filler()
3033 else if (row_info->bit_depth == 16) in png_do_read_filler()
3095 if (row_info->bit_depth >= 8 && in png_do_gray_to_rgb()
3100 if (row_info->bit_depth == 8) in png_do_gray_to_rgb()
3132 if (row_info->bit_depth == 8) in png_do_gray_to_rgb()
3167 row_info->bit_depth); in png_do_gray_to_rgb()
3244 if (row_info->bit_depth == 8) in png_do_rgb_to_gray()
3414 row_info->bit_depth); in png_do_rgb_to_gray()
3429 png_build_grayscale_palette(int bit_depth, png_colorp palette) in png_build_grayscale_palette() argument
3441 switch (bit_depth) in png_build_grayscale_palette()
3512 switch (row_info->bit_depth) in png_do_compose()
3752 if (row_info->bit_depth == 8) in png_do_compose()
3879 if (row_info->bit_depth == 8) in png_do_compose()
4004 if (row_info->bit_depth == 8) in png_do_compose()
4232 if (((row_info->bit_depth <= 8 && gamma_table != NULL) || in png_do_gamma()
4233 (row_info->bit_depth == 16 && gamma_16_table != NULL))) in png_do_gamma()
4239 if (row_info->bit_depth == 8) in png_do_gamma()
4281 if (row_info->bit_depth == 8) in png_do_gamma()
4325 if (row_info->bit_depth == 8) in png_do_gamma()
4351 if (row_info->bit_depth == 2) in png_do_gamma()
4370 if (row_info->bit_depth == 4) in png_do_gamma()
4384 else if (row_info->bit_depth == 8) in png_do_gamma()
4394 else if (row_info->bit_depth == 16) in png_do_gamma()
4429 if (row_info->bit_depth == 8) in png_do_encode_alpha()
4448 else if (row_info->bit_depth == 16) in png_do_encode_alpha()
4499 if (row_info->bit_depth < 8) in png_do_expand_palette()
4501 switch (row_info->bit_depth) in png_do_expand_palette()
4579 row_info->bit_depth = 8; in png_do_expand_palette()
4584 if (row_info->bit_depth == 8) in png_do_expand_palette()
4605 row_info->bit_depth = 8; in png_do_expand_palette()
4625 row_info->bit_depth = 8; in png_do_expand_palette()
4655 if (row_info->bit_depth < 8) in png_do_expand()
4657 switch (row_info->bit_depth) in png_do_expand()
4740 row_info->bit_depth = 8; in png_do_expand()
4747 if (row_info->bit_depth == 8) in png_do_expand()
4765 else if (row_info->bit_depth == 16) in png_do_expand()
4792 row_info->pixel_depth = (png_byte)(row_info->bit_depth << 1); in png_do_expand()
4799 if (row_info->bit_depth == 8) in png_do_expand()
4819 else if (row_info->bit_depth == 16) in png_do_expand()
4858 row_info->pixel_depth = (png_byte)(row_info->bit_depth << 2); in png_do_expand()
4872 if (row_info->bit_depth == 8 && in png_do_expand_16()
4890 row_info->bit_depth = 16; in png_do_expand_16()
4907 if (row_info->bit_depth == 8) in png_do_quantize()
4941 row_info->pixel_depth = row_info->bit_depth; in png_do_quantize()
4972 row_info->pixel_depth = row_info->bit_depth; in png_do_quantize()
5004 if (row_info->bit_depth == 8) in png_do_read_intrapixel()
5024 else if (row_info->bit_depth == 16) in png_do_read_intrapixel()