Lines Matching refs:test_pixel

6617       image_pixel test_pixel;  in transform_info_imp()  local
6619 memset(&test_pixel, 0, sizeof test_pixel); in transform_info_imp()
6620 test_pixel.colour_type = dp->this.colour_type; /* input */ in transform_info_imp()
6621 test_pixel.bit_depth = dp->this.bit_depth; in transform_info_imp()
6622 if (test_pixel.colour_type == PNG_COLOR_TYPE_PALETTE) in transform_info_imp()
6623 test_pixel.sample_depth = 8; in transform_info_imp()
6625 test_pixel.sample_depth = test_pixel.bit_depth; in transform_info_imp()
6629 test_pixel.have_tRNS = dp->this.is_transparent != 0; in transform_info_imp()
6630 test_pixel.red_sBIT = test_pixel.green_sBIT = test_pixel.blue_sBIT = in transform_info_imp()
6631 test_pixel.alpha_sBIT = test_pixel.sample_depth; in transform_info_imp()
6633 dp->transform_list->mod(dp->transform_list, &test_pixel, pp, dp); in transform_info_imp()
6635 if (test_pixel.colour_type != dp->output_colour_type) in transform_info_imp()
6642 pos = safecatn(message, sizeof message, pos, test_pixel.colour_type); in transform_info_imp()
6647 if (test_pixel.bit_depth != dp->output_bit_depth) in transform_info_imp()
6654 pos = safecatn(message, sizeof message, pos, test_pixel.bit_depth); in transform_info_imp()
6661 if (test_pixel.colour_type == PNG_COLOR_TYPE_PALETTE && in transform_info_imp()
6662 test_pixel.sample_depth != 8) /* oops - internal error! */ in transform_info_imp()
6664 else if (dp->unpacked && test_pixel.bit_depth != 8) in transform_info_imp()
6666 else if (!dp->unpacked && test_pixel.colour_type != PNG_COLOR_TYPE_PALETTE in transform_info_imp()
6667 && test_pixel.bit_depth != test_pixel.sample_depth) in transform_info_imp()
6677 pos = safecatn(message, sizeof message, pos, test_pixel.sample_depth); in transform_info_imp()
6679 pos = safecatn(message, sizeof message, pos, test_pixel.bit_depth); in transform_info_imp()
6683 else if (test_pixel.bit_depth != dp->output_bit_depth) in transform_info_imp()
6694 pos = safecatn(message, sizeof message, pos, test_pixel.bit_depth); in transform_info_imp()