diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-01-21 13:29:56 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-01-21 13:29:56 +0100 |
| commit | b9a4db7fb997ef7c665bfccb992503d04f03f924 (patch) | |
| tree | f3c9c21bde29a09356c902b960ff8caecb16aa3b | |
| parent | Add man pages (diff) | |
| download | blind-b9a4db7fb997ef7c665bfccb992503d04f03f924.tar.gz blind-b9a4db7fb997ef7c665bfccb992503d04f03f924.tar.bz2 blind-b9a4db7fb997ef7c665bfccb992503d04f03f924.tar.xz | |
Add blind-colour-ciexyz
Signed-off-by: Mattias Andrée <maandree@kth.se>
| -rw-r--r-- | Makefile | 1 | ||||
| -rw-r--r-- | man/blind-colour-ciexyz.1 | 26 | ||||
| -rw-r--r-- | man/blind-colour-srgb.1 | 9 | ||||
| -rw-r--r-- | man/blind-single-colour.1 | 7 | ||||
| -rw-r--r-- | src/blind-colour-ciexyz.c | 23 |
5 files changed, 65 insertions, 1 deletions
@@ -3,6 +3,7 @@ include $(CONFIGFILE) BIN =\ blind-arithm\ + blind-colour-ciexyz\ blind-colour-srgb\ blind-concat\ blind-crop\ diff --git a/man/blind-colour-ciexyz.1 b/man/blind-colour-ciexyz.1 new file mode 100644 index 0000000..17d3b37 --- /dev/null +++ b/man/blind-colour-ciexyz.1 @@ -0,0 +1,26 @@ +.TH BLIND-COLOUR-CIEXYZ 1 blind +.SH NAME +blind-colour-ciexyz - Convert CIE XYZ for use with blind-single-colour(1) +.SH SYNOPSIS +.B blind-colour-ciexyz +.RI ( X +.I Y +.I Z +| +.IR Y ) +.SH DESCRIPTION +.B blind-colour-ciexyz +prints the given input as is. If +.BR blind-single-colour (1) +is modified in the future to use another colour model +than CIE XYZ, +.B blind-colour-ciexyz +will be modified to convert the values to +that colour model. If only +.I Y +is specified, the colour will be CIE Standard Illuminant D65-grey +with a luminosity of +.IR Y . +.SH AUTHORS +Mattias Andree +.RI < maandree@kth.se > diff --git a/man/blind-colour-srgb.1 b/man/blind-colour-srgb.1 index 83817d3..960e864 100644 --- a/man/blind-colour-srgb.1 +++ b/man/blind-colour-srgb.1 @@ -1,6 +1,6 @@ .TH BLIND-COLOUR-SRGB 1 blind .SH NAME -blind-colour-srgb - Convert sRGB to CIE XYZ +blind-colour-srgb - Convert sRGB for use with blind-single-colour(1) .SH SYNOPSIS .B blind-colour-srgb [-d @@ -19,6 +19,13 @@ and values to CIE XYZ and prints the result to stdout in plain text, such that it can be used with .BR blind-single-colour (1). +If +.BR blind-single-colour (1) +is modified in the future to use another colour +model than CIE XYZ, +.B blind-colour-srgb +will be modified to convert the values into +that colour model. .P .IR red , .IR green , diff --git a/man/blind-single-colour.1 b/man/blind-single-colour.1 index 4d26827..236a6d3 100644 --- a/man/blind-single-colour.1 +++ b/man/blind-single-colour.1 @@ -55,6 +55,13 @@ The width of the video, in pixels. .TP .BR -h " "\fIheight\fP The height of the video, in pixels. +.SH NOTES +.B blind-single-colour +may be changed in the future to use some other colour model, +therefore, it is recommended to also use +.BR blind-colour-ciexyz (1) +if you are specifying the colour in CIE XYZ. If however +your values are colour space-agnostic, you should not. .SH AUTHORS Mattias Andree .RI < maandree@kth.se > diff --git a/src/blind-colour-ciexyz.c b/src/blind-colour-ciexyz.c new file mode 100644 index 0000000..018ef54 --- /dev/null +++ b/src/blind-colour-ciexyz.c @@ -0,0 +1,23 @@ +/* See LICENSE file for copyright and license details. */ +#include "util.h" + +USAGE("(X Y Z | Y)") + +int +main(int argc, char *argv[]) +{ + ARGBEGIN { + default: + usage(); + } ARGEND; + + if (argc == 1) + printf("%s\n", argv[0]); + else if (argc == 3) + printf("%s %s %s\n", argv[0], argv[1], argv[2]); + else + usage(); + + efshut(stdout, "<stdout>"); + return 0; +} |
