blob: b1a87da9fb1392004066abc16d7597eb0dc2fb81 (
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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
#N canvas 90 150 679 206 10;
#X obj 114 6 cnv 15 480 200 empty empty empty 20 12 0 14 -195568 -66577
0;
#X obj 135 86 hradio 18 1 0 4 \$0-channel \$0-channel _0__1__2__3_
0 14 0 8 -241291 -258699 -1 0;
#X obj 418 47 hsl 128 15 0 65535 0 0 \$0-brightness \$0-brightness
brightness 8 8 0 8 -260818 -1 -1 0 1;
#X obj 418 87 hsl 128 15 0 65535 0 0 \$0-hue \$0-hue hue 8 8 0 8 -260818
-1 -1 0 1;
#X obj 418 27 hsl 128 15 0 65535 0 0 \$0-contrast \$0-contrast contrast
8 8 0 8 -260818 -1 -1 0 1;
#X obj 418 107 hsl 128 15 0 65635 0 0 \$0-whiteness \$0-whiteness whiteness
8 8 0 8 -260818 -1 -1 0 1;
#N canvas 256 168 546 412 camera 0;
#X obj 20 387 outlet;
#X obj 11 9 inlet;
#X msg 160 126 contrast \$1;
#X msg 160 186 whiteness \$1;
#X msg 160 106 brightness \$1;
#X msg 160 227 channel \$1;
#X obj 270 106 r \$0-brightness;
#X obj 270 126 r \$0-contrast;
#X obj 270 186 r \$0-whiteness;
#X obj 153 276 r \$0-size;
#X obj 270 226 r \$0-channel;
#X obj 270 166 r \$0-hue;
#X msg 160 166 hue \$1;
#X msg 160 146 colour \$1;
#X obj 270 146 r \$0-colour;
#X obj 23 198 t a;
#X msg 319 382 open videodev \$1 \, get;
#X obj 318 363 rubysprintf /dev/video%d;
#X msg 160 206 frequency \$1;
#X obj 270 206 r \$0-frequency;
#X obj 318 344 r \$0-device;
#X obj 153 346 #export_list;
#X msg 153 295 list \$1;
#X msg 154 365 size \$1 \$2;
#X obj 153 314 #store ( 4 2 # 120 160 240 320 480 640 120 180 240 360
480 720 );
#X obj 12 98 rubysprintf %d-%s;
#X obj 11 117 pack s f;
#X obj 12 77 t a a;
#X msg 68 77 \$3;
#X msg 11 136 \; \$1 \$2;
#X obj 11 56 messageprepend \$0;
#X msg 160 247 tuner \$1;
#X obj 270 246 r \$0-tuner;
#X connect 1 0 30 0;
#X connect 2 0 15 0;
#X connect 3 0 15 0;
#X connect 4 0 15 0;
#X connect 5 0 15 0;
#X connect 6 0 4 0;
#X connect 7 0 2 0;
#X connect 8 0 3 0;
#X connect 9 0 22 0;
#X connect 10 0 5 0;
#X connect 11 0 12 0;
#X connect 12 0 15 0;
#X connect 13 0 15 0;
#X connect 14 0 13 0;
#X connect 15 0 0 0;
#X connect 16 0 0 0;
#X connect 17 0 16 0;
#X connect 18 0 15 0;
#X connect 19 0 18 0;
#X connect 20 0 17 0;
#X connect 21 0 23 0;
#X connect 22 0 24 0;
#X connect 23 0 0 0;
#X connect 24 0 21 0;
#X connect 25 0 26 0;
#X connect 26 0 29 0;
#X connect 27 0 25 0;
#X connect 27 1 28 0;
#X connect 28 0 26 1;
#X connect 30 0 27 0;
#X connect 31 0 15 0;
#X connect 32 0 31 0;
#X restore 117 249 pd camera;
#X msg 428 318 colorspace YUV420P;
#X obj 134 311 #yuv_to_rgb;
#X obj 418 67 hsl 128 15 0 65535 0 0 \$0-colour \$0-colour colour 8
8 0 8 -260818 -1 -1 0 1;
#X obj 252 37 vradio 15 1 0 3 \$0-size \$0-size empty 0 -6 0 8 -241291
-258699 -1 0;
#X text 270 37 120 \, 160;
#X text 270 53 240 \, 320;
#X text 270 68 480 \, 640;
#X text 250 22 select size;
#X text 135 72 select channel;
#X obj 359 28 nbx 5 14 0 65535 0 0 \$0-contrast \$0-contrast empty
0 -6 0 10 -260818 -1 -1 0 256;
#X obj 359 48 nbx 5 14 0 65535 0 0 \$0-brightness \$0-brightness empty
0 -6 0 10 -260818 -1 -1 0 256;
#X obj 359 68 nbx 5 14 0 65535 0 0 \$0-colour \$0-colour empty 0 -6
0 10 -260818 -1 -1 0 256;
#X obj 359 88 nbx 5 14 0 65535 0 0 \$0-hue \$0-hue empty 0 -6 0 10
-260818 -1 -1 0 256;
#X obj 359 108 nbx 5 14 0 65535 0 0 \$0-whiteness \$0-whiteness empty
0 -6 0 10 -260818 -1 -1 0 256;
#X msg 428 238 transfer mmap;
#X msg 428 278 transfer read;
#X msg 428 298 colorspace RGB24;
#X text 427 222 Special options:;
#X obj 90 249 #in;
#X obj 100 379 outlet image;
#X obj 136 49 hradio 18 1 0 4 \$0-device \$0-device _0__1__2__3_ 0
-4 0 8 -241291 -258699 -1 0;
#X obj 90 282 shunt 2;
#X obj 134 166 vradio 15 1 0 2 empty empty empty 0 -6 0 8 -241291 -258699
-1 0;
#X text 164 181 YUV->RGB;
#X text 164 165 no conversion;
#X obj 91 230 inlet;
#X obj 134 332 # min 255;
#X obj 134 351 # max 0;
#X msg 428 258 transfer mmap 4;
#X obj 134 131 hradio 18 1 0 4 \$0-tuner \$0-tuner _0__1__2__3_ 0 14
0 8 -241291 -258699 -1 0;
#X text 134 116 select tuner;
#X obj 418 137 hsl 128 15 0 65635 0 0 \$0-frequency \$0-frequency frequency
8 8 0 8 -62784 -44926 -44926 0 1;
#X obj 359 138 nbx 5 14 0 65535 0 0 \$0-frequency \$0-frequency empty
0 -6 0 10 -62784 -44926 -44926 0 256;
#X obj 416 339 s \$0-o;
#X obj 130 229 r \$0-o;
#X obj -89 7 cnv 15 200 60 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj -86 238 \$0;
#X obj -86 27 bng 15 250 50 0 empty empty empty 0 -6 0 8 -24198 -1
-1;
#X msg -86 257 \; \$1-device 0 \; \$1-size 1 \; \$1-channel 1;
#X text -62 28 <-- initialise camera;
#X text 132 22 select a camera;
#X text -77 85 These options provide -->;
#X text -76 100 more controls. Scroll down;
#X text -78 115 for webcams options.;
#X obj 155 276 print;
#X msg 183 226 help;
#X connect 6 0 25 0;
#X connect 7 0 40 0;
#X connect 8 0 33 0;
#X connect 21 0 40 0;
#X connect 22 0 40 0;
#X connect 23 0 40 0;
#X connect 25 0 28 0;
#X connect 25 1 6 0;
#X connect 25 1 51 0;
#X connect 28 0 26 0;
#X connect 28 1 8 0;
#X connect 29 0 28 1;
#X connect 32 0 25 0;
#X connect 33 0 34 0;
#X connect 34 0 26 0;
#X connect 35 0 40 0;
#X connect 41 0 25 0;
#X connect 43 0 45 0;
#X connect 44 0 43 0;
#X connect 52 0 25 0;
|