[Gridflow-cvs] [svn] commit: r3845 - in /trunk: abstractions/#camera.pd format/videodev.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Tue Jun 10 15:32:57 EDT 2008


Author: matju
Date: Tue Jun 10 15:32:57 2008
New Revision: 3845

Log:
show minimum and maximum frame size

Modified:
    trunk/abstractions/#camera.pd
    trunk/format/videodev.c

Modified: trunk/abstractions/#camera.pd
==============================================================================
--- trunk/abstractions/#camera.pd (original)
+++ trunk/abstractions/#camera.pd Tue Jun 10 15:32:57 2008
@@ -1,91 +1,105 @@
-#N canvas 661 64 423 331 10;
+#N canvas 737 70 423 331 10;
 #X obj 81 32 cnv 15 184 68 empty empty empty 20 12 0 14 -233017 -66577
 0;
 #X obj 143 35 hradio 12 1 0 4 \$0-s_channel \$0-channel _0_1_2_3 -2
 7 1 10 -233017 -195568 -195568 0;
-#N canvas 275 0 811 539 camera 0;
-#X obj 270 510 outlet;
-#X obj 11 9 inlet;
-#X obj 23 198 t a;
-#X msg 579 420 open videodev \$1 \, get;
-#X msg 633 273 size \$1 \$2;
-#X obj 558 8 r \$0-size0;
-#X msg 633 8 120 160;
-#X msg 633 27 120 180;
-#X obj 558 27 r \$0-size1;
-#X msg 633 46 240 320;
-#X msg 633 65 240 360;
-#X obj 558 46 r \$0-size2;
-#X obj 558 65 r \$0-size3;
-#X obj 558 84 r \$0-size4;
-#X obj 558 103 r \$0-size5;
-#X msg 633 84 480 640;
-#X msg 633 103 480 720;
-#X obj 558 122 r \$0-size6;
-#X obj 558 141 r \$0-size7;
-#X msg 633 122 576 720;
-#X msg 633 141 288 352;
-#X obj 633 168 unpack 0 0;
-#X obj 728 187 s \$0-width;
-#X obj 633 187 s \$0-height;
-#X obj 633 235 #pack;
-#X obj 633 254 #export_list;
-#X obj 579 401 makefilename /dev/video%d;
-#X obj 45 419 spigot;
-#X obj 660 330 args (device a -1);
-#X obj 660 311 loadbang;
-#X obj 660 368 s \$0-device;
-#X obj 45 441 route pwc;
-#X msg 45 460 pwc \$1 \, get;
-#X obj 11 28 list split 1;
-#X obj 11 47 makefilename \$0-%s;
-#X obj 11 104 s;
-#X obj 11 85 list;
-#X obj 11 66 t b s;
-#X obj 559 368 range 8 9;
-#X obj 660 349 mod 10;
-#X msg 622 445 open dc1394 \, get;
-#X obj 351 287 listfind y yuv rgb magic;
-#X obj 351 344 listread y yuv rgb magic;
-#X msg 351 363 colorspace \$1;
-#X obj 141 66 list prepend;
-#X obj 141 85 list trim;
-#X obj 134 174 foreach;
-#X obj 134 193 makefilename \$0-%s;
-#X msg 134 212 \; \$1 color 10 20 20;
-#X msg 2 123 \; \$1 color 18 17 22;
-#X obj 95 330 t b a b b;
-#X obj 351 306 s \$0-colorspace_e;
-#X obj 351 325 r \$0-s_colorspace_e;
-#X obj 633 207 r \$0-s_height;
-#X obj 728 207 r \$0-s_width;
-#X obj 559 349 r \$0-s_device;
-#X obj 540 183 r \$0-size;
-#X msg 136 398 0;
-#X msg 96 386 1;
-#X obj 540 202 route2 color;
-#X obj 540 221 s \$0-sizec;
-#X obj 531 243 s \$0-width;
-#X obj 521 263 s \$0-height;
-#X obj 331 265 route2 color;
-#X obj 331 246 r \$0-colorspace;
-#X msg 134 116 list channel tuner frequency brightness contrast colour
+#N canvas 275 0 906 578 camera 0;
+#X obj 310 510 outlet;
+#X obj 51 9 inlet;
+#X obj 63 198 t a;
+#X msg 700 458 open videodev \$1 \, get;
+#X msg 673 309 size \$1 \$2;
+#X obj 598 8 r \$0-size0;
+#X msg 673 8 120 160;
+#X msg 673 27 120 180;
+#X obj 598 27 r \$0-size1;
+#X msg 673 46 240 320;
+#X msg 673 65 240 360;
+#X obj 598 46 r \$0-size2;
+#X obj 598 65 r \$0-size3;
+#X obj 598 84 r \$0-size4;
+#X obj 598 103 r \$0-size5;
+#X msg 673 84 480 640;
+#X msg 673 103 480 720;
+#X obj 598 122 r \$0-size6;
+#X obj 598 141 r \$0-size7;
+#X msg 673 122 576 720;
+#X msg 673 141 288 352;
+#X obj 673 204 unpack 0 0;
+#X obj 768 223 s \$0-width;
+#X obj 673 223 s \$0-height;
+#X obj 673 271 #pack;
+#X obj 673 290 #export_list;
+#X obj 700 439 makefilename /dev/video%d;
+#X obj 85 419 spigot;
+#X obj 756 375 args (device a -1);
+#X obj 756 356 loadbang;
+#X obj 756 413 s \$0-device;
+#X obj 85 441 route pwc;
+#X msg 85 460 pwc \$1 \, get;
+#X obj 51 28 list split 1;
+#X obj 51 47 makefilename \$0-%s;
+#X obj 51 104 s;
+#X obj 51 85 list;
+#X obj 51 66 t b s;
+#X obj 656 417 range 8 9;
+#X obj 756 394 mod 10;
+#X msg 743 483 open dc1394 \, get;
+#X obj 391 287 listfind y yuv rgb magic;
+#X obj 391 344 listread y yuv rgb magic;
+#X msg 391 363 colorspace \$1;
+#X obj 181 66 list prepend;
+#X obj 181 85 list trim;
+#X obj 174 174 foreach;
+#X obj 174 193 makefilename \$0-%s;
+#X msg 174 212 \; \$1 color 10 20 20;
+#X msg 42 163 \; \$1 color 18 17 22;
+#X obj 135 330 t b a b b;
+#X obj 391 306 s \$0-colorspace_e;
+#X obj 391 325 r \$0-s_colorspace_e;
+#X obj 673 243 r \$0-s_height;
+#X obj 768 243 r \$0-s_width;
+#X obj 656 368 r \$0-s_device;
+#X obj 580 186 r \$0-size;
+#X msg 176 398 0;
+#X msg 136 386 1;
+#X obj 580 205 route2 color;
+#X obj 580 224 s \$0-sizec;
+#X obj 571 243 s \$0-width;
+#X obj 561 263 s \$0-height;
+#X obj 371 265 route2 color;
+#X obj 371 246 r \$0-colorspace;
+#X msg 174 116 list channel tuner frequency brightness contrast colour
 hue whiteness white_mode white_red white_blue white_speed white_delay
 auto_gain framerate noise_reduction compression pwc size colorspace
 norm;
