diff options
author | Lode <lvandeve@gmail.com> | 2018-09-17 01:36:50 +0300 |
---|---|---|
committer | Lode <lvandeve@gmail.com> | 2018-09-17 01:36:50 +0300 |
commit | ae03c0dc9fa027a5a68717d816f43429b74796cd (patch) | |
tree | c5b6a85cbd88076239a172567c6e8216ba5910af /lodepng.h | |
parent | 45dbadb459cb514da0b50d3f02399bf90b44d717 (diff) |
add PNG cHRM/gAMA color profile RGB/XYZ conversion utility in utils
Diffstat (limited to 'lodepng.h')
-rw-r--r-- | lodepng.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -360,6 +360,8 @@ void lodepng_color_mode_init(LodePNGColorMode* info); void lodepng_color_mode_cleanup(LodePNGColorMode* info); /*return value is error code (0 means no error)*/ unsigned lodepng_color_mode_copy(LodePNGColorMode* dest, const LodePNGColorMode* source); +/* Makes a temporary LodePNGColorMode that does not need cleanup (no palette) */ +LodePNGColorMode lodepng_color_mode_make(LodePNGColorType colortype, unsigned bitdepth); void lodepng_palette_clear(LodePNGColorMode* info); /*add 1 color to the palette*/ |