Searched refs:PNG_FP_1 (Results 1 - 21 of 21) sorted by relevance

/external/opencv3/3rdparty/libpng/
H A Dpng.c793 /* (x,y,z) values are first limited to 0..100000 (PNG_FP_1), the white
795 * (PNG_FP_1-y) - x must be <= to this for z to be >= 0 (and the expression
797 * <= PNG_FP_1. The previous test on PNG_MAX_UINT_31 is removed because it
809 /* And (x+y) must be <= PNG_FP_1 (so z is >= 0) */
810 if (white_x > PNG_FP_1 - white_y)
816 if (red_x > PNG_FP_1 - red_y)
822 if (green_x > PNG_FP_1 - green_y)
828 if (blue_x > PNG_FP_1 - blue_y)
859 if (!png_muldiv(&xy->redx, XYZ.redX, PNG_FP_1, d)) return 1;
860 if (!png_muldiv(&xy->redy, XYZ.redY, PNG_FP_1,
[all...]
H A Dpngwrite.c1357 ((PNG_WEIGHT_FACTOR*filter_weights[i]+PNG_FP_HALF)/PNG_FP_1);
1360 PNG_FP_1+(filter_weights[i]/2))/filter_weights[i]);
1372 if (filter_costs[i] >= PNG_FP_1)
1380 tmp = PNG_COST_FACTOR*PNG_FP_1 + (filter_costs[i]/2);
1386 tmp /= PNG_FP_1;
H A Dpngrtran.c190 output_gamma == PNG_FP_1 / PNG_DEFAULT_sRGB)
205 output_gamma == PNG_FP_1 / PNG_GAMMA_MAC_18)
228 output_gamma *= PNG_FP_1;
299 output_gamma = PNG_FP_1;
967 if (red >= 0 && green >= 0 && red + green <= PNG_FP_1)
1062 return !png_muldiv(&gtest, screen_gamma, file_gamma, PNG_FP_1) ||
1297 png_ptr->screen_gamma = png_ptr->gamma = PNG_FP_1;
1575 gs = PNG_FP_1;
1590 g = PNG_FP_1; /* back_1 */
1591 gs = PNG_FP_1; /* bac
[all...]
H A Dpng.h740 #define PNG_FP_1 100000 macro
1304 #define PNG_GAMMA_LINEAR PNG_FP_1 /* Linear */
H A Dpngget.c202 if (png_muldiv(&res, (png_int_32)info_ptr->y_pixels_per_unit, PNG_FP_1,
H A Dpngrutil.c1048 if (png_muldiv(&r, XYZ.redY, 32768, PNG_FP_1) &&
1050 png_muldiv(&g, XYZ.greenY, 32768, PNG_FP_1) &&
1052 png_muldiv(&b, XYZ.blueY, 32768, PNG_FP_1) &&
/external/libpng/
H A Dpng.c1050 (png_muldiv(&gtest, colorspace->gamma, PNG_FP_1, gAMA) == 0 ||
1203 if (png_muldiv(&xy->redx, XYZ->red_X, PNG_FP_1, d) == 0)
1205 if (png_muldiv(&xy->redy, XYZ->red_Y, PNG_FP_1, d) == 0)
1212 if (png_muldiv(&xy->greenx, XYZ->green_X, PNG_FP_1, d) == 0)
1214 if (png_muldiv(&xy->greeny, XYZ->green_Y, PNG_FP_1, d) == 0)
1221 if (png_muldiv(&xy->bluex, XYZ->blue_X, PNG_FP_1, d) == 0)
1223 if (png_muldiv(&xy->bluey, XYZ->blue_Y, PNG_FP_1, d) == 0)
1232 if (png_muldiv(&xy->whitex, whiteX, PNG_FP_1, dwhite) == 0)
1234 if (png_muldiv(&xy->whitey, whiteY, PNG_FP_1, dwhite) == 0)
1251 if (xy->redx < 0 || xy->redx > PNG_FP_1) retur
[all...]
H A Dpngrtran.c220 output_gamma == PNG_FP_1 / PNG_DEFAULT_sRGB)
237 output_gamma == PNG_FP_1 / PNG_GAMMA_MAC_18)
260 output_gamma *= PNG_FP_1;
334 output_gamma = PNG_FP_1;
999 if (red >= 0 && green >= 0 && red + green <= PNG_FP_1)
1088 return !png_muldiv(&gtest, screen_gamma, file_gamma, PNG_FP_1) ||
1329 png_ptr->screen_gamma = png_ptr->colorspace.gamma = PNG_FP_1;
1617 gs = PNG_FP_1;
1632 g = PNG_FP_1; /* back_1 */
1633 gs = PNG_FP_1; /* bac
[all...]
H A Dpng.h692 #define PNG_FP_1 100000 macro
1185 #define PNG_GAMMA_LINEAR PNG_FP_1 /* Linear */
H A Dpngget.c222 if (png_muldiv(&res, (png_int_32)info_ptr->y_pixels_per_unit, PNG_FP_1,
H A Dpngread.c1364 if (g < PNG_FP_1)
3756 PNG_FP_1) != 0 && png_gamma_significant(gtest) == 0)
/external/pdfium/third_party/lpng_v163/
H A Dpng.c985 (!png_muldiv(&gtest, colorspace->gamma, PNG_FP_1, gAMA) ||
1137 if (!png_muldiv(&xy->redx, XYZ->red_X, PNG_FP_1, d)) return 1;
1138 if (!png_muldiv(&xy->redy, XYZ->red_Y, PNG_FP_1, d)) return 1;
1144 if (!png_muldiv(&xy->greenx, XYZ->green_X, PNG_FP_1, d)) return 1;
1145 if (!png_muldiv(&xy->greeny, XYZ->green_Y, PNG_FP_1, d)) return 1;
1151 if (!png_muldiv(&xy->bluex, XYZ->blue_X, PNG_FP_1, d)) return 1;
1152 if (!png_muldiv(&xy->bluey, XYZ->blue_Y, PNG_FP_1, d)) return 1;
1160 if (!png_muldiv(&xy->whitex, whiteX, PNG_FP_1, dwhite)) return 1;
1161 if (!png_muldiv(&xy->whitey, whiteY, PNG_FP_1, dwhite)) return 1;
1176 if (xy->redx < 0 || xy->redx > PNG_FP_1) retur
[all...]
H A Dpngrtran.c218 output_gamma == PNG_FP_1 / PNG_DEFAULT_sRGB)
235 output_gamma == PNG_FP_1 / PNG_GAMMA_MAC_18)
258 output_gamma *= PNG_FP_1;
329 output_gamma = PNG_FP_1;
995 if (red >= 0 && green >= 0 && red + green <= PNG_FP_1)
1084 return !png_muldiv(&gtest, screen_gamma, file_gamma, PNG_FP_1) ||
1319 png_ptr->screen_gamma = png_ptr->colorspace.gamma = PNG_FP_1;
1608 gs = PNG_FP_1;
1623 g = PNG_FP_1; /* back_1 */
1624 gs = PNG_FP_1; /* bac
[all...]
H A Dpngwrite.c1254 ((PNG_WEIGHT_FACTOR*filter_weights[i]+PNG_FP_HALF)/PNG_FP_1);
1257 PNG_FP_1+(filter_weights[i]/2))/filter_weights[i]);
1269 if (filter_costs[i] >= PNG_FP_1)
1277 tmp = PNG_COST_FACTOR*PNG_FP_1 + (filter_costs[i]/2);
1283 tmp /= PNG_FP_1;
H A Dpng.h1016 #define PNG_FP_1 100000 macro
1582 #define PNG_GAMMA_LINEAR PNG_FP_1 /* Linear */
H A Dpngget.c207 if (png_muldiv(&res, (png_int_32)info_ptr->y_pixels_per_unit, PNG_FP_1,
H A Dpngread.c1257 if (g < PNG_FP_1)
3619 PNG_FP_1) && !png_gamma_significant(gtest))
/external/libpng/contrib/libtests/
H A Dpngunknown.c89 #define PNG_FP_1 100000 macro
91 ((png_fixed_point)(PNG_GAMMA_THRESHOLD * PNG_FP_1))
H A Dmakepng.c853 gamma = PNG_FP_1;
1718 gamma = PNG_FP_1;
H A Dtarith.c894 png_fixed_point gfp = floor(g * PNG_FP_1 + .5);
H A Dpngvalid.c107 #define PNG_FP_1 100000 macro
109 ((png_fixed_point)(PNG_GAMMA_THRESHOLD * PNG_FP_1))
246 d = floor(d * PNG_FP_1 + .5);
7420 # define API_cvt(x) ((double)(x)/PNG_FP_1)

Completed in 229 milliseconds