-#X obj 497 503 s \$0-title;
-#X msg 497 484 label \$1;
-#X obj 141 8 receives \$0-s_ channel tuner frequency brightness contrast
+#X obj 635 538 s \$0-title;
+#X msg 635 519 label \$1;
+#X obj 563 481 r \$0-name;
+#X obj 563 500 route color;
+#X msg 259 392 close;
+#X msg 259 413 label No_camera_selected;
+#X msg 339 181 label Unknown_camera;
+#X obj 339 200 s \$0-title;
+#X obj 181 8 receives \$0-s_ channel tuner frequency brightness contrast
 colour hue whiteness white_mode white_red white_blue white_speed white_delay
 auto_gain framerate noise_reduction compression pwc size colorspace
 norm;
-#X obj 425 446 r \$0-name;
-#X obj 425 465 route color;
-#X obj 516 465 print NAME;
-#X msg 219 392 close;
-#X msg 219 413 label No_camera_selected;
-#X msg 299 181 label Unknown_camera;
-#X obj 299 200 s \$0-title;
+#X obj -17 124 route minsize maxsize;
+#X obj 731 8 r \$0-minsize;
+#X obj 731 46 unpack 0 0;
+#X obj 796 65 s \$0-minwidth;
+#X obj 731 84 s \$0-minheight;
+#X obj 731 141 unpack 0 0;
+#X obj 731 103 r \$0-maxsize;
+#X obj 731 179 s \$0-maxheight;
+#X obj 796 160 s \$0-maxwidth;
+#X obj 731 27 route list;
+#X obj 731 122 route list;
+#X obj 393 522 s \$0-minsize;
+#X msg 393 501 0 0;
+#X obj 403 542 s \$0-maxsize;
+#X obj 656 387 t a b;
 #X connect 1 0 33 0;
 #X connect 2 0 27 0;
 #X connect 3 0 50 0;
