aboutsummaryrefslogtreecommitdiffstats
path: root/libglitter.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-01-22 11:32:39 +0100
committerMattias Andrée <maandree@kth.se>2023-01-22 11:32:50 +0100
commitbd0da30a3d8a92baff536ecc1c7c2e36ea1b419d (patch)
treecd064cac67ae8f4759457765275e6714f583ed22 /libglitter.h
parentm + add CIE XYZ support + add libglitter_per_channel_desaturate_{double,float} (diff)
downloadlibglitter-bd0da30a3d8a92baff536ecc1c7c2e36ea1b419d.tar.gz
libglitter-bd0da30a3d8a92baff536ecc1c7c2e36ea1b419d.tar.bz2
libglitter-bd0da30a3d8a92baff536ecc1c7c2e36ea1b419d.tar.xz
m + add libglitter_colour_space_convert_rasters_{double,float}
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libglitter.h')
-rw-r--r--libglitter.h47
1 files changed, 44 insertions, 3 deletions
diff --git a/libglitter.h b/libglitter.h
index 50d451d..649d522 100644
--- a/libglitter.h
+++ b/libglitter.h
@@ -83,7 +83,7 @@ void libglitter_free_render_context(LIBGLITTER_RENDER_CONTEXT *);
* as such, the given pointer shall not be used anywhere
* else during the execution of the function and the
* inner pointers shall be considered undefined after
- * the execution of the function
+ * the execution of the function.
* @param input Input raster; cells are adjacent
* @param output_rowsize The number of cells in a row in each output raster
* @param output_cellsize The number of values stored in each output raster,
@@ -118,7 +118,7 @@ void libglitter_compose_float(float **, const float *restrict, size_t, size_t,
* as such, the given pointer shall not be used anywhere
* else during the execution of the function and the
* inner pointers shall be considered undefined after
- * the execution of the function
+ * the execution of the function.
* @param input Input raster; cells are adjacent
* @param output_rowsize The number of cells in a row in each output raster
* @param output_cellsize The number of values stored in each output raster,
@@ -235,7 +235,7 @@ void libglitter_desaturate_float(float **, size_t, size_t, size_t, size_t, size_
* as such, the given pointer shall not be used anywhere
* else during the execution of the function and the
* inner pointers shall be considered undefined after
- * the execution of the function
+ * the execution of the function.
* @param nrasters The number of rasters
* @param rowsize The number of cells in a row in each raster
* @param cellsize The number of values stored in each raster,
@@ -302,4 +302,45 @@ void libglitter_get_colour_space_conversion_matrix_float(float[3][3], float, flo
float, float, float, float, float, int);
+/**
+ * Convert set of rasters from one colour space to another
+ *
+ * @param n The number of input rasters
+ * @param m The number of output rasters
+ * @param outputs Array of output rasters. The function may change
+ * the offset for each raster, as such, the given
+ * pointer shall not be used anywhere else during
+ * the execution of the function and the inner
+ * pointers shall be considered undefined after the
+ * execution of the function.
+ * @param inputs Array of input rasters. The function may change
+ * the offset for each raster, as such, the given
+ * pointer shall not be used anywhere else during
+ * the execution of the function and the inner
+ * pointers shall be considered undefined after the
+ * execution of the function.
+ * @param output_rowsize The number of cells in a row in each output raster
+ * @param output_cellsize The number of values stored in each output raster,
+ * between each cell, plus 1 (that is, the number of
+ * values per cell)
+ * @param input_rowsize The number of cells in a row in each input raster
+ * @param input_cellsize The number of values stored in each input raster,
+ * between each cell, plus 1 (that is, the number of
+ * 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
+ */
+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]);
+
+/**
+ * This value is identical to `libglitter_colour_space_convert_rasters_double`,
+ * apart from it parameter types, see `libglitter_colour_space_convert_rasters_double`
+ * for details about this function
+ */
+void libglitter_colour_space_convert_rasters_float(size_t n, size_t m, float **, const float **,
+ size_t, size_t, size_t, size_t, size_t, size_t, const float[n][m]);
+
+
#endif