diff options
author | Mattias Andrée <maandree@kth.se> | 2019-10-10 16:48:36 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2019-10-10 16:48:36 +0200 |
commit | 57b3f2a3e8d671339646553c648cf3101bd0532d (patch) | |
tree | e114353bf9b00d0fdab66e5124f1e545881974f5 | |
parent | Minor fixes (diff) | |
download | cg-tools-57b3f2a3e8d671339646553c648cf3101bd0532d.tar.gz cg-tools-57b3f2a3e8d671339646553c648cf3101bd0532d.tar.bz2 cg-tools-57b3f2a3e8d671339646553c648cf3101bd0532d.tar.xz |
Minor style fix and comment improvement
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | cg-icc.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -14,8 +14,9 @@ -/* Note, that EDID:s are 256 hexadecimals long, and - * a filename can only be 255 characters long. */ +/* Note, that EDID:s are at least 256 hexadecimals long, + * sometimes 512 hexadecimals long, and a filename can + * often only be 255 characters long. */ @@ -426,7 +427,8 @@ icc_uint8(const char *restrict content) * @param width The number of bytes with which the value is encoded * @return The value, decoded */ -static double icc_double(const char *restrict content, size_t width) +static double +icc_double(const char *restrict content, size_t width) { double ret = 0; size_t i; @@ -451,7 +453,8 @@ static double icc_double(const char *restrict content, size_t width) * @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) +static int +parse_icc(const char *restrict content, size_t n, libcoopgamma_ramps_t *ramps, libcoopgamma_depth_t *depth) { uint32_t tag_name, tag_offset, tag_size, gamma_type; size_t n_channels, n_entries, entry_size; |