aboutsummaryrefslogtreecommitdiffstats
path: root/libglitter_split_uint64_raster.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_split_uint64_raster.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_split_uint64_raster.3')
-rw-r--r--libglitter_split_uint64_raster.367
1 files changed, 67 insertions, 0 deletions
diff --git a/libglitter_split_uint64_raster.3 b/libglitter_split_uint64_raster.3
new file mode 100644
index 0000000..001b279
--- /dev/null
+++ b/libglitter_split_uint64_raster.3
@@ -0,0 +1,67 @@
+.TH LIBGLITTER_SPLIT_*_RASTER 3 LIBGLITTER
+.SH NAME
+libglitter_split_*_raster - Split an integer raster into mutliple rasters with narrower integers
+.SH SYNOPSIS
+.LP
+.nf
+#include <libglitter.h>
+
+void libglitter_split_uint64_raster(uint16_t *\fIrasters\fP[3], uint16_t **\fIalphap\fP, uint64_t *\fIraster\fP,
+ uint64_t \fIred\fP, uint64_t \fIgreen\fP, uint64_t \fIblue\fP);
+
+void libglitter_split_uint32_raster(uint8_t *\fIrasters\fP[3], uint8_t **\fIalphap\fP, uint32_t *\fIraster\fP,
+ uint32_t \fIred\fP, uint32_t \fIgreen\fP, uint32_t \fIblue\fP);
+.fi
+.PP
+Link with
+.IR "-lglitter" .
+.SH DESCRIPTION
+The
+.BR libglitter_split_uint64_raster ()
+and
+.BR libglitter_split_uint32_raster ()
+functions split the colour raster input in to the
+.I raster
+parameter into four intensity rasters, and output
+the raster for the red channel to
+.IR rasters[0] ,
+the raster for the green channel to
+.IR rasters[1] ,
+and the raster for the blue channel to
+.IR rasters[2] ,
+and unless
+.I alphap
+is null, it also outputs the alpha raster to
+.IR *alphap .
+.PP
+For the
+.BR libglitter_split_uint64_raster ()
+function,
+.I red
+shall be the value
+.I 0xFFFF
+shifted to make out a colour that is pure
+primary red,
+.I green
+shall be the value
+.I 0xFFFF
+shifted to make out a colour that is pure
+primary green, and
+.I blue
+shall be the value
+.I 0xFFFF
+shifted to make out a colour that is pure
+primary blue.
+For the
+.BR libglitter_split_uint32_raster ()
+function, the value
+.I 0xFF
+is used rather than
+.IR 0xFFFF .
+.SH RETURN VALUES
+None.
+.SH ERRORS
+None.
+.SH SEE ALSO
+.BR libglitter (7),
+.BR libglitter_reorder_rasters (3)