aboutsummaryrefslogtreecommitdiffstats
path: root/LIBCOLOUR_YPBPR.7
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-06-08 00:06:26 +0200
committerMattias Andrée <maandree@kth.se>2017-06-08 00:06:26 +0200
commit71abbdaeb1bca1c62bbae4cb4d5ccbc1ecea014e (patch)
tree1cb49119012e5aa87355d3576d64588b8f6efd53 /LIBCOLOUR_YPBPR.7
parentAdd libcolour.7 and macros for testing existance of definitions (diff)
downloadlibcolour-71abbdaeb1bca1c62bbae4cb4d5ccbc1ecea014e.tar.gz
libcolour-71abbdaeb1bca1c62bbae4cb4d5ccbc1ecea014e.tar.bz2
libcolour-71abbdaeb1bca1c62bbae4cb4d5ccbc1ecea014e.tar.xz
Add man pages for most colour models
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'LIBCOLOUR_YPBPR.7')
-rw-r--r--LIBCOLOUR_YPBPR.766
1 files changed, 66 insertions, 0 deletions
diff --git a/LIBCOLOUR_YPBPR.7 b/LIBCOLOUR_YPBPR.7
new file mode 100644
index 0000000..380e1e4
--- /dev/null
+++ b/LIBCOLOUR_YPBPR.7
@@ -0,0 +1,66 @@
+.TH LIBCOLOUR_YPBPR 7 libcolour
+.SH NAME
+LIBCOLOUR_YPBPR - YPbPr
+.SH DESCRIPTION
+YPbPr [the \(aqb\(a and the \(aqr\(aq should be in subscript and capitalised]
+colours are presented with either of
+.nf
+
+ \fBtypedef struct libcolour_ypbpr_f libcolour_ypbpr_f_t;\fP
+ \fBtypedef struct libcolour_ypbpr_lf libcolour_ypbpr_lf_t;\fP
+ \fBtypedef struct libcolour_ypbpr_llf libcolour_ypbpr_llf_t;\fP
+
+.fi
+These
+.BR struct s
+use
+.BR float ,
+.BR double ,
+and
+.BR long\ double ,
+respecitively, for the values stored in them,
+and are otherwise identical.
+.B struct libcolour_ypbpr_f
+is defined as
+.nf
+
+ \fBstruct libcolour_ypbpr_f {\fP
+ \fBenum libcolour_model\fP \fImodel\fP\fB;\fP
+ \fBfloat\fP \fIY\fP\fB;\fP
+ \fBfloat\fP \fIPb\fP\fB;\fP
+ \fBfloat\fP \fIPr\fP\fB;\fP
+ \fB};\fP
+
+.fi
+.I .model
+shall be set to
+.BR LIBCOLOUR_YPBPR .
+In
+.BR union\ libcolour_colour_f ,
+.BR union\ libcolour_colour_lf ,
+and
+.BR union\ libcolour_colour_llf ,
+.I .ypbpr
+is used for YPbPr colours.
+.P
+.IR .Y ,
+.IR .Pb ,
+and
+.I .Pr
+hold the Y (luma), Pb [the \(aqb\(aq should be in
+subscript and capitalised], and Pr [the \(aqr\(aq
+should be in subscript and capitalised] values,
+respectively.
+.P
+Y is 0 in black and 1 in white.
+Pb is the difference between Y and blue.
+Pr is the difference between Y and red.
+.P
+YPbPr is additive, since it is linearly isomorphic
+to CIE 1931 XYZ. It's white point is the
+CIE Standard Illuminant D65.
+.SH SEE ALSO
+.BR libcolour (7)
+.SH AUTHORS
+Mattias Andrée
+.RI < maandree@kth.se >