Home | History | Annotate | Download | only in libpng16

Lines Matching full:srgb

1246 #  define P_sRGB    1 /* 8-bit encoded to sRGB gamma */
1248 # define P_FILE 3 /* 8-bit encoded to file gamma, not sRGB or linear */
1366 /* Is the given gamma significantly different from sRGB? The test is the same
1369 * file sRGB gamma is 2.2
1376 /* An uninitialized gamma is assumed to be sRGB for the simplified API. */
1410 /* Does the colorspace match sRGB? If there is no color endpoint
1601 * tRNS, bKGD, gAMA, cHRM, sRGB, [iCCP] and sBIT.
1620 115, 82, 71, 66, '\0', /* sRGB */
1758 * from sRGB.
1809 /* The values are 8-bit sRGB values, but must be converted to 16-bit
2065 /* Return a palette index to the above palette given three 8-bit sRGB values. */
2111 * below.) The encoding is 8-bit sRGB or 16-bit linear, depending on the
2190 * including the required conversion to sRGB or linear as
2191 * appropriate. The input values are always either sRGB (if the
2198 * entries for 8-bit non-sRGB encoded files it is necessary to
2238 * Use libpng to chop the data to 8 bits. Convert it to sRGB at the
2284 * sRGB value.
2340 * Reduce 16-bit files to 8-bit and sRGB encode the result. No need to
2396 /* The background passed to libpng, however, must be the sRGB
2441 /* For non-opaque input composite on the sRGB background - this
2443 * is still converted to the sRGB encoding because this is a
2446 * represents. Consequently 'G' is always sRGB encoded, while
2584 * exactly the required sRGB value.
2601 * output (normally sRGB) value.
2625 * Consequently we always want libpng to produce sRGB data.
2687 png_uint_32 r, g, b; /* sRGB background */
2819 * on the sRGB color in 'back'.
2861 /* Change to 8-bit sRGB */
3151 /* Output must be two channels and the 'G' one must be sRGB, the latter
3164 /* Output must be 8-bit sRGB encoded RGB */
3174 /* Output must be 8-bit sRGB encoded RGBA */
3332 * current outrow[c] value which is sRGB encoded.
3340 * therefore appropriate for the sRGB to linear
3425 /* 8-bit sRGB gray values with an alpha channel; the alpha channel is
3485 * necessary to invert the sRGB transfer
3713 /* Set the gamma appropriately, linear for 16-bit input, sRGB otherwise.
3822 /* This is always an 8-bit sRGB value, using the 'green' channel