blind-arithm.1 - blind - suckless command-line video editing utility
 (HTM) git clone git://git.suckless.org/blind
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       blind-arithm.1 (2546B)
       ---
            1 .TH BLIND-ARITHM 1 blind
            2 .SH NAME
            3 blind-arithm - Perform simple arithmetic on a video
            4 .SH SYNOPSIS
            5 .B blind-arithm
            6 [-axyz]
            7 .I operation
            8 .IR right-hand-stream \ ...
            9 .SH DESCRIPTION
           10 .B blind-arithm
           11 reads left-hand operands from stdin, and right-hand
           12 operands from
           13 .IR right-hand-stream ,
           14 and perform the choosen
           15 .I operation
           16 over the read values and prints the resulting video
           17 to stdout.
           18 The operation with operands from the same colour
           19 parameters on the sames pixels on the same frames
           20 on the two videos.
           21 .P
           22 If stdin is longer than
           23 .IR right-hand-stream ,
           24 the remainder of stdin is printed without any changes.
           25 If stdin is shorter than
           26 .IR right-hand-stream ,
           27 the remainder of
           28 .I right-hand-stream
           29 is ignored but may be partially read.
           30 .P
           31 IF multiple
           32 .I right-hand-stream
           33 are specified, they are applied from left to right,
           34 with the exception for if        
           35 .I operation
           36 is
           37 .BR exp ,
           38 in which case they are applied from right to left with
           39 stdin applied last.
           40 .SH OPERATIONS
           41 .TP
           42 .B add
           43 Calculate the sum of the operands.
           44 .TP
           45 .B sub
           46 Subtract the right-hand operand from the left-hand operand.
           47 .TP
           48 .B mul
           49 Calculate the product of the operands.
           50 .TP
           51 .B div
           52 Divide the left-hand operand by the right-hand operand.
           53 .TP
           54 .B mod
           55 Calculate the modulus of left-hand operand and the right-hand operand.
           56 The result is always non-negative.
           57 .TP
           58 .B exp
           59 Raise the left-hand operand to the
           60 .IR n th
           61 operand, where
           62 .I n
           63 is the value of the right-hand operand.
           64 .TP
           65 .B log
           66 Calculate the logarithm of the left-hand operand
           67 and divide it by the logarithm of the rigth-hand operand.
           68 .TP
           69 .B min
           70 Select the lowest operand.
           71 .TP
           72 .B max
           73 Select the highest operand.
           74 .TP
           75 .B abs
           76 Calculate the the sum of absolute value of the left-hand
           77 operand subtracted by the right-hand operand, and the
           78 right-hand operand
           79 .SH OPTIONS
           80 .TP
           81 .B -a
           82 Do not modify the alpha channel (the fourth channel).
           83 .TP
           84 .B -x
           85 Do not modify the X channel (the first channel).
           86 .TP
           87 .B -y
           88 Do not modify the Y channel (the second channel).
           89 .TP
           90 .B -z
           91 Do not modify the Z channel (the third channel).
           92 .SH SEE ALSO
           93 .BR blind (7),
           94 .BR blind-norm (1),
           95 .BR blind-dot-product (1),
           96 .BR blind-cross-product (1),
           97 .BR blind-quaternion-product (1),
           98 .BR blind-vector-projection (1),
           99 .BR blind-spatial-mean (1),
          100 .BR blind-spatial-arithm (1),
          101 .BR blind-temporal-mean (1),
          102 .BR blind-temporal-arithm (1),
          103 .BR blind-mean (1),
          104 .BR blind-single-colour (1),
          105 .BR blind-set-alpha (1),
          106 .BR blind-set-luma (1),
          107 .BR blind-invert-luma (1),
          108 .BR blind-set-saturation (1),
          109 .BR blind-affine-colour (1)
          110 .SH AUTHORS
          111 Mattias Andrée
          112 .RI < maandree@kth.se >