aboutsummaryrefslogtreecommitdiffstats
path: root/libglitter_reorder_rasters.3
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-01-25 22:59:01 +0100
committerMattias Andrée <maandree@kth.se>2023-01-25 22:59:01 +0100
commitcd1558586a3ea5ac019b39831a135c2d488e405b (patch)
treeb73e7dfcfb107e850e536025f2c45223e0c8d6f6 /libglitter_reorder_rasters.3
parentImprove README (diff)
downloadlibglitter-cd1558586a3ea5ac019b39831a135c2d488e405b.tar.gz
libglitter-cd1558586a3ea5ac019b39831a135c2d488e405b.tar.bz2
libglitter-cd1558586a3ea5ac019b39831a135c2d488e405b.tar.xz
Add man pages + some minor fixes
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libglitter_reorder_rasters.3')
-rw-r--r--libglitter_reorder_rasters.376
1 files changed, 76 insertions, 0 deletions
diff --git a/libglitter_reorder_rasters.3 b/libglitter_reorder_rasters.3
new file mode 100644
index 0000000..03aaf92
--- /dev/null
+++ b/libglitter_reorder_rasters.3
@@ -0,0 +1,76 @@
+.TH LIBGLITTER_REORDER_RASTERS 3 LIBGLITTER
+.SH NAME
+libglitter_reorder_rasters - Reorder rasters from the application's order to the physical order
+.SH SYNOPSIS
+.LP
+.nf
+#include <libglitter.h>
+
+void libglitter_reorder_rasters(void **\fIrasters\fP,
+ enum libglitter_colour \fIcolour1\fP,
+ enum libglitter_colour \fIcolour2\fP,
+ enum libglitter_colour \fIcolour3\fP);
+.fi
+.PP
+Link with
+.IR "-lglitter" .
+.SH DESCRIPTION
+The
+.BR libglitter_reorder_rasters (),
+function reorders a set of three rasters to the
+order desired by the
+.BR libglitter_compose_double (3)
+function and similar functions.
+.PP
+The
+.I rasters
+argument shall be a list of three rasters, in
+the order (0) red, (1) green, (2) blue. During
+the execution of the function, the function
+will reorder the elements in this list. So that
+it matches the order expected by the
+.BR libglitter_compose_double (3)
+function and similar functions, which is
+determined the mean in the values in the
+.I cellmap
+argument input to the
+.BR libglitter_create_render_context (3)
+function. These meaning of these values is
+specified via the
+.IR colour1 ,
+.IR colour2 ,
+and
+.I colour3
+parameters. The
+.IR colour1
+argument shall specify colour of subpixel
+whose index is 0
+.IR cellmap ,
+likewise the
+.IR colour2
+argument shall specify colour of subpixel
+whose index is 1
+.IR cellmap ,
+and the
+.IR colour3
+argument shall specify colour of subpixel
+whose index is 2.
+.PP
+Exactly one of
+.IR colour1 ,
+.IR colour2 ,
+and
+.I colour3
+shall be
+.IR LIBGLITTER_CHANNEL_RED ,
+exactly one shall be
+.IR LIBGLITTER_CHANNEL_GREEN ,
+and exactly one shall be
+.IR LIBGLITTER_CHANNEL_BLUE .
+.SH RETURN VALUES
+None.
+.SH ERRORS
+None.
+.SH SEE ALSO
+.BR libglitter (7),
+.BR libglitter_split_uint64_raster (3)