Lines Matching refs:linear
141 * matching the chunk name rather than a linear search.
1518 # define P_LINEAR 2 /* 16-bit linear: not encoded, NOT pre-multiplied! */
1519 # define P_FILE 3 /* 8-bit encoded to file gamma, not sRGB or linear */
1520 # define P_LINEAR8 4 /* 8-bit linear: only from a file value */
2083 * linear.
2150 /* The linear 16-bit values must be pre-multiplied by the alpha channel
2386 * below.) The encoding is 8-bit sRGB or 16-bit linear, depending on the
2465 * including the required conversion to sRGB or linear as
2722 * 'A' is linear. We need the linear background colors.
2724 if (output_encoding == P_sRGB) /* else already linear */
2739 /* PNG_sRGB_FROM_LINEAR expects a 16-bit linear value scaled
3605 * is a linear 8-bit value. Combine this with the
3614 * therefore appropriate for the sRGB to linear
3824 /* 16-bit linear with pre-multiplied alpha; the pre-multiplication must
3936 int linear = (format & PNG_FORMAT_FLAG_LINEAR) != 0;
3966 * correction, because both operations require linear colors and
3987 /* Set the gamma appropriately, linear for 16-bit input, sRGB otherwise.
4004 if (linear != 0)
4061 if (linear != 0 /*16-bit output*/)
4088 else if (linear != 0) /* compose on black (well, pre-multiply) */
4135 if (linear != 0)
4208 if (linear != 0)
4299 if (linear != 0)