@@ -120,13 +134,13 @@
 #X connect 33 0 34 0;
 #X connect 33 1 36 1;
 #X connect 34 0 37 0;
-#X connect 34 0 49 0;
+#X connect 34 0 75 0;
 #X connect 36 0 35 0;
 #X connect 37 0 36 0;
 #X connect 37 1 35 1;
 #X connect 38 0 26 0;
 #X connect 38 1 40 0;
-#X connect 38 2 72 0;
+#X connect 38 2 70 0;
 #X connect 39 0 30 0;
 #X connect 40 0 50 0;
 #X connect 41 0 51 0;
@@ -139,12 +153,12 @@
 #X connect 50 0 58 0;
 #X connect 50 1 0 0;
 #X connect 50 2 65 0;
-#X connect 50 2 74 0;
+#X connect 50 2 72 0;
 #X connect 50 3 57 0;
 #X connect 52 0 42 0;
 #X connect 53 0 24 0;
 #X connect 54 0 24 1;
-#X connect 55 0 38 0;
+#X connect 55 0 89 0;
 #X connect 56 0 59 0;
 #X connect 57 0 27 1;
 #X connect 58 0 27 1;
@@ -157,15 +171,28 @@
 #X connect 64 0 63 0;
 #X connect 65 0 46 0;
 #X connect 67 0 66 0;
-#X connect 68 0 44 0;
-#X connect 68 1 44 1;
-#X connect 69 0 70 0;
-#X connect 69 0 71 0;
-#X connect 70 1 67 0;
-#X connect 72 0 50 0;
+#X connect 68 0 69 0;
+#X connect 69 1 67 0;
+#X connect 70 0 50 0;
+#X connect 70 0 71 0;
+#X connect 70 0 87 0;
+#X connect 71 0 66 0;
 #X connect 72 0 73 0;
-#X connect 73 0 66 0;
-#X connect 74 0 75 0;
+#X connect 74 0 44 0;
+#X connect 74 1 44 1;
+#X connect 75 2 49 0;
+#X connect 76 0 84 0;
+#X connect 77 0 79 0;
+#X connect 77 1 78 0;
+#X connect 80 0 82 0;
+#X connect 80 1 83 0;
+#X connect 81 0 85 0;
+#X connect 84 0 77 0;
+#X connect 85 0 80 0;
+#X connect 87 0 86 0;
+#X connect 87 0 88 0;
+#X connect 89 0 38 0;
+#X connect 89 1 87 0;
 #X restore 34 371 pd camera;
 #X obj 7 390 outlet image;
 #X obj 7 333 inlet;
