aboutsummaryrefslogtreecommitdiff
path: root/doc/input_output.pd
blob: fe6ccc14749781a5d730d3f34396290c2e73ce03 (plain)
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
#N canvas 182 220 831 596 10;
#X obj 107 307 pdp_v4l;
#X obj 107 53 metro 40;
#X msg 159 14 stop;
#X msg 107 14 bang;
#X msg 51 14 bang;
#X obj 107 538 pdp_xv;
#X msg 209 93 open /dev/video0;
#X msg 209 117 open /dev/video1;
#X text 347 95 you can choose the input device using the 'open' message.
the default is /dev/video0;
#X msg 209 142 close;
#X text 348 143 closes the video port;
#X msg 209 168 type yv12;
#X msg 209 192 type grey;
#X text 348 171 type sets the ouput image package type. currently only
yv12 (luma/chroma color) and greyscale are supported.;
#X msg 210 221 dim 320 240;
#X msg 210 244 dim 640 480;
#X text 348 215 dim sets the dimensions of the captured frame. please
note that in all objects dimensions and packet type (color/greyscale)
have to be the same to be combined (i.e. mixed);
#X msg 210 433 dim 320 240;
#X msg 210 456 dim 640 480;
#X text 349 436 dim sets the window dimensions;
#X msg 210 387 create;
#X msg 210 408 destroy;
#X text 208 324 pdp_xv ouputs video in a window using the xVideo extension.
if your graphics card/driver supports it you can have multiple output
windows. if a pdp message is received and a window is not open \, one
is created automaticly.;
#X text 349 390 use these messages to explicitly create/destroy the
window;
#X text 207 18 pdp_v4l grabs video from the video4linux device. it
grabs a frame whenever a bang message is received. the output rate
is limited by the maximum framerate of the video device. if there is
no device opened \, it will attempt to open /dev/video0;
#X connect 0 0 5 0;
#X connect 1 0 0 0;
#X connect 2 0 1 0;
#X connect 3 0 1 0;
#X connect 4 0 0 0;
#X connect 6 0 0 0;
#X connect 7 0 0 0;
#X connect 9 0 0 0;
#X connect 11 0 0 0;
#X connect 12 0 0 0;
#X connect 14 0 0 0;
#X connect 15 0 0 0;
#X connect 17 0 5 0;
#X connect 18 0 5 0;
#X connect 20 0 5 0;
#X connect 21 0 5 0;