I've been attempting to build on the stop-motion animation patch that
guido built some time ago (attached). I want to output each new frame
to an image but there's one problem: [pix_write] reads what is
currently in the frame buffer, which could be one of the old pictures.
Is there any way to make it read from a specific point in the frame
buffer?

Antonio

-- 
============================
[email protected]
http://www.hellocatfood.com
============================
#N canvas 396 106 578 472 10;
#X declare -lib gridflow;
#X obj 32 236 pix_buffer_write store;
#X obj 452 302 pix_buffer_read store;
#X obj 32 185 pix_video;
#X obj 258 56 gemwin;
#X obj 32 159 gemhead;
#X obj 452 137 gemhead;
#X obj 36 14 bng 40 250 50 0 empty empty empty 17 7 0 10 -257985 -1
-1;
#X obj 36 85 f;
#X obj 67 85 + 1;
#X obj 575 207 f;
#X obj 600 207 + 1;
#X obj 452 162 t a b;
#X obj 590 257 + 1;
#X obj 137 13 bng 15 250 50 0 empty empty empty 17 7 0 10 -1 -262144
-1;
#X text 158 12 Reset;
#X obj 36 112 s frameCount;
#X obj 161 211 r frameCount;
#X obj 590 232 r frameCount;
#X obj 575 282 % 0;
#N canvas 67 83 450 300 reset 0;
#X obj 38 94 s frameCount;
#X msg 38 43 0;
#X obj 38 66 t f f;
#X obj 38 14 inlet;
#X obj 91 66 outlet;
#X obj 90 13 loadbang;
#X connect 1 0 2 0;
#X connect 2 0 0 0;
#X connect 2 1 4 0;
#X connect 3 0 1 0;
#X connect 5 0 1 0;
#X restore 137 37 pd reset;
#X text 83 12 Record;
#X obj 623 131 hsl 80 15 10 0 0 0 empty empty empty -2 -8 0 10 -257985
-1 -1 0 1;
#X text 616 109 Playback speed;
#N canvas 391 410 450 300 speed 0;
#X obj 107 86 inlet;
#X obj 106 120 f;
#X obj 136 120 + 1;
#X obj 106 165 % 4;
#X obj 107 228 outlet;
#X obj 106 189 sel 0;
#X obj 194 117 inlet;
#X obj 194 149 int;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 0 3 0;
#X connect 2 0 1 1;
#X connect 3 0 5 0;
#X connect 5 0 4 0;
#X connect 6 0 7 0;
#X connect 7 0 3 1;
#X restore 575 179 pd speed;
#X obj 258 -4 loadbang;
#X msg 92 165 device /dev/video1;
#X obj 258 96 pix_buffer store 96;
#X obj 452 322 pix_texture;
#X obj 258 76 import gridflow;
#X obj 32 306 #from_pix \, colorspace rgb;
#X obj 32 347 #out window \, title preview;
#X obj 32 327 #downscale_by 2;
#X msg 258 16 create \, 1;
#X msg 258 36 0 \, destroy;
#X obj 452 342 rectangle 4 3;
#X obj 262 317 pix_write;
#X obj 311 245 tof/folderpanel;
#X obj 262 202 gemhead 96;
#X msg 311 265 file \$1/stop_motion_%09d 15;
#X obj 311 225 bng 15 250 50 0 empty empty empty 17 7 0 10 -258113
-1 -1;
#X obj 262 297 bang;
#X text 37 281 gridflow used for preview;
#X text 333 203 directory to;
#X text 333 223 save images;
#X connect 0 0 29 0;
#X connect 1 0 27 0;
#X connect 2 0 0 0;
#X connect 4 0 2 0;
#X connect 5 0 11 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 7 0 15 0;
#X connect 7 0 40 0;
#X connect 8 0 7 1;
#X connect 9 0 10 0;
#X connect 9 0 18 0;
#X connect 10 0 9 1;
#X connect 11 0 1 0;
#X connect 11 1 23 0;
#X connect 12 0 18 1;
#X connect 13 0 19 0;
#X connect 16 0 0 1;
#X connect 17 0 12 0;
#X connect 18 0 1 1;
#X connect 19 0 7 0;
#X connect 21 0 23 1;
#X connect 23 0 9 0;
#X connect 24 0 32 0;
#X connect 25 0 2 0;
#X connect 27 0 34 0;
#X connect 29 0 31 0;
#X connect 31 0 30 0;
#X connect 32 0 3 0;
#X connect 33 0 3 0;
#X connect 36 0 38 0;
#X connect 37 0 35 0;
#X connect 38 0 35 0;
#X connect 39 0 36 0;
#X connect 40 0 35 0;
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to