diff options
author | Mattias Andrée <maandree@kth.se> | 2023-01-22 11:44:36 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-01-22 11:44:36 +0100 |
commit | 589d39180e14531ba77508b91051edda94a8896d (patch) | |
tree | afca4c40e49a9ad47fd1598c7924d0b53389fd19 /libglitter.h | |
parent | m + add libglitter_colour_space_convert_rasters_{double,float} (diff) | |
download | libglitter-589d39180e14531ba77508b91051edda94a8896d.tar.gz libglitter-589d39180e14531ba77508b91051edda94a8896d.tar.bz2 libglitter-589d39180e14531ba77508b91051edda94a8896d.tar.xz |
Use column-major conversion matrices
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libglitter.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libglitter.h b/libglitter.h index 649d522..7e2a1ea 100644 --- a/libglitter.h +++ b/libglitter.h @@ -272,9 +272,11 @@ void libglitter_per_channel_desaturate_float(float **, size_t, size_t, size_t, s * uses some other colour space, this function can output * the conversion matrix for the CIE XYZ colour space, * which can that be right-hand multiplied to get the - * conversion matrix for some other colour + * conversion matrix for some other colour; but be aware + * that the output matrix is in column-major order, not + * row-major order * - * @param matrix Output buffer for the conversion matrix + * @param matrix Output buffer for the conversion matrix, in column-major order * @param c1x The CIE x value (as in CIE xyY) of the output's first primary colour * @param c1y The CIE y value (as in CIE xyY) of the output's first primary colour * @param c2x The CIE x value (as in CIE xyY) of the output's second primary colour @@ -329,7 +331,7 @@ void libglitter_get_colour_space_conversion_matrix_float(float[3][3], float, flo * values per cell) * @param width The horizontal number of pixels in the rasters * @param height The vertical number of pixels in the rasters - * @param matrix Colour space conversion matrix + * @param matrix Colour space conversion matrix, in column-major order */ void libglitter_colour_space_convert_rasters_double(size_t n, size_t m, double **, const double **, size_t, size_t, size_t, size_t, size_t, size_t, const double[n][m]); |