@@ -182,83 +209,80 @@
 0;
 #X text 9 33 device:;
 #X obj 11 51 vradio 15 1 0 10 \$0-s_device \$0-device empty 0 -6 0
-8 -241291 -1 -1 9;
+8 -241291 -1 -1 0;
 #X obj 81 106 cnv 15 184 172 empty empty empty 20 12 0 14 -233017 -66577
 0;
 #X obj 133 120 hsl 129 12 0 65535 0 0 \$0-s_brightness \$0-brightness
-brightness 4 7 1 10 -233017 -195568 -195568 3500 0;
+brightness 4 7 1 10 -62784 -44926 -1 8700 0;
 #X obj 133 144 hsl 129 12 0 65535 0 0 \$0-s_hue \$0-hue hue 4 7 1 10
--233017 -195568 -195568 12800 0;
+-62784 -44926 -1 12800 0;
 #X obj 133 108 hsl 129 12 0 65535 0 0 \$0-s_contrast \$0-contrast contrast
-4 7 1 10 -233017 -195568 -195568 12600 0;
+4 7 1 10 -62784 -44926 -1 12600 0;
 #X obj 133 156 hsl 129 12 0 65535 0 0 \$0-s_whiteness \$0-whiteness
-whiteness 4 7 1 10 -233017 -195568 -195568 12400 0;
+whiteness 4 7 1 10 -62784 -44926 -1 5600 0;
 #X obj 133 132 hsl 129 12 0 65535 0 0 \$0-s_colour \$0-colour colour
-4 7 1 10 -233017 -195568 -195568 12787 0;
+4 7 1 10 -62784 -44926 -1 12787 0;
 #X obj 83 108 nbx 5 12 0 65535 0 0 \$0-s_contrast \$0-contrast empty
-4 7 1 10 -233017 -195568 -195568 64512 256;
+4 7 1 10 -62784 -44926 -1 64512 256;
 #X obj 83 120 nbx 5 12 0 65535 0 0 \$0-s_brightness \$0-brightness
-empty 4 7 1 10 -233017 -195568 -195568 17920 256;
+empty 4 7 1 10 -62784 -44926 -1 44544 256;
 #X obj 83 132 nbx 5 12 0 65535 0 0 \$0-s_colour \$0-colour empty 4
-7 1 10 -233017 -195568 -195568 65468 256;
+7 1 10 -62784 -44926 -1 65468 256;
 #X obj 83 144 nbx 5 12 0 65535 0 0 \$0-s_hue \$0-hue empty 4 7 1 10
--233017 -195568 -195568 65535 256;
+-62784 -44926 -1 65535 256;
 #X obj 83 156 nbx 5 12 0 65535 0 0 \$0-s_whiteness \$0-whiteness empty
-4 7 1 10 -233017 -195568 -195568 63488 256;
-#X obj 270 165 cnv 15 144 170 empty empty empty 20 12 0 14 -233017
+4 7 1 10 -62784 -44926 -1 28672 256;
+#X obj 270 215 cnv 15 144 120 empty empty empty 20 12 0 14 -233017
 -66577 0;
-#X obj 270 32 cnv 15 144 128 empty empty empty 20 12 0 14 -233017 -66577
+#X obj 270 32 cnv 15 144 178 empty empty empty 20 12 0 14 -233017 -66577
 0;
-#X obj 308 48 nbx 5 14 -1e+37 1e+37 0 0 \$0-s_height \$0-height empty
+#X obj 312 68 nbx 5 14 -1e+37 1e+37 0 0 \$0-s_height \$0-height empty
 0 -6 1 10 -233017 -195568 -195568 0 256;
-#X obj 356 48 nbx 5 14 -1e+37 1e+37 0 0 \$0-s_width \$0-width empty
+#X obj 360 68 nbx 5 14 -1e+37 1e+37 0 0 \$0-s_width \$0-width empty
 0 -6 1 10 -233017 -195568 -195568 0 256;
