Home
last modified time | relevance | path

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

/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.c361 png_ptr->screen_gamma = output_gamma; in png_set_alpha_mode_fixed()
835 png_ptr->screen_gamma = scrn_gamma; in png_set_gamma_fixed()
1075 png_gamma_threshold(png_fixed_point screen_gamma, png_fixed_point file_gamma) in png_gamma_threshold() argument
1085 return !png_muldiv(&gtest, screen_gamma, file_gamma, PNG_FP_1) || in png_gamma_threshold()
1301 if (png_ptr->screen_gamma != 0) /* screen set too */ in png_init_read_transformations()
1303 png_ptr->screen_gamma); in png_init_read_transformations()
1309 png_ptr->screen_gamma = png_reciprocal(png_ptr->colorspace.gamma); in png_init_read_transformations()
1312 else if (png_ptr->screen_gamma != 0) in png_init_read_transformations()
1318 png_ptr->colorspace.gamma = png_reciprocal(png_ptr->screen_gamma); in png_init_read_transformations()
1326 png_ptr->screen_gamma = png_ptr->colorspace.gamma = PNG_FP_1; in png_init_read_transformations()
[all …]
Dpng.c4017 png_ptr->screen_gamma > 0 ? png_reciprocal2(png_ptr->colorspace.gamma,
4018 png_ptr->screen_gamma) : PNG_FP_1);
4029 png_ptr->screen_gamma > 0 ? png_reciprocal(png_ptr->screen_gamma) :
4098 png_ptr->screen_gamma > 0 ? png_product2(png_ptr->colorspace.gamma,
4099 png_ptr->screen_gamma) : PNG_FP_1);
4103 png_ptr->screen_gamma > 0 ? png_reciprocal2(png_ptr->colorspace.gamma,
4104 png_ptr->screen_gamma) : PNG_FP_1);
4119 png_ptr->screen_gamma > 0 ? png_reciprocal(png_ptr->screen_gamma) :
Dpngstruct.h334 png_fixed_point screen_gamma; /* screen gamma value (display_exponent) */ member
Dpng.h1474 double screen_gamma, double override_file_gamma))
1476 png_fixed_point screen_gamma, png_fixed_point override_file_gamma))
Dpngread.c3283 png_ptr->screen_gamma == PNG_GAMMA_sRGB && in png_image_read_colormapped()
3293 png_ptr->screen_gamma == PNG_GAMMA_sRGB && in png_image_read_colormapped()
3303 png_ptr->screen_gamma == PNG_GAMMA_sRGB && in png_image_read_colormapped()
Dlibpng-manual.txt715 png_set_gamma(png_ptr, screen_gamma, output_gamma);
719 png_set_gamma_fixed(png_ptr, PNG_FP_1*screen_gamma,
822 png_set_alpha_mode(png_ptr, mode, screen_gamma);
824 png_set_gamma(png_ptr, screen_gamma, 1.0/screen_gamma);
827 The screen_gamma value is the same as the argument to png_set_gamma; however,
829 file gamma default to 1/screen_gamma, so normally you don't need to call
897 component values, whatever screen_gamma you supply. The
898 screen_gamma value is, however, used as a default for
916 the screen_gamma value. Pixels with alpha less than 1.0
949 screen_gamma);
[all …]
DCHANGES217 Cosmetic change "display_gamma" to "screen_gamma" in pngrtran.c
220 screen_gamma, viewing_gamma, and display_gamma.
/external/qemu/distrib/libpng-1.2.46/
Dpngrtran.c564 png_ptr->screen_gamma = (float)scrn_gamma; in png_set_gamma()
912 && (fabs(png_ptr->screen_gamma * png_ptr->gamma - 1.0) in png_init_read_transformations()
958 g = (png_ptr->screen_gamma); in png_init_read_transformations()
964 gs = 1.0 / (png_ptr->gamma * png_ptr->screen_gamma); in png_init_read_transformations()
970 png_ptr->screen_gamma); in png_init_read_transformations()
1053 g = (png_ptr->screen_gamma); in png_init_read_transformations()
1059 gs = 1.0 / (png_ptr->gamma * png_ptr->screen_gamma); in png_init_read_transformations()
1065 png_ptr->screen_gamma); in png_init_read_transformations()
2647 g = 1.0 / (png_ptr->background_gamma * png_ptr->screen_gamma); in png_correct_palette()
4192 if (png_ptr->screen_gamma > .000001) in png_build_gamma_table()
[all …]
Dpng.h1412 float screen_gamma PNG_DEPSTRUCT; /* screen gamma value (display_exponent) */
1866 double screen_gamma, double default_file_gamma));
/external/chromium_org/third_party/libpng/
Dpngrtran.c564 png_ptr->screen_gamma = (float)scrn_gamma; in png_set_gamma()
912 && (fabs(png_ptr->screen_gamma * png_ptr->gamma - 1.0) in png_init_read_transformations()
958 g = (png_ptr->screen_gamma); in png_init_read_transformations()
964 gs = 1.0 / (png_ptr->gamma * png_ptr->screen_gamma); in png_init_read_transformations()
970 png_ptr->screen_gamma); in png_init_read_transformations()
1053 g = (png_ptr->screen_gamma); in png_init_read_transformations()
1059 gs = 1.0 / (png_ptr->gamma * png_ptr->screen_gamma); in png_init_read_transformations()
1065 png_ptr->screen_gamma); in png_init_read_transformations()
2647 g = 1.0 / (png_ptr->background_gamma * png_ptr->screen_gamma); in png_correct_palette()
4192 if (png_ptr->screen_gamma > .000001) in png_build_gamma_table()
[all …]
Dpng.h1359 float screen_gamma PNG_DEPSTRUCT; /* screen gamma value (display_exponent) */
1810 double screen_gamma, double default_file_gamma));
/external/libpng/contrib/libtests/
Dpngvalid.c7695 double screen_gamma; member
7715 double file_gamma, double screen_gamma, png_byte sbit, int threshold_test, in gamma_display_init() argument
7727 dp->screen_gamma = screen_gamma; in gamma_display_init()
7785 PNG_CONST double sg = dp->screen_gamma; in gamma_info_imp()
7819 png_set_gamma(pp, dp->screen_gamma, dp->file_gamma); in gamma_info_imp()
7822 png_fixed_point s = fix(dp->screen_gamma); in gamma_info_imp()
7888 double screen_gamma; member
7931 vi->screen_gamma = dp->screen_gamma; in init_validate_info()
7932 if (fabs(vi->screen_gamma-1) < PNG_GAMMA_THRESHOLD) in init_validate_info()
7933 vi->screen_gamma = vi->screen_inverse = 0; in init_validate_info()
[all …]