Lines Matching refs:in_ct
6757 const png_byte in_ct = dp->this.colour_type; in transform_image_validate() local
6806 if (in_ct == PNG_COLOR_TYPE_PALETTE || in_bd < 16) in transform_image_validate()
6830 transform_row(pp, std, in_ct, in_bd, y); in transform_image_validate()
6841 image_pixel_init(&in_pixel, std, in_ct, in_bd, x, dp->this.palette, in transform_image_validate()
6872 if (in_ct == PNG_COLOR_TYPE_PALETTE && in transform_image_validate()
10164 const png_byte in_ct = dp->this.colour_type; in gamma_image_validate() local
10228 init_validate_info(&vi, dp, pp, in_ct==3?8:in_bd, out_ct==3?8:out_bd); in gamma_image_validate()
10231 || in_bd != out_bd || in_ct != out_ct || vi.do_background; in gamma_image_validate()
10241 if (in_ct == 3 && out_ct == 3) in gamma_image_validate()
10252 transform_row(pp, std, in_ct, in_bd, y); in gamma_image_validate()
10264 in_ct == 3 ? sample(std, 3, in_bd, x, 0, 0, 0) : 256; in gamma_image_validate()
10271 if ((in_ct & PNG_COLOR_MASK_ALPHA) != 0 || in gamma_image_validate()
10272 (in_ct == 3 && in_is_transparent)) in gamma_image_validate()
10274 const unsigned int input_alpha = in_ct == 3 ? in gamma_image_validate()
10276 sample(std, in_ct, in_bd, x, samples_per_pixel, 0, 0); in gamma_image_validate()
10310 switch (in_ct) in gamma_image_validate()
10313 if (sample(std, in_ct, in_bd, x, 0, 0, 0) == in gamma_image_validate()
10319 if (sample(std, in_ct, in_bd, x, 0, 0, 0) == in gamma_image_validate()
10321 sample(std, in_ct, in_bd, x, 1, 0, 0) == in gamma_image_validate()
10323 sample(std, in_ct, in_bd, x, 2, 0, 0) == in gamma_image_validate()
10334 if ((in_ct & PNG_COLOR_MASK_COLOR) == 0) /* grayscale */ in gamma_image_validate()
10336 sample(std, in_ct, in_bd, x, 0, 0, 0), in gamma_image_validate()
10342 in_ct == 3 ? in_palette[in_index].red : in gamma_image_validate()
10343 sample(std, in_ct, in_bd, x, 0, 0, 0), in gamma_image_validate()
10349 in_ct == 3 ? in_palette[in_index].green : in gamma_image_validate()
10350 sample(std, in_ct, in_bd, x, 1, 0, 0), in gamma_image_validate()
10356 in_ct == 3 ? in_palette[in_index].blue : in gamma_image_validate()
10357 sample(std, in_ct, in_bd, x, 2, 0, 0), in gamma_image_validate()