1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /** @file
3  * TODO: insert short description here
4  *//*
5  * Authors: see git history
6  *
7  * Copyright (C) 2014 Authors
8  * Released under GNU GPL v2+, read the file 'COPYING' for more information.
9  */
10 #ifndef SVG_SVG_COLOR_H_SEEN
11 #define SVG_SVG_COLOR_H_SEEN
12 
13 typedef unsigned int guint32;
14 struct SVGICCColor;
15 
16 guint32 sp_svg_read_color(char const *str, unsigned int dfl);
17 guint32 sp_svg_read_color(char const *str, char const **end_ptr, guint32 def);
18 void sp_svg_write_color(char *buf, unsigned int buflen, unsigned int rgba32);
19 
20 bool sp_svg_read_icc_color( char const *str, char const **end_ptr, SVGICCColor* dest );
21 bool sp_svg_read_icc_color( char const *str, SVGICCColor* dest );
22 void icc_color_to_sRGB(SVGICCColor* dest, unsigned char* r, unsigned char* g, unsigned char* b);
23 
24 #endif /* !SVG_SVG_COLOR_H_SEEN */
25