aboutsummaryrefslogtreecommitdiffstats
path: root/libglitter.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-01-31 18:07:32 +0100
committerMattias Andrée <maandree@kth.se>2023-01-31 18:07:32 +0100
commit704369867625fc72d1b714bdf839bc06ce0f5d49 (patch)
tree165ada8df8a6de95777fb9791bdf31775bc4b575 /libglitter.h
parentImplement libglitter_redistribute_energy_double (diff)
downloadlibglitter-704369867625fc72d1b714bdf839bc06ce0f5d49.tar.gz
libglitter-704369867625fc72d1b714bdf839bc06ce0f5d49.tar.bz2
libglitter-704369867625fc72d1b714bdf839bc06ce0f5d49.tar.xz
Add optimisations for common kernels in libglitter_redistribute_energy_double
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libglitter.h')
-rw-r--r--libglitter.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/libglitter.h b/libglitter.h
index b7d409a..fe83073 100644
--- a/libglitter.h
+++ b/libglitter.h
@@ -241,14 +241,14 @@ void libglitter_update_render_context(LIBGLITTER_RENDER_CONTEXT *, size_t);
* `(hkernelsize - 1) / 2` cells to the left and to
* the right, and `(vkernelsize - 1) / 2` cells to
* the up as well as down. The caller is responsible
- * for furthering extending the image by `widthmul`
- * - (hkernelsize - 1) / 2 % widthmul` cells both to
- * on the left and on the right, and by `heightmul`
- * - (vkernelsize - 1) / 2 % heightmul` cells both
- * up and down (where `widthmul` and `heightmul` are
- * arguments to the `libglitter_create_render_context`
- * function); so that the raster can be input to
- * `libglitter_compose_double`.
+ * for furthering extending the image by `(widthmul`
+ * - (hkernelsize - 1) / 2 % widthmul) % widthmul`
+ * cells both to on the left and on the right, and
+ * by `(heightmul` - (vkernelsize - 1) / 2 % heightmul)
+ * % heightmul` cells both up and down (where
+ * `widthmul` and `heightmul` are arguments to the
+ * `libglitter_create_render_context` function); so that
+ * the raster can be input to `libglitter_compose_double`.
*
* @param raster The subpixel raster. The must be padded with
* zero-initialised cells on the left side and