Home
last modified time | relevance | path

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

12

/external/skia/src/images/
DSkImageDecoder_libpng.cpp486 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/
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
Dpngtest.c1240 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/
Dpng.c2781 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 */
Dpnginfo.h127 png_color_8 sig_bit; /* significant bits in color channels */ member
Dpngget.c932 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()
Dpngrutil.c899 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()
Dpngstruct.h188 png_color_8 sig_bit; /* significant bits in each available channel */ member
Dpngread.c1216 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()
Dpngset.c562 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()
Dpngwrite.c77 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()
Dpng.h2224 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/
Dpng.c3923 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 */
Dpnginfo.h140 png_color_8 sig_bit; /* significant bits in color channels */ member
Dpngget.c960 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()
Dpngrutil.c1153 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()
Dpngset.c562 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()
Dpngstruct.h302 png_color_8 sig_bit; /* significant bits in each available channel */ member
Dpngread.c1028 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()

12