aboutsummaryrefslogtreecommitdiffstats
path: root/man/blind-arithm.1
blob: 048fa0a699aaca013bff5141b519005382fbbd38 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
.TH BLIND-ARITHM 1 blind
.SH NAME
blind-arithm - Perform simple arithmetic on a video
.SH SYNOPSIS
.B blind-arithm
[-axyz]
.I operation
.I right-hand-stream
.SH DESCRIPTION
.B blind-arithm
reads left-hand operands from stdin, and right-hand
operands from
.IR right-hand-stream ,
and perform the choosen
.I operation
over the read values and prints the resulting video
to stdout.
The operation with operands from the same colour
parameters on the sames pixels on the same frames
on the two videos.
.P
If stdin is longer than
.IR right-hand-stream ,
the remainder or stdin is printed without any changes.
If stdin is shorter than
.IR right-hand-stream ,
the remainder of
.I right-hand-stream
is ignored but may be partially read.
.SH OPERATIONS
.TP
.B add
Calculate the sum of the operands.
.TP
.B sub
Subtract the right-hand operand from the left-hand operand.
.TP
.B mul
Calculate the product of the operands.
.TP
.B div
Divide the left-hand operand by the right-hand operand.
.TP
.B exp
Raise the left-hand operand to the
.IR n th
operand, where
.I n
is the value of the right-hand operand.
.TP
.B log
Calculate the logarithm of the left-hand operand
and divid it by the logarithm of the rigth-hand operand.
.TP
.B min
Select the lowest operand.
.TP
.B max
Select the highest operand.
.SH OPTIONS
.TP
.B -a
Do not modify the alpha channel (the fourth channel).
.TP
.B -x
Do not modify the X channel (the first channel).
.TP
.B -y
Do not modify the Y channel (the second channel).
.TP
.B -z
Do not modify the Z channel (the third channel).
.SH SEE ALSO
.BR blind (7),
.BR blind-single-colour (1),
.BR blind-set-alpha (1),
.BR blind-set-luma (1),
.BR blind-invert-luma (1),
.BR blind-set-saturation (1)
.SH AUTHORS
Mattias Andrée
.RI < maandree@kth.se >