blob: fa9abd33b95b7d9e66d74c0580d431e973a4571f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
.TH BLIND-INVERT-LUMA 1 blind
.SH NAME
blind-invert-luma - Invert the luminosity of a video
.SH SYNOPSIS
.B blind-invert-luma
[-iw]
.I mask-stream
.SH DESCRIPTION
.B blind-invert-luma
reads a video from stdin and a mask video from
.IR mask-stream .
The video is printed to stdout, with the luminosity
inverted where, in
.IR mask-stream ,
the product of the luminosity and the alpha value is
1, and unchanged where the product is 0. For other
products, the result is linearly interpolated or
linearly extrapolated.
.P
If stdin is longer than
.IR mask-stream ,
the remainder or stdin is printed without any changes.
If stdin is shorter than
.IR mask-stream ,
the remainder of
.I mask-stream
is ignored but may be partially read.
.SH OPTIONS
.TP
.B -i
Invert the luminosity in
.I mask-stream
before calculating the product of the luminosity and
the alpha value.
.TP
.B -w
Instead of using CIE Standard Illuminant D65 as the
whitepoint, use the X and Z from each pixel in
.I mask-stream
for the whitepoint.
.SH SEE ALSO
.BR blind-single-colour (1),
.BR blind-arithm (1),
.BR blind-set-alpha (1),
.BR blind-set-luma (1),
.BR blind-set-saturation (1)
.SH AUTHORS
Mattias Andrée
.RI < maandree@kth.se >
|