• Home
  • Raw
  • Download

Lines Matching refs:sample_depth

6017    png_byte     sample_depth;            /* Scale of samples */  member
6079 const png_byte sample_depth = (png_byte)(colour_type == in image_pixel_init() local
6081 const unsigned int max = (1U<<sample_depth)-1; in image_pixel_init()
6094 sample_depth; in image_pixel_init()
6167 this->sample_depth = sample_depth; in image_pixel_init()
6228 this->bit_depth = this->sample_depth = 8; in image_pixel_add_alpha()
6238 this->bit_depth = this->sample_depth = 8; in image_pixel_add_alpha()
6433 const unsigned int scale = (1U<<that->sample_depth)-1; in image_transform_mod_end()
6453 if (sig_bits && that->red_sBIT < that->sample_depth) in image_transform_mod_end()
6454 that->red >>= that->sample_depth - that->red_sBIT; in image_transform_mod_end()
6471 if (sig_bits && that->green_sBIT < that->sample_depth) in image_transform_mod_end()
6472 that->green >>= that->sample_depth - that->green_sBIT; in image_transform_mod_end()
6475 if (sig_bits && that->blue_sBIT < that->sample_depth) in image_transform_mod_end()
6476 that->blue >>= that->sample_depth - that->blue_sBIT; in image_transform_mod_end()
6501 if (sig_bits && that->alpha_sBIT < that->sample_depth) in image_transform_mod_end()
6502 that->alpha >>= that->sample_depth - that->alpha_sBIT; in image_transform_mod_end()
6621 test_pixel.sample_depth = 8; in transform_info_imp()
6623 test_pixel.sample_depth = test_pixel.bit_depth; in transform_info_imp()
6629 test_pixel.alpha_sBIT = test_pixel.sample_depth; in transform_info_imp()
6660 test_pixel.sample_depth != 8) /* oops - internal error! */ 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()
6709 unsigned int out, png_byte sample_depth, double err, double limit, in transform_range_check() argument
6718 unsigned int max = (1U<<sample_depth)-1; in transform_range_check()
6763 const png_byte sample_depth = (png_byte)(out_ct == in transform_image_validate() local
6811 if (sample_depth != 16 || in_sample_depth > 8 || in transform_image_validate()
6884 out_pixel.red, sample_depth, in_pixel.rede, in transform_image_validate()
6891 in_pixel.greenf, out_pixel.green, sample_depth, in_pixel.greene, in transform_image_validate()
6898 out_pixel.blue, sample_depth, in_pixel.bluee, in transform_image_validate()
6905 in_pixel.alphaf, out_pixel.alpha, sample_depth, in_pixel.alphae, in transform_image_validate()
7139 if (that->sample_depth < 8) in image_transform_png_set_tRNS_to_alpha_mod()
7140 that->sample_depth = 8; in image_transform_png_set_tRNS_to_alpha_mod()
7202 that->sample_depth = that->bit_depth = 8; in image_transform_png_set_gray_to_rgb_mod()
7256 that->sample_depth = that->bit_depth = 8; in image_transform_png_set_expand_mod()
7309 that->sample_depth = that->bit_depth = 8; in image_transform_png_set_expand_gray_1_2_4_to_8_mod()
7372 that->sample_depth = that->bit_depth = 16; in image_transform_png_set_expand_16_mod()
7416 that->sample_depth = that->bit_depth = 8; in image_transform_png_set_scale_16_mod()
7464 that->sample_depth = that->bit_depth = 8; in image_transform_png_set_strip_16_mod()
7908 const unsigned int sample_depth = that->sample_depth; in image_transform_png_set_rgb_to_gray_mod() local
7910 sample_depth); in image_transform_png_set_rgb_to_gray_mod()
7912 (sample_depth == 16 ? in image_transform_png_set_rgb_to_gray_mod()
7916 sample_depth)); in image_transform_png_set_rgb_to_gray_mod()
7961 const double abse = .5/(sample_depth == 16 ? 65535 : 255); in image_transform_png_set_rgb_to_gray_mod()
8027 if (gamma_depth != sample_depth) in image_transform_png_set_rgb_to_gray_mod()
8038 graylo = DD(pow(graylo, power), sample_depth, 1); in image_transform_png_set_rgb_to_gray_mod()
8039 grayhi = DU(pow(grayhi, power), sample_depth, 1); in image_transform_png_set_rgb_to_gray_mod()
8137 double in_qe = (that->sample_depth > 8 ? .5/65535 : .5/255); in image_transform_png_set_rgb_to_gray_mod()
8138 double out_qe = (that->sample_depth > 8 ? .5/65535 : in image_transform_png_set_rgb_to_gray_mod()