aboutsummaryrefslogtreecommitdiffstats
path: root/man/blind-apply-kernel.1
blob: f09cc6ee1f6cee0ea56d8038cb724d2b3d276f8b (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
.TH BLIND-APPLY-KERNEL 1 blind
.SH NAME
blind-apply-kernel - Apply a convolution matrix to a video
.SH SYNOPSIS
.B blind-apply-kernel
[-apPxy]
.I kernel-stream
.SH DESCRIPTION
.B blind-apply-kernel
reads a video from stdin and a convolution matrix video
from
.I kernel-stream
and apply the convolution matrix in each frame the
same frame in stdin, and prints the resulting video
to stdout.
.SH OPTIONS
.TP
.B -a
Used to optimise performance if it is known that
the video is opaque, and to ensure that the output
video is opaque.
.TP
.B -p
Each frame in
.I kernel-stream
shall contain one matrix per pixel in a frame in
stdin. The width of
.I kernel-stream
shall be a multiple of the width of stdin, the width
shall be the width of stdin multiplied by the width
of the convolution matrix. The height of
.I kernel-stream
shall be a multiple of the height of stdin, the
height shall be the height of stdin multiplied by the
height of the convolution matrix.
.TP
.B -P
Apply the convolution with first premultiplying
the alpha channel.
.TP
.B -x
When encountering the left or right edge of the video,
wrap around to the opposite edge.
.TP
.B -y
When encountering the upper or lower edge of the video,
wrap around to the opposite edge.
.SH REQUIREMENTS
.B blind-apply-kernel
requires enough free memory to load two full frames
from stdin and one full frame from
.I kernel-stream
into memory. However, if
.I -p
is used, the height of
.I kernel-stream
divide by the height of stdin number of rows from
.I kernel-stream
rather than a full frame from
.I kernel-stream
is loaded into memory.
A frame or row requires 32 bytes per pixel it contains.
.SH SEE ALSO
.BR blind (7),
.BR blind-make-kernel (1),
.BR blind-gauss-blur (1)
.SH AUTHORS
Mattias Andrée
.RI < maandree@kth.se >