Home | History | Annotate | Download | only in libpng

Lines Matching refs:gamma

294  * the user to obtain a gamma-corrected palette, for example.
1128 /* We don't handle background color or gamma transformation or quantizing.
1209 /* Optional call to gamma correct and add the background to the palette
1256 # define P_sRGB 1 /* 8-bit encoded to sRGB gamma */
1258 # define P_FILE 3 /* 8-bit encoded to file gamma, not sRGB or linear */
1290 png_fixed_point gamma_to_linear; /* For P_FILE, reciprocal of gamma */
1376 /* Is the given gamma significantly different from sRGB? The test is the same
1377 * one used in pngrtran.c when deciding whether to do gamma correction. The
1379 * file sRGB gamma is 2.2
1386 /* An uninitialized gamma is assumed to be sRGB for the simplified API. */
1662 png_fixed_point g = display->image->opaque->png_ptr->colorspace.gamma;
1769 /* Update the cache with whether the file gamma is significantly different
2147 /* Default the input file gamma if required - this is necessary because
2148 * libpng assumes that if no gamma information is present the data is in the
2149 * output format, but the simplified API deduces the gamma from the input
2161 png_ptr->colorspace.gamma = PNG_GAMMA_LINEAR;
2164 png_ptr->colorspace.gamma = PNG_GAMMA_sRGB_INVERSE;
2206 * gamma correction flag is 0) or 0..255 scaled file encoded values
2207 * (if the function must gamma correct them).
2213 * have non-gamma corrected values to do tRNS handling.
2217 P_FILE/*8-bit with file gamma*/);
2246 /* The 16-bit input values can be converted directly to 8-bit gamma
2309 0/*gamma: not used*/);
2418 0/*gamma: not used*/);
2552 /* Ideally this code would use libpng to do the gamma correction,
2554 * libpng bug in gamma+compose+rgb-to-gray (the double gamma
2555 * correction bug). Fix this by dropping the gamma correction in
2558 * alternative of double gamma correction.
2562 png_gamma_not_sRGB(png_ptr->colorspace.gamma) != 0)
2595 png_ptr->colorspace.gamma)); /* now P_FILE */
2627 0/*gamma: not used*/);
2776 0/*gamma: not used*/);
3380 * PNG_COMPOSITE code performs gamma correction, so we get double gamma
3398 * libpng doing rgb to gray and gamma correction but background processing
3677 int do_local_background = 0; /* to avoid double gamma correction bug */
3704 * background/pre-multiplication if there is also significant gamma
3706 * the code only supports one transform doing the gamma correction.
3726 /* Set the gamma appropriately, linear for 16-bit input, sRGB otherwise.
3737 /* Call png_set_alpha_mode to set the default for the input gamma; the
3738 * output gamma is set by a second call below.
3769 /* If 'do_local_background' is set check for the presence of gamma
3780 * gamma correction, the screen gamma hasn't been set on png_struct
3781 * yet; it's set below. png_struct::gamma, however, is set to the
3784 if (png_muldiv(&gtest, output_gamma, png_ptr->colorspace.gamma,
3849 0/*gamma: not used*/);
3900 * sets the output gamma.