-#X text 271 47 size:;
-#X text 307 31 height;
-#X text 357 31 width;
-#X msg 283 274 transfer mmap;
-#X msg 283 308 transfer read;
-#X text 283 258 Special options:;
-#X msg 283 291 transfer mmap 4;
+#X text 275 67 size:;
+#X text 311 31 height;
+#X text 361 31 width;
+#X msg 297 312 transfer mmap 4;
 #X obj 258 343 s \$0-o;
-#X obj 325 95 bng 12 250 50 0 \$0-size0 \$0-sizec 120x160 -46 6 1 10
--233017 -195568 -195568;
-#X obj 340 95 bng 12 250 50 0 \$0-size1 \$0-sizec 120x180 16 6 1 10
--233017 -195568 -195568;
-#X obj 325 107 bng 12 250 50 0 \$0-size2 \$0-sizec 240x320 -46 6 1
+#X obj 329 125 bng 12 250 50 0 \$0-size0 \$0-sizec 120x160 -46 6 1
 10 -233017 -195568 -195568;
-#X obj 340 107 bng 12 250 50 0 \$0-size3 \$0-sizec 240x360 16 6 1 10
--233017 -195568 -195568;
-#X obj 325 119 bng 12 250 50 0 \$0-size4 \$0-sizec 480x640 -46 6 1
+#X obj 344 125 bng 12 250 50 0 \$0-size1 \$0-sizec 120x180 16 6 1 10
+-233017 -195568 -195568;
+#X obj 329 137 bng 12 250 50 0 \$0-size2 \$0-sizec 240x320 -46 6 1
 10 -233017 -195568 -195568;
-#X obj 340 119 bng 12 250 50 0 \$0-size5 \$0-sizec 480x720 16 6 1 10
--233017 -195568 -195568;
-#X obj 340 131 bng 12 250 50 0 \$0-size6 \$0-sizec 576x720 16 6 1 10
--233017 -195568 -195568;
-#X obj 340 143 bng 12 250 50 0 \$0-size7 \$0-sizec 288x352 16 6 1 10
--233017 -195568 -195568;
-#X obj 356 62 nbx 5 14 -1e+37 1e+37 0 0 \$0-s_framerate \$0-framerate
+#X obj 344 137 bng 12 250 50 0 \$0-size3 \$0-sizec 240x360 16 6 1 10
+-233017 -195568 -195568;
+#X obj 329 149 bng 12 250 50 0 \$0-size4 \$0-sizec 480x640 -46 6 1
+10 -233017 -195568 -195568;
+#X obj 344 149 bng 12 250 50 0 \$0-size5 \$0-sizec 480x720 16 6 1 10
+-233017 -195568 -195568;
+#X obj 344 161 bng 12 250 50 0 \$0-size6 \$0-sizec 576x720 16 6 1 10
+-233017 -195568 -195568;
+#X obj 344 173 bng 12 250 50 0 \$0-size7 \$0-sizec 288x352 16 6 1 10
+-233017 -195568 -195568;
+#X obj 360 192 nbx 5 14 -1e+37 1e+37 0 0 \$0-s_framerate \$0-framerate
 empty 0 -6 1 10 -233017 -195568 -195568 30 256;
 #X obj 133 204 hsl 129 12 0 65535 0 0 \$0-s_white_blue \$0-white_blue
-white_blue 4 7 1 10 -233017 -195568 -195568 0 0;
+white_blue 4 7 1 10 -233017 -195568 -195568 3050 0;
 #X obj 83 204 nbx 5 12 0 65535 0 0 \$0-s_white_blue \$0-white_blue
-empty 4 7 1 10 -233017 -195568 -195568 0 256;
+empty 4 7 1 10 -233017 -195568 -195568 15616 256;
 #X obj 133 192 hsl 129 12 0 65535 0 0 \$0-s_white_red \$0-white_red
