• Home
  • Raw
  • Download

Lines Matching refs:test_pixel

6615       image_pixel test_pixel;  in transform_info_imp()  local
6617 memset(&test_pixel, 0, sizeof test_pixel); in transform_info_imp()
6618 test_pixel.colour_type = dp->this.colour_type; /* input */ in transform_info_imp()
6619 test_pixel.bit_depth = dp->this.bit_depth; in transform_info_imp()
6620 if (test_pixel.colour_type == PNG_COLOR_TYPE_PALETTE) in transform_info_imp()
6621 test_pixel.sample_depth = 8; in transform_info_imp()
6623 test_pixel.sample_depth = test_pixel.bit_depth; in transform_info_imp()
6627 test_pixel.have_tRNS = dp->this.is_transparent != 0; in transform_info_imp()
6628 test_pixel.red_sBIT = test_pixel.green_sBIT = test_pixel.blue_sBIT = in transform_info_imp()
6629 test_pixel.alpha_sBIT = test_pixel.sample_depth; in transform_info_imp()
6631 dp->transform_list->mod(dp->transform_list, &test_pixel, pp, dp); in transform_info_imp()
6633 if (test_pixel.colour_type != dp->output_colour_type) in transform_info_imp()
6640 pos = safecatn(message, sizeof message, pos, test_pixel.colour_type); in transform_info_imp()
6645 if (test_pixel.bit_depth != dp->output_bit_depth) in transform_info_imp()
6652 pos = safecatn(message, sizeof message, pos, test_pixel.bit_depth); in transform_info_imp()
6659 if (test_pixel.colour_type == PNG_COLOR_TYPE_PALETTE && in transform_info_imp()
6660 test_pixel.sample_depth != 8) /* oops - internal error! */ in transform_info_imp()
6662 else if (dp->unpacked && test_pixel.bit_depth != 8) in transform_info_imp()
6664 else if (!dp->unpacked && test_pixel.colour_type != PNG_COLOR_TYPE_PALETTE in transform_info_imp()
6665 && test_pixel.bit_depth != test_pixel.sample_depth) in transform_info_imp()
6675 pos = safecatn(message, sizeof message, pos, test_pixel.sample_depth); in transform_info_imp()
6677 pos = safecatn(message, sizeof message, pos, test_pixel.bit_depth); in transform_info_imp()
6681 else if (test_pixel.bit_depth != dp->output_bit_depth) in transform_info_imp()
6692 pos = safecatn(message, sizeof message, pos, test_pixel.bit_depth); in transform_info_imp()