Home
last modified time | relevance | path

Searched refs:screen_gamma (Results 1 – 25 of 26) sorted by relevance

12

/external/syslinux/com32/lib/libpng/
Dexample.c240 screen_gamma = user-defined screen_gamma;
245 screen_gamma = atof(gamma_str);
250 screen_gamma = 2.2; /* A good guess for a PC monitor in a dimly
252 screen_gamma = 1.7 or 1.0; /* A good guess for Mac systems */
264 png_set_gamma(png_ptr, screen_gamma, 0.45455);
269 png_set_gamma(png_ptr, screen_gamma, image_gamma);
271 png_set_gamma(png_ptr, screen_gamma, 0.45455);
Dpngrtran.c564 png_ptr->screen_gamma = (float)scrn_gamma; in png_set_gamma()
901 && (fabs(png_ptr->screen_gamma * png_ptr->gamma - 1.0) in png_init_read_transformations()
947 g = (png_ptr->screen_gamma); in png_init_read_transformations()
953 gs = 1.0 / (png_ptr->gamma * png_ptr->screen_gamma); in png_init_read_transformations()
959 png_ptr->screen_gamma); in png_init_read_transformations()
1042 g = (png_ptr->screen_gamma); in png_init_read_transformations()
1048 gs = 1.0 / (png_ptr->gamma * png_ptr->screen_gamma); in png_init_read_transformations()
1054 png_ptr->screen_gamma); in png_init_read_transformations()
2637 g = 1.0 / (png_ptr->background_gamma * png_ptr->screen_gamma); in png_correct_palette()
4182 if (png_ptr->screen_gamma > .000001) in png_build_gamma_table()
[all …]
Dlibpng.txt984 double gamma, screen_gamma;
989 screen_gamma = user_defined_screen_gamma;
996 screen_gamma = (double)atof(gamma_str);
1001 screen_gamma = 2.2; /* A good guess for a
1003 screen_gamma = 2.0; /* A good guess for a
1005 screen_gamma = 1.7 or 1.0; /* A good
1010 Pass both the file gamma and the current screen_gamma. If the file does
1019 png_set_gamma(png_ptr, screen_gamma, gamma);
1021 png_set_gamma(png_ptr, screen_gamma, 0.45455);
1126 will also update your palette with the correct screen_gamma and
DCHANGES216 cosmetic change "display_gamma" to "screen_gamma" in pngrtran.c
219 screen_gamma, viewing_gamma, and display_gamma.
/external/skia/third_party/libpng/
Dexample.c434 screen_gamma = user-defined screen_gamma;
439 screen_gamma = atof(gamma_str);
444 screen_gamma = PNG_DEFAULT_sRGB; /* A good guess for a PC monitor
446 screen_gamma = PNG_GAMMA_MAC_18 or 1.0; /* Good guesses for Mac systems */
458 png_set_gamma(png_ptr, screen_gamma, PNG_DEFAULT_sRGB);
463 png_set_gamma(png_ptr, screen_gamma, image_gamma);
465 png_set_gamma(png_ptr, screen_gamma, 0.45455);
Dpngrtran.c365 png_ptr->screen_gamma = output_gamma; in png_set_alpha_mode_fixed()
839 png_ptr->screen_gamma = scrn_gamma; in png_set_gamma_fixed()
1078 png_gamma_threshold(png_fixed_point screen_gamma, png_fixed_point file_gamma) in png_gamma_threshold() argument
1088 return !png_muldiv(&gtest, screen_gamma, file_gamma, PNG_FP_1) || in png_gamma_threshold()
1304 if (png_ptr->screen_gamma != 0) /* screen set too */ in png_init_read_transformations()
1306 png_ptr->screen_gamma); in png_init_read_transformations()
1312 png_ptr->screen_gamma = png_reciprocal(png_ptr->colorspace.gamma); in png_init_read_transformations()
1315 else if (png_ptr->screen_gamma != 0) in png_init_read_transformations()
1321 png_ptr->colorspace.gamma = png_reciprocal(png_ptr->screen_gamma); in png_init_read_transformations()
1329 png_ptr->screen_gamma = png_ptr->colorspace.gamma = PNG_FP_1; in png_init_read_transformations()
[all …]
Dpng.c4108 png_ptr->screen_gamma > 0 ? png_reciprocal2(png_ptr->colorspace.gamma,
4109 png_ptr->screen_gamma) : PNG_FP_1);
4120 png_ptr->screen_gamma > 0 ? png_reciprocal(png_ptr->screen_gamma) :
4190 png_ptr->screen_gamma > 0 ? png_product2(png_ptr->colorspace.gamma,
4191 png_ptr->screen_gamma) : PNG_FP_1);
4195 png_ptr->screen_gamma > 0 ? png_reciprocal2(png_ptr->colorspace.gamma,
4196 png_ptr->screen_gamma) : PNG_FP_1);
4211 png_ptr->screen_gamma > 0 ? png_reciprocal(png_ptr->screen_gamma) :
Dpngstruct.h291 png_fixed_point screen_gamma; /* screen gamma value (display_exponent) */ member
Dpngread.c3147 png_ptr->screen_gamma == PNG_GAMMA_sRGB && in png_image_read_colormapped()
3157 png_ptr->screen_gamma == PNG_GAMMA_sRGB && in png_image_read_colormapped()
3167 png_ptr->screen_gamma == PNG_GAMMA_sRGB && in png_image_read_colormapped()
Dpng.h1386 double screen_gamma, double override_file_gamma))
1388 png_fixed_point screen_gamma, png_fixed_point override_file_gamma))
Dlibpng-manual.txt719 png_set_gamma(png_ptr, screen_gamma, output_gamma);
723 png_set_gamma_fixed(png_ptr, PNG_FP_1*screen_gamma,
826 png_set_alpha_mode(png_ptr, mode, screen_gamma);
828 png_set_gamma(png_ptr, screen_gamma, 1.0/screen_gamma);
831 The screen_gamma value is the same as the argument to png_set_gamma; however,
833 file gamma default to 1/screen_gamma, so normally you don't need to call
901 component values, whatever screen_gamma you supply. The
902 screen_gamma value is, however, used as a default for
920 the screen_gamma value. Pixels with alpha less than 1.0
953 screen_gamma);
[all …]
/external/libpng/
Dexample.c434 screen_gamma = user-defined screen_gamma;
439 screen_gamma = atof(gamma_str);
444 screen_gamma = PNG_DEFAULT_sRGB; /* A good guess for a PC monitor
446 screen_gamma = PNG_GAMMA_MAC_18 or 1.0; /* Good guesses for Mac systems */
458 png_set_gamma(png_ptr, screen_gamma, PNG_DEFAULT_sRGB);
463 png_set_gamma(png_ptr, screen_gamma, image_gamma);
465 png_set_gamma(png_ptr, screen_gamma, 0.45455);
Dpngrtran.c365 png_ptr->screen_gamma = output_gamma; in png_set_alpha_mode_fixed()
839 png_ptr->screen_gamma = scrn_gamma; in png_set_gamma_fixed()
1078 png_gamma_threshold(png_fixed_point screen_gamma, png_fixed_point file_gamma) in png_gamma_threshold() argument
1088 return !png_muldiv(&gtest, screen_gamma, file_gamma, PNG_FP_1) || in png_gamma_threshold()
1304 if (png_ptr->screen_gamma != 0) /* screen set too */ in png_init_read_transformations()
1306 png_ptr->screen_gamma); in png_init_read_transformations()
1312 png_ptr->screen_gamma = png_reciprocal(png_ptr->colorspace.gamma); in png_init_read_transformations()
1315 else if (png_ptr->screen_gamma != 0) in png_init_read_transformations()
1321 png_ptr->colorspace.gamma = png_reciprocal(png_ptr->screen_gamma); in png_init_read_transformations()
1329 png_ptr->screen_gamma = png_ptr->colorspace.gamma = PNG_FP_1; in png_init_read_transformations()
[all …]
Dpng.c4140 png_ptr->screen_gamma > 0 ?
4142 png_ptr->screen_gamma) : PNG_FP_1);
4153 png_ptr->screen_gamma > 0 ?
4154 png_reciprocal(png_ptr->screen_gamma) :
4224 png_ptr->screen_gamma > 0 ? png_product2(png_ptr->colorspace.gamma,
4225 png_ptr->screen_gamma) : PNG_FP_1);
4229 png_ptr->screen_gamma > 0 ? png_reciprocal2(png_ptr->colorspace.gamma,
4230 png_ptr->screen_gamma) : PNG_FP_1);
4245 png_ptr->screen_gamma > 0 ? png_reciprocal(png_ptr->screen_gamma) :
Dpngstruct.h291 png_fixed_point screen_gamma; /* screen gamma value (display_exponent) */ member
Dpngread.c3156 png_ptr->screen_gamma == PNG_GAMMA_sRGB && in png_image_read_colormapped()
3166 png_ptr->screen_gamma == PNG_GAMMA_sRGB && in png_image_read_colormapped()
3176 png_ptr->screen_gamma == PNG_GAMMA_sRGB && in png_image_read_colormapped()
Dpng.h1386 double screen_gamma, double override_file_gamma))
1388 png_fixed_point screen_gamma, png_fixed_point override_file_gamma))
Dlibpng-manual.txt719 png_set_gamma(png_ptr, screen_gamma, output_gamma);
723 png_set_gamma_fixed(png_ptr, PNG_FP_1*screen_gamma,
826 png_set_alpha_mode(png_ptr, mode, screen_gamma);
828 png_set_gamma(png_ptr, screen_gamma, 1.0/screen_gamma);
831 The screen_gamma value is the same as the argument to png_set_gamma; however,
833 file gamma default to 1/screen_gamma, so normally you don't need to call
901 component values, whatever screen_gamma you supply. The
902 screen_gamma value is, however, used as a default for
920 the screen_gamma value. Pixels with alpha less than 1.0
953 screen_gamma);
[all …]
/external/pdfium/third_party/libpng16/
Dpngrtran.c365 png_ptr->screen_gamma = output_gamma; in png_set_alpha_mode_fixed()
839 png_ptr->screen_gamma = scrn_gamma; in png_set_gamma_fixed()
1078 png_gamma_threshold(png_fixed_point screen_gamma, png_fixed_point file_gamma) in png_gamma_threshold() argument
1088 return !png_muldiv(&gtest, screen_gamma, file_gamma, PNG_FP_1) || in png_gamma_threshold()
1304 if (png_ptr->screen_gamma != 0) /* screen set too */ in png_init_read_transformations()
1306 png_ptr->screen_gamma); in png_init_read_transformations()
1312 png_ptr->screen_gamma = png_reciprocal(png_ptr->colorspace.gamma); in png_init_read_transformations()
1315 else if (png_ptr->screen_gamma != 0) in png_init_read_transformations()
1321 png_ptr->colorspace.gamma = png_reciprocal(png_ptr->screen_gamma); in png_init_read_transformations()
1329 png_ptr->screen_gamma = png_ptr->colorspace.gamma = PNG_FP_1; in png_init_read_transformations()
[all …]
Dpng.c4109 png_ptr->screen_gamma > 0 ? png_reciprocal2(png_ptr->colorspace.gamma,
4110 png_ptr->screen_gamma) : PNG_FP_1);
4121 png_ptr->screen_gamma > 0 ? png_reciprocal(png_ptr->screen_gamma) :
4191 png_ptr->screen_gamma > 0 ? png_product2(png_ptr->colorspace.gamma,
4192 png_ptr->screen_gamma) : PNG_FP_1);
4196 png_ptr->screen_gamma > 0 ? png_reciprocal2(png_ptr->colorspace.gamma,
4197 png_ptr->screen_gamma) : PNG_FP_1);
4212 png_ptr->screen_gamma > 0 ? png_reciprocal(png_ptr->screen_gamma) :
Dpngstruct.h291 png_fixed_point screen_gamma; /* screen gamma value (display_exponent) */ member
Dpngread.c3157 png_ptr->screen_gamma == PNG_GAMMA_sRGB && in png_image_read_colormapped()
3167 png_ptr->screen_gamma == PNG_GAMMA_sRGB && in png_image_read_colormapped()
3177 png_ptr->screen_gamma == PNG_GAMMA_sRGB && in png_image_read_colormapped()
Dpng.h1386 double screen_gamma, double override_file_gamma))
1388 png_fixed_point screen_gamma, png_fixed_point override_file_gamma))
/external/libpng/contrib/libtests/
Dpngvalid.c9215 double screen_gamma; member
9235 double file_gamma, double screen_gamma, png_byte sbit, int threshold_test, in gamma_display_init() argument
9247 dp->screen_gamma = screen_gamma; in gamma_display_init()
9305 const double sg = dp->screen_gamma; in gamma_info_imp()
9339 png_set_gamma(pp, dp->screen_gamma, dp->file_gamma); in gamma_info_imp()
9342 png_fixed_point s = fix(dp->screen_gamma); in gamma_info_imp()
9408 double screen_gamma; member
9451 vi->screen_gamma = dp->screen_gamma; in init_validate_info()
9452 if (fabs(vi->screen_gamma-1) < PNG_GAMMA_THRESHOLD) in init_validate_info()
9453 vi->screen_gamma = vi->screen_inverse = 0; in init_validate_info()
[all …]
/external/syslinux/com32/include/
Dpng.h1354 float screen_gamma PNG_DEPSTRUCT; /* screen gamma value (display_exponent) */
1805 double screen_gamma, double default_file_gamma));

12