-white_red 4 7 1 10 -233017 -195568 -195568 0 0;
+white_red 4 7 1 10 -233017 -195568 -195568 2800 0;
 #X obj 83 192 nbx 5 12 0 65535 0 0 \$0-s_white_red \$0-white_red empty
-4 7 1 10 -233017 -195568 -195568 0 256;
+4 7 1 10 -233017 -195568 -195568 14336 256;
 #X obj 83 180 tgl 12 0 \$0-s_white_mode \$0-white_mode manual_white_balance
-20 7 1 10 -233017 -195568 -195568 0 1;
+20 7 1 10 -233017 -195568 -195568 1 1;
 #X obj 133 228 hsl 129 12 0 65535 0 0 \$0-s_white_delay \$0-white_delay
-white_delay 4 7 1 10 -233017 -195568 -195568 0 0;
+white_delay 4 7 1 10 -233017 -195568 -195568 5000 0;
 #X obj 83 228 nbx 5 12 0 65535 0 0 \$0-s_white_delay \$0-white_delay
-empty 4 7 1 10 -233017 -195568 -195568 0 256;
+empty 4 7 1 10 -233017 -195568 -195568 25600 256;
 #X obj 133 216 hsl 129 12 0 65535 0 0 \$0-s_white_speed \$0-white_speed
-white_speed 4 7 1 10 -233017 -195568 -195568 0 0;
+white_speed 4 7 1 10 -233017 -195568 -195568 10319 0;
 #X obj 83 216 nbx 5 12 0 65535 0 0 \$0-s_white_speed \$0-white_speed
-empty 4 7 1 10 -233017 -195568 -195568 0 256;
+empty 4 7 1 10 -233017 -195568 -195568 52832 256;
 #X obj 133 240 hsl 129 12 0 65535 0 0 \$0-s_auto_gain \$0-auto_gain
-auto_gain 4 7 1 10 -233017 -195568 -195568 0 0;
+auto_gain 4 7 1 10 -233017 -195568 -195568 12500 0;
 #X obj 83 240 nbx 5 12 0 65535 0 0 \$0-s_auto_gain \$0-auto_gain empty
 4 7 1 10 -233017 -195568 -195568 0 256;
 #X text 29 186 *OFF*;
@@ -270,24 +294,24 @@
 #X text 30 125 #5;
 #X text 30 140 #6;
 #X text 30 155 #7;
-#X text 313 77 presets:;
+#X text 317 107 presets:;
 #X text 90 168 ------- PWC ONLY: -------;
 #X obj 83 252 hradio 12 1 0 4 \$0-s_noise_reduction \$0-noise_reduction
-_0_1_2_3_noise_reduction -2 7 1 10 -233017 -195568 -195568 0;
+_0_1_2_3_noise_reduction -2 7 1 10 -233017 -195568 -195568 3;
 #X obj 83 264 hradio 12 1 0 4 \$0-s_compression \$0-compression _0_1_2_3_compression
 -2 7 1 10 -233017 -195568 -195568 0;
-#X obj 11 207 tgl 12 0 \$0-s_pwc \$0-pwc empty 20 7 1 10 -233017 -195568
--195568 0 1;
+#X obj 11 207 tgl 12 0 \$0-s_pwc \$0-pwc empty 20 7 1 10 -62784 -44926
+-1 0 1;
 #X text 26 205 use PWC;
 #X text 30 171 DC1394;
-#X obj 356 169 vradio 15 1 0 4 \$0-s_colorspace_e \$0-colorspace_e
-empty 0 -8 0 10 -233017 -195568 -195568 2;
-#X text 376 167 y;
-#X text 375 184 yuv;
-#X text 374 199 rgb;
-#X text 374 214 magic;
-#X text 269 191 Colorspaces:;
-#N canvas 0 0 450 300 command_filtre 1;
+#X obj 356 229 vradio 12 1 0 4 \$0-s_colorspace_e \$0-colorspace_e
+empty 0 -8 0 10 -62784 -44926 -1 2;
+#X text 370 226 y;
+#X text 370 238 yuv;
+#X text 370 251 rgb;
+#X text 370 263 magic;
+#X text 269 246 Colorspaces:;
+#N canvas 0 0 450 300 command_filtre 0;
 #X obj 22 24 inlet;
 #X obj 22 92 outlet;
 #X obj 22 43 route bang device;
@@ -298,21 +322,34 @@
 #X connect 2 2 1 0;
 #X restore 7 352 pd command_filtre;
 #X obj 7 371 #in;
-#X text 271 62 framerate:;
+#X text 275 192 framerate:;
 #X obj 201 35 vradio 12 1 0 4 \$0-s_norm \$0-norm empty 0 -8 0 10 -233017
 -195568 -195568 0;
 #X text 214 34 PAL;
 #X text 214 46 NTSC;
 #X text 213 58 SECAM;
 #X text 213 69 auto;
-#X obj 6 7 cnv 15 408 20 empty \$0-title No_camera_selected 4 10 1
-12 -1 -262144 0;
-#X connect 2 0 80 0;
-#X connect 4 0 79 0;
-#X connect 8 0 80 0;
-#X connect 32 0 36 0;
-#X connect 33 0 36 0;
-#X connect 35 0 36 0;
-#X connect 79 0 80 0;
-#X connect 80 0 3 0;
-#X connect 80 1 2 0;
+#X obj 6 7 cnv 15 408 20 empty \$0-title Logitech_QuickCam_Pro_4000
+4 10 1 12 -1 -262144 0;
+#X obj 356 282 vradio 12 1 0 2 \$0-s_transfer_e \$0-transfer_e empty
+0 -8 0 10 -62784 -44926 -1 0;
+#X text 291 286 Transfer:;
+#X text 370 280 read;
+#X text 371 292 mmap;
+#X obj 312 53 nbx 5 14 -1e+37 1e+37 0 0 empty \$0-minheight empty 0
+-6 1 10 -233017 -1 -195568 120 256;
+#X obj 360 53 nbx 5 14 -1e+37 1e+37 0 0 empty \$0-minwidth empty 0
+-6 1 10 -233017 -1 -195568 160 256;
+#X obj 312 83 nbx 5 14 -1e+37 1e+37 0 0 empty \$0-maxheight empty 0
+-6 1 10 -233017 -1 -195568 480 256;
+#X obj 360 83 nbx 5 14 -1e+37 1e+37 0 0 empty \$0-maxwidth empty 0
+-6 1 10 -233017 -1 -195568 640 256;
+#X text 275 82 max:;
+#X text 275 52 min:;
+#X connect 2 0 77 0;
+#X connect 4 0 76 0;
+#X connect 8 0 77 0;
+#X connect 32 0 33 0;
+#X connect 76 0 77 0;
+#X connect 77 0 3 0;
+#X connect 77 1 2 0;

Modified: trunk/format/videodev.c
==============================================================================
--- trunk/format/videodev.c (original)
+++ trunk/format/videodev.c Tue Jun 10 15:32:57 2008
@@ -308,6 +308,15 @@
 			 s==gensym("white_speed")     || s==gensym("white_delay") || s==gensym("auto_gain")  ||
 			 s==gensym("noise_reduction") || s==gensym("compression") || s==gensym("framerate"))) return;
 	FObject::_0_get(argc,argv,s);
+	if (!s) {
+		t_atom a[2];
+		SETFLOAT(a+0,vcaps.minheight);
+		SETFLOAT(a+1,vcaps.minwidth);
+		outlet_anything(bself->outlets[0],gensym("minsize"),2,a);
+		SETFLOAT(a+0,vcaps.maxheight);
+		SETFLOAT(a+1,vcaps.maxwidth);
+		outlet_anything(bself->outlets[0],gensym("maxsize"),2,a);
+	}
 }
 
 \def 0 size (int sy, int sx) {



More information about the Gridflow-cvs mailing list