[libpng16] Support associated alpha in the simplified api

This commit is contained in:
Glenn Randers-Pehrson
2017-09-23 14:53:44 -05:00
2 changed files with 13 additions and 1 deletions

2
png.h
View File

@@ -2819,6 +2819,8 @@ typedef struct
# define PNG_FORMAT_FLAG_AFIRST 0x20U /* alpha channel comes first */
#endif
#define PNG_FORMAT_FLAG_ASSOCIATED_ALPHA 0x40U /* alpha channel is associated */
/* Commonly used formats have predefined macros.
*
* First the single byte (sRGB) formats: