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