/external/skia/src/images/ |
D | SkImageDecoder_libpng.cpp | 486 png_color_8p sig_bit; in getBitmapColorType() local 487 if (this->getDitherImage() && png_get_sBIT(png_ptr, info_ptr, &sig_bit)) { in getBitmapColorType() 489 SkDebugf("----- sBIT %d %d %d %d\n", sig_bit->red, sig_bit->green, in getBitmapColorType() 490 sig_bit->blue, sig_bit->alpha); in getBitmapColorType() 493 if (pos_le(sig_bit->red, SK_R16_BITS) && in getBitmapColorType() 494 pos_le(sig_bit->green, SK_G16_BITS) && in getBitmapColorType() 495 pos_le(sig_bit->blue, SK_B16_BITS)) { in getBitmapColorType() 823 png_color_8& sig_bit); 852 png_color_8 sig_bit; in onEncode() local 859 sig_bit.red = 8; in onEncode() [all …]
|
/external/libpng/ |
D | example.c | 858 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);
|
D | png.c | 4128 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);
|
D | pnginfo.h | 139 png_color_8 sig_bit; /* significant bits in color channels */ member
|
D | pngget.c | 1002 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()
|
D | pngrutil.c | 1209 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()
|
D | pngset.c | 578 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()
|
D | pngstruct.h | 306 png_color_8 sig_bit; /* significant bits in each available channel */ member
|
D | pngtest.c | 1240 png_color_8p sig_bit; in test_one_file() local 1242 if (png_get_sBIT(read_ptr, read_info_ptr, &sig_bit) != 0) in test_one_file() 1243 png_set_sBIT(write_ptr, write_info_ptr, sig_bit); in test_one_file()
|
/external/opencv3/3rdparty/libpng/ |
D | png.c | 2781 png_byte shift, sig_bit; 2785 sig_bit = png_ptr->sig_bit.red; 2787 if (png_ptr->sig_bit.green > sig_bit) 2788 sig_bit = png_ptr->sig_bit.green; 2790 if (png_ptr->sig_bit.blue > sig_bit) 2791 sig_bit = png_ptr->sig_bit.blue; 2794 sig_bit = png_ptr->sig_bit.gray; 2814 if (sig_bit > 0 && sig_bit < 16U) 2815 shift = (png_byte)(16U - sig_bit); /* shift == insignificant bits */
|
D | pnginfo.h | 127 png_color_8 sig_bit; /* significant bits in color channels */ member
|
D | pngget.c | 932 png_color_8p *sig_bit) in png_get_sBIT() argument 937 && sig_bit != NULL) in png_get_sBIT() 939 *sig_bit = &(info_ptr->sig_bit); in png_get_sBIT()
|
D | pngrutil.c | 899 png_ptr->sig_bit.red = buf[0]; in png_handle_sBIT() 900 png_ptr->sig_bit.green = buf[1]; in png_handle_sBIT() 901 png_ptr->sig_bit.blue = buf[2]; in png_handle_sBIT() 902 png_ptr->sig_bit.alpha = buf[3]; in png_handle_sBIT() 907 png_ptr->sig_bit.gray = buf[0]; in png_handle_sBIT() 908 png_ptr->sig_bit.red = buf[0]; in png_handle_sBIT() 909 png_ptr->sig_bit.green = buf[0]; in png_handle_sBIT() 910 png_ptr->sig_bit.blue = buf[0]; in png_handle_sBIT() 911 png_ptr->sig_bit.alpha = buf[1]; in png_handle_sBIT() 914 png_set_sBIT(png_ptr, info_ptr, &(png_ptr->sig_bit)); in png_handle_sBIT()
|
D | pngstruct.h | 188 png_color_8 sig_bit; /* significant bits in each available channel */ member
|
D | pngread.c | 1216 png_color_8p sig_bit; in png_read_png() local 1218 png_get_sBIT(png_ptr, info_ptr, &sig_bit); in png_read_png() 1219 png_set_shift(png_ptr, sig_bit); in png_read_png()
|
D | pngset.c | 562 png_const_color_8p sig_bit) in png_set_sBIT() argument 569 png_memcpy(&(info_ptr->sig_bit), sig_bit, png_sizeof(png_color_8)); in png_set_sBIT()
|
D | pngwrite.c | 77 png_write_sBIT(png_ptr, &(info_ptr->sig_bit), info_ptr->color_type); in png_write_info_before_PLTE() 1607 png_set_shift(png_ptr, &info_ptr->sig_bit); in png_write_png()
|
D | png.h | 2224 png_color_8p *sig_bit)); 2229 (png_structp png_ptr, png_infop info_ptr, png_const_color_8p sig_bit));
|
/external/pdfium/third_party/lpng_v163/ |
D | png.c | 3923 png_byte shift, sig_bit; 3927 sig_bit = png_ptr->sig_bit.red; 3929 if (png_ptr->sig_bit.green > sig_bit) 3930 sig_bit = png_ptr->sig_bit.green; 3932 if (png_ptr->sig_bit.blue > sig_bit) 3933 sig_bit = png_ptr->sig_bit.blue; 3936 sig_bit = png_ptr->sig_bit.gray; 3956 if (sig_bit > 0 && sig_bit < 16U) 3957 shift = (png_byte)(16U - sig_bit); /* shift == insignificant bits */
|
D | pnginfo.h | 140 png_color_8 sig_bit; /* significant bits in color channels */ member
|
D | pngget.c | 960 png_color_8p *sig_bit) in png_get_sBIT() argument 965 && sig_bit != NULL) in png_get_sBIT() 967 *sig_bit = &(info_ptr->sig_bit); in png_get_sBIT()
|
D | pngrutil.c | 1153 png_ptr->sig_bit.red = buf[0]; in png_handle_sBIT() 1154 png_ptr->sig_bit.green = buf[1]; in png_handle_sBIT() 1155 png_ptr->sig_bit.blue = buf[2]; in png_handle_sBIT() 1156 png_ptr->sig_bit.alpha = buf[3]; in png_handle_sBIT() 1161 png_ptr->sig_bit.gray = buf[0]; in png_handle_sBIT() 1162 png_ptr->sig_bit.red = buf[0]; in png_handle_sBIT() 1163 png_ptr->sig_bit.green = buf[0]; in png_handle_sBIT() 1164 png_ptr->sig_bit.blue = buf[0]; in png_handle_sBIT() 1165 png_ptr->sig_bit.alpha = buf[1]; in png_handle_sBIT() 1168 png_set_sBIT(png_ptr, info_ptr, &(png_ptr->sig_bit)); in png_handle_sBIT()
|
D | pngset.c | 562 png_const_color_8p sig_bit) in png_set_sBIT() argument 566 if (png_ptr == NULL || info_ptr == NULL || sig_bit == NULL) in png_set_sBIT() 569 info_ptr->sig_bit = *sig_bit; in png_set_sBIT()
|
D | pngstruct.h | 302 png_color_8 sig_bit; /* significant bits in each available channel */ member
|
D | pngread.c | 1028 png_color_8p sig_bit; in png_read_png() local 1030 png_get_sBIT(png_ptr, info_ptr, &sig_bit); in png_read_png() 1031 png_set_shift(png_ptr, sig_bit); in png_read_png()
|