From d3191be332877f0bd9d221584bf72db3144364df Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 27 Aug 2016 18:09:05 +0200 Subject: doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/cg-icc.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/cg-icc.c b/src/cg-icc.c index 76dd0b0..5493f82 100644 --- a/src/cg-icc.c +++ b/src/cg-icc.c @@ -220,7 +220,20 @@ static double icc_double(const char* restrict content, size_t width) } -static int parse_icc(const char* restrict content, size_t n, libcoopgamma_ramps_t* ramps, signed* depth) +/** + * Parse an ICC profile + * + * @param content The content of the ICC profile file + * @param n The byte-size of `content` + * @param ramps Output parameter for the filter stored in the ICC profile, + * `.red_size`, `.green_size`, `.blue_size` should already be + * set (these values can however be modified.) + * @param depth Output parameter for ramps stop value type + * @return Zero on success, -1 on error, -2 if no usable data is + * available in the profile. + */ +static int parse_icc(const char* restrict content, size_t n, libcoopgamma_ramps_t* ramps, + libcoopgamma_depth_t* depth) { uint32_t i_tag, n_tags; size_t i, ptr = 0, xptr; -- cgit v1.2.3-70-g09d2