Home
last modified time | relevance | path

Searched refs:sig_bit (Results 1 – 25 of 48) sorted by relevance

12

/external/syslinux/com32/lib/libpng/
Dexample.c655 png_color_8 sig_bit;
657 sig_bit.gray = true_bit_depth;
659 sig_bit.red = true_red_bit_depth;
660 sig_bit.green = true_green_bit_depth;
661 sig_bit.blue = true_blue_bit_depth;
663 sig_bit.alpha = true_alpha_bit_depth;
664 png_set_sBIT(png_ptr, info_ptr, &sig_bit);
726 png_set_shift(png_ptr, &sig_bit);
Dpngrtran.c1159 int sr = 8 - png_ptr->sig_bit.red; in png_init_read_transformations()
1160 int sg = 8 - png_ptr->sig_bit.green; in png_init_read_transformations()
1161 int sb = 8 - png_ptr->sig_bit.blue; in png_init_read_transformations()
4236 int sig_bit; in png_build_gamma_table() local
4241 sig_bit = (int)png_ptr->sig_bit.red; in png_build_gamma_table()
4243 if ((int)png_ptr->sig_bit.green > sig_bit) in png_build_gamma_table()
4244 sig_bit = png_ptr->sig_bit.green; in png_build_gamma_table()
4246 if ((int)png_ptr->sig_bit.blue > sig_bit) in png_build_gamma_table()
4247 sig_bit = png_ptr->sig_bit.blue; in png_build_gamma_table()
4251 sig_bit = (int)png_ptr->sig_bit.gray; in png_build_gamma_table()
[all …]
Dpngget.c748 png_get_sBIT(png_structp png_ptr, png_infop info_ptr, png_color_8p *sig_bit) in png_get_sBIT() argument
753 && sig_bit != NULL) in png_get_sBIT()
755 *sig_bit = &(info_ptr->sig_bit); in png_get_sBIT()
Dpngrutil.c800 png_ptr->sig_bit.red = buf[0]; in png_handle_sBIT()
801 png_ptr->sig_bit.green = buf[1]; in png_handle_sBIT()
802 png_ptr->sig_bit.blue = buf[2]; in png_handle_sBIT()
803 png_ptr->sig_bit.alpha = buf[3]; in png_handle_sBIT()
807 png_ptr->sig_bit.gray = buf[0]; in png_handle_sBIT()
808 png_ptr->sig_bit.red = buf[0]; in png_handle_sBIT()
809 png_ptr->sig_bit.green = buf[0]; in png_handle_sBIT()
810 png_ptr->sig_bit.blue = buf[0]; in png_handle_sBIT()
811 png_ptr->sig_bit.alpha = buf[1]; in png_handle_sBIT()
813 png_set_sBIT(png_ptr, info_ptr, &(png_ptr->sig_bit)); in png_handle_sBIT()
Dpngset.c495 png_color_8p sig_bit) in png_set_sBIT() argument
502 png_memcpy(&(info_ptr->sig_bit), sig_bit, png_sizeof(png_color_8)); in png_set_sBIT()
/external/skia/third_party/libpng/
Dexample.c858 png_color_8 sig_bit;
861 sig_bit.gray = true_bit_depth;
864 sig_bit.red = true_red_bit_depth;
865 sig_bit.green = true_green_bit_depth;
866 sig_bit.blue = true_blue_bit_depth;
869 sig_bit.alpha = true_alpha_bit_depth;
871 png_set_sBIT(png_ptr, info_ptr, &sig_bit);
950 png_set_shift(png_ptr, &sig_bit);
Dpng.c4128 png_byte shift, sig_bit;
4132 sig_bit = png_ptr->sig_bit.red;
4134 if (png_ptr->sig_bit.green > sig_bit)
4135 sig_bit = png_ptr->sig_bit.green;
4137 if (png_ptr->sig_bit.blue > sig_bit)
4138 sig_bit = png_ptr->sig_bit.blue;
4141 sig_bit = png_ptr->sig_bit.gray;
4161 if (sig_bit > 0 && sig_bit < 16U)
4163 shift = (png_byte)((16U - sig_bit) & 0xff);
Dpnginfo.h139 png_color_8 sig_bit; /* significant bits in color channels */ member
Dpngget.c1002 png_color_8p *sig_bit) in png_get_sBIT() argument
1007 (info_ptr->valid & PNG_INFO_sBIT) != 0 && sig_bit != NULL) in png_get_sBIT()
1009 *sig_bit = &(info_ptr->sig_bit); in png_get_sBIT()
Dpngrutil.c1209 png_ptr->sig_bit.red = buf[0]; in png_handle_sBIT()
1210 png_ptr->sig_bit.green = buf[1]; in png_handle_sBIT()
1211 png_ptr->sig_bit.blue = buf[2]; in png_handle_sBIT()
1212 png_ptr->sig_bit.alpha = buf[3]; in png_handle_sBIT()
1217 png_ptr->sig_bit.gray = buf[0]; in png_handle_sBIT()
1218 png_ptr->sig_bit.red = buf[0]; in png_handle_sBIT()
1219 png_ptr->sig_bit.green = buf[0]; in png_handle_sBIT()
1220 png_ptr->sig_bit.blue = buf[0]; in png_handle_sBIT()
1221 png_ptr->sig_bit.alpha = buf[1]; in png_handle_sBIT()
1224 png_set_sBIT(png_ptr, info_ptr, &(png_ptr->sig_bit)); in png_handle_sBIT()
Dpngset.c578 png_const_color_8p sig_bit) in png_set_sBIT() argument
582 if (png_ptr == NULL || info_ptr == NULL || sig_bit == NULL) in png_set_sBIT()
585 info_ptr->sig_bit = *sig_bit; in png_set_sBIT()
Dpngstruct.h306 png_color_8 sig_bit; /* significant bits in each available channel */ member
/external/libpng/
Dexample.c858 png_color_8 sig_bit;
861 sig_bit.gray = true_bit_depth;
864 sig_bit.red = true_red_bit_depth;
865 sig_bit.green = true_green_bit_depth;
866 sig_bit.blue = true_blue_bit_depth;
869 sig_bit.alpha = true_alpha_bit_depth;
871 png_set_sBIT(png_ptr, info_ptr, &sig_bit);
950 png_set_shift(png_ptr, &sig_bit);
Dpng.c4162 png_byte shift, sig_bit;
4166 sig_bit = png_ptr->sig_bit.red;
4168 if (png_ptr->sig_bit.green > sig_bit)
4169 sig_bit = png_ptr->sig_bit.green;
4171 if (png_ptr->sig_bit.blue > sig_bit)
4172 sig_bit = png_ptr->sig_bit.blue;
4175 sig_bit = png_ptr->sig_bit.gray;
4195 if (sig_bit > 0 && sig_bit < 16U)
4197 shift = (png_byte)((16U - sig_bit) & 0xff);
Dpnginfo.h139 png_color_8 sig_bit; /* significant bits in color channels */ member
Dpngget.c1002 png_color_8p *sig_bit) in png_get_sBIT() argument
1007 (info_ptr->valid & PNG_INFO_sBIT) != 0 && sig_bit != NULL) in png_get_sBIT()
1009 *sig_bit = &(info_ptr->sig_bit); in png_get_sBIT()
Dpngrutil.c1211 png_ptr->sig_bit.red = buf[0]; in png_handle_sBIT()
1212 png_ptr->sig_bit.green = buf[1]; in png_handle_sBIT()
1213 png_ptr->sig_bit.blue = buf[2]; in png_handle_sBIT()
1214 png_ptr->sig_bit.alpha = buf[3]; in png_handle_sBIT()
1219 png_ptr->sig_bit.gray = buf[0]; in png_handle_sBIT()
1220 png_ptr->sig_bit.red = buf[0]; in png_handle_sBIT()
1221 png_ptr->sig_bit.green = buf[0]; in png_handle_sBIT()
1222 png_ptr->sig_bit.blue = buf[0]; in png_handle_sBIT()
1223 png_ptr->sig_bit.alpha = buf[1]; in png_handle_sBIT()
1226 png_set_sBIT(png_ptr, info_ptr, &(png_ptr->sig_bit)); in png_handle_sBIT()
Dpngset.c578 png_const_color_8p sig_bit) in png_set_sBIT() argument
582 if (png_ptr == NULL || info_ptr == NULL || sig_bit == NULL) in png_set_sBIT()
585 info_ptr->sig_bit = *sig_bit; in png_set_sBIT()
Dpngstruct.h306 png_color_8 sig_bit; /* significant bits in each available channel */ member
/external/pdfium/third_party/libpng16/
Dpng.c4129 png_byte shift, sig_bit;
4133 sig_bit = png_ptr->sig_bit.red;
4135 if (png_ptr->sig_bit.green > sig_bit)
4136 sig_bit = png_ptr->sig_bit.green;
4138 if (png_ptr->sig_bit.blue > sig_bit)
4139 sig_bit = png_ptr->sig_bit.blue;
4142 sig_bit = png_ptr->sig_bit.gray;
4162 if (sig_bit > 0 && sig_bit < 16U)
4164 shift = (png_byte)((16U - sig_bit) & 0xff);
Dpnginfo.h139 png_color_8 sig_bit; /* significant bits in color channels */ member
Dpngget.c1002 png_color_8p *sig_bit) in png_get_sBIT() argument
1007 (info_ptr->valid & PNG_INFO_sBIT) != 0 && sig_bit != NULL) in png_get_sBIT()
1009 *sig_bit = &(info_ptr->sig_bit); in png_get_sBIT()
Dpngrutil.c1209 png_ptr->sig_bit.red = buf[0]; in png_handle_sBIT()
1210 png_ptr->sig_bit.green = buf[1]; in png_handle_sBIT()
1211 png_ptr->sig_bit.blue = buf[2]; in png_handle_sBIT()
1212 png_ptr->sig_bit.alpha = buf[3]; in png_handle_sBIT()
1217 png_ptr->sig_bit.gray = buf[0]; in png_handle_sBIT()
1218 png_ptr->sig_bit.red = buf[0]; in png_handle_sBIT()
1219 png_ptr->sig_bit.green = buf[0]; in png_handle_sBIT()
1220 png_ptr->sig_bit.blue = buf[0]; in png_handle_sBIT()
1221 png_ptr->sig_bit.alpha = buf[1]; in png_handle_sBIT()
1224 png_set_sBIT(png_ptr, info_ptr, &(png_ptr->sig_bit)); in png_handle_sBIT()
Dpngset.c590 png_const_color_8p sig_bit) in png_set_sBIT() argument
594 if (png_ptr == NULL || info_ptr == NULL || sig_bit == NULL) in png_set_sBIT()
597 info_ptr->sig_bit = *sig_bit; in png_set_sBIT()
Dpngstruct.h306 png_color_8 sig_bit; /* significant bits in each available channel */ member

12