Home
last modified time | relevance | path

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

/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.c4243 png_byte shift, sig_bit;
4247 sig_bit = png_ptr->sig_bit.red;
4249 if (png_ptr->sig_bit.green > sig_bit)
4250 sig_bit = png_ptr->sig_bit.green;
4252 if (png_ptr->sig_bit.blue > sig_bit)
4253 sig_bit = png_ptr->sig_bit.blue;
4256 sig_bit = png_ptr->sig_bit.gray;
4276 if (sig_bit > 0 && sig_bit < 16U)
4278 shift = (png_byte)((16U - sig_bit) & 0xff);
Dpnginfo.h139 png_color_8 sig_bit; /* significant bits in color channels */ member
Dpngget.c1031 png_color_8p *sig_bit) in png_get_sBIT() argument
1036 (info_ptr->valid & PNG_INFO_sBIT) != 0 && sig_bit != NULL) in png_get_sBIT()
1038 *sig_bit = &(info_ptr->sig_bit); in png_get_sBIT()
Dpngrutil.c1219 png_ptr->sig_bit.red = buf[0]; in png_handle_sBIT()
1220 png_ptr->sig_bit.green = buf[1]; in png_handle_sBIT()
1221 png_ptr->sig_bit.blue = buf[2]; in png_handle_sBIT()
1222 png_ptr->sig_bit.alpha = buf[3]; in png_handle_sBIT()
1227 png_ptr->sig_bit.gray = buf[0]; in png_handle_sBIT()
1228 png_ptr->sig_bit.red = buf[0]; in png_handle_sBIT()
1229 png_ptr->sig_bit.green = buf[0]; in png_handle_sBIT()
1230 png_ptr->sig_bit.blue = buf[0]; in png_handle_sBIT()
1231 png_ptr->sig_bit.alpha = buf[1]; in png_handle_sBIT()
1234 png_set_sBIT(png_ptr, info_ptr, &(png_ptr->sig_bit)); in png_handle_sBIT()
Dpngset.c639 png_const_color_8p sig_bit) in png_set_sBIT() argument
643 if (png_ptr == NULL || info_ptr == NULL || sig_bit == NULL) in png_set_sBIT()
646 info_ptr->sig_bit = *sig_bit; in png_set_sBIT()
Dpngstruct.h306 png_color_8 sig_bit; /* significant bits in each available channel */ member
Dpngtest.c1265 png_color_8p sig_bit; in test_one_file() local
1267 if (png_get_sBIT(read_ptr, read_info_ptr, &sig_bit) != 0) in test_one_file()
1268 png_set_sBIT(write_ptr, write_info_ptr, sig_bit); in test_one_file()
Dpng.h2100 png_inforp info_ptr, png_color_8p *sig_bit));
2105 png_inforp info_ptr, png_const_color_8p sig_bit));
Dpngwrite.c171 png_write_sBIT(png_ptr, &(info_ptr->sig_bit), info_ptr->color_type); in png_write_info_before_PLTE()
1374 png_set_shift(png_ptr, &info_ptr->sig_bit); in png_write_png()
Dpngrtran.c1884 int shift = 8 - png_ptr->sig_bit.red; in png_init_read_transformations()
1901 shift = 8 - png_ptr->sig_bit.green; in png_init_read_transformations()
1911 shift = 8 - png_ptr->sig_bit.blue; in png_init_read_transformations()
Dlibpng-manual.txt1445 png_get_sBIT(png_ptr, info_ptr, &sig_bit);
1447 sig_bit - the number of significant bits for
1873 png_color_8p sig_bit;
1875 if (png_get_sBIT(png_ptr, info_ptr, &sig_bit))
1876 png_set_shift(png_ptr, sig_bit);
3094 png_set_sBIT(png_ptr, info_ptr, sig_bit);
3096 sig_bit - the number of significant bits for
3490 sig_bit.red = true_bit_depth;
3491 sig_bit.green = true_bit_depth;
3492 sig_bit.blue = true_bit_depth;
[all …]
Dpngread.c1147 png_set_shift(png_ptr, &info_ptr->sig_bit); in png_read_png()
DCHANGES2296 Clarified usage of sig_bit versus sig_bit_p in example.c (Vincent Torri)
/external/pdfium/third_party/libpng16/
Dpng.c4163 png_byte shift, sig_bit;
4167 sig_bit = png_ptr->sig_bit.red;
4169 if (png_ptr->sig_bit.green > sig_bit)
4170 sig_bit = png_ptr->sig_bit.green;
4172 if (png_ptr->sig_bit.blue > sig_bit)
4173 sig_bit = png_ptr->sig_bit.blue;
4176 sig_bit = png_ptr->sig_bit.gray;
4196 if (sig_bit > 0 && sig_bit < 16U)
4198 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
Dpng.h2094 png_inforp info_ptr, png_color_8p *sig_bit));
2099 png_inforp info_ptr, png_const_color_8p sig_bit));
Dpngwrite.c171 png_write_sBIT(png_ptr, &(info_ptr->sig_bit), info_ptr->color_type); in png_write_info_before_PLTE()
1363 png_set_shift(png_ptr, &info_ptr->sig_bit); in png_write_png()
Dpngrtran.c1881 int shift = 8 - png_ptr->sig_bit.red; in png_init_read_transformations()
1898 shift = 8 - png_ptr->sig_bit.green; in png_init_read_transformations()
1908 shift = 8 - png_ptr->sig_bit.blue; in png_init_read_transformations()
Dpngread.c1137 png_set_shift(png_ptr, &info_ptr->sig_bit); in png_read_png()