#N canvas 56 0 632 642 10;
#X text 13 34 This object imports a grid \, usually an image \, video
or live stream.;
#X msg 362 126 open working.jpg;
#X obj 354 106 bng 15 250 50 0 empty empty empty 0 -6 0 8 -24198 -1
-1;
#X text 55 181 <--click here;
#X text 232 1110 "loop 0" - turns off the loop option. The video stops
once it reaches the end.;
#X text 232 1386 Displays the resulting grid when connected to [#out
window];
#N canvas 82 93 663 454 quicktime 0;
#X text 9 9 The following messages can be used to set parameters for
video (.mov) files.;
#X text 128 283 different versions of LibQuickTime may include support
for different codecs \, and some may also support entirely different
wrapper formats such as AVI.;
#X text 129 367 Codecs must be set before first frame is written.;
#X text 128 330 QuickTime library for Macintosh: Apple QuickTime (some
codecs/features may not be available).;
#X obj 9 272 cnv 15 24 17 empty empty empty 20 12 0 14 -241291 -66577
0;
#X msg 38 230 codec jpg;
#X msg 23 116 framerate 33;
#X msg 33 203 colorspace rgb;
#X msg 18 78 size 400 600;
#X obj 10 272 #in;
#X text 145 117 Number of frames per second.;
#X msg 32 171 parameter jpeg_quality 85;
#X text 187 147 Determines window size when reading a video file.;
#X text 129 230 quicktime library for linux accepts LibQuickTime (libquicktime.so).
codecs currently available are: Raw \, jpeg \, png \, mipa \, yuv2
\, yuv4.;
#X text 134 84 Sets height and width. Must be set before setting the
codec parameters and after setting framerate and codec.;
#X text 107 230 <--;
#X text 108 80 <--;
#X text 119 118 <--;
#X text 108 80 <--;
#X text 108 80 <--;
#X text 162 147 <--;
#X text 212 173 <--;
#X text 139 206 <--;
#X text 237 174 Sets compression quality (100 being the highest quality
\, but a large file. 75-85 is the standard setting).;
#X text 163 209 Other colorspaces include rgba \, bgr \, bgra \, yuv
\, yuva.;
#X msg 10 54 open example.mov;
#X msg 28 145 force_size 480 640;
#X obj 103 427 #record;
#X text 15 427 see also :;
#X connect 5 0 9 0;
#X connect 6 0 9 0;
#X connect 7 0 9 0;
#X connect 8 0 9 0;
#X connect 11 0 9 0;
#X connect 25 0 9 0;
#X connect 26 0 9 0;
#X restore 349 572 pd quicktime file messages;
#X obj 354 150 #in;
#X floatatom 202 195 5 0 0 0 - - -;
#X msg 202 151 set 2;
#X msg 202 107 loop 0;
#X msg 202 129 loop 1;
#X floatatom 32 285 5 0 0 0 - - -;
#X msg 202 173 rewind;
#X obj 41 267 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 17 227 #in;
#X text 39 98 <--click here;
#X obj 17 96 tgl 15 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1;
#X obj 17 120 metro 33.3;
#X obj 356 234 bng 15 250 50 0 empty empty empty 0 -6 0 8 -24198 -1
-1;
#X obj 356 258 #in sewing.jpg;
#X text 378 234 <--click here;
#N canvas 150 0 874 560 more 0;
#X msg 191 388 open videodev \$1 \, get;
#X msg 52 147 brightness 1000;
#X msg 41 124 hue 1000;
#X msg 26 101 color 1000;
#X msg 65 171 contrast 1000;
#X msg 14 78 whiteness 1000;
#X msg 80 264 channel 2;
#X msg 80 294 tuner 2;
#X msg 81 324 norm 2;
#X msg 81 352 frequency 2;
#X msg 190 456 transfer mmap 4;
#X msg 191 356 transfer read;
#X msg 190 434 colorspace RGB24;
#X msg 191 411 size 400 600;
#X obj 14 441 #in;
#X obj 192 172 #contrast;
#X text 166 172 or;
#X text 306 411 Sets height and width of the input.;
#X text 322 488 In the case of mmap \, the extra numeric argument sets
the queue length in number of frames \, so you can select an appropriate
tradeoff between efficiency and latency.;
#X text 16 12 Grid Settings;
#X text 322 457 This is the standard and fastest way to receive pictures
from the camera.;
#X text 121 99 Message "get brightness" or "get" followed by any of
the other colour attributes will display its values in the console.
;
#X text 375 390 Opens video device.;
#X text 331 435 Supported values are RGB24 or YUV420P.;
#X text 14 48 Color Adjustments;
#X text 144 75 Values from 0 to 65535;
#X text 283 412 <--;
#X text 309 435 <--;
#X text 345 390 <--;
#X text 300 456 <--;
#X text 287 357 <--;
#X text 310 357 Some cameras/drivers only support "transfer read" and
not mmap.;
#X text 6 520 see also :;
#X obj 92 520 #camera;
#X connect 0 0 14 0;
#X connect 1 0 14 0;
#X connect 2 0 14 0;
#X connect 3 0 14 0;
#X connect 4 0 14 0;
#X connect 5 0 14 0;
#X connect 6 0 14 0;
#X connect 7 0 14 0;
#X connect 8 0 14 0;
#X connect 9 0 14 0;
#X connect 10 0 14 0;
#X connect 11 0 14 0;
#X connect 12 0 14 0;
#X connect 13 0 14 0;
#X restore 309 695 pd more info about video devices;
#X text 169 213 (and turn off the metro);
#X text 244 195 <-- vary this;
#X text 352 74 IMAGE FILES:;
#X text 12 72 VIDEO FILES:;
#X obj 28 183 bng 15 250 50 0 empty empty empty 0 -6 0 8 -24198 -1
-1;
#X text 380 106 <-- click here;
#X text 68 265 <-- sends a bang upon reaching;
#X text 97 278 the end of the file;
#X obj 17 305 #out window \, title video;
#X text 232 1075 "loop 1" - Restarts a video each time it reaches the
end (default setting).;
#X obj 41 248 route bang;
#X msg 24 147 open violoncelle.mov;
#X obj 0 0 doc_h;
#X obj 3 801 doc_i 1;
#X obj 3 1356 doc_o 2;
#X obj 14 831 doc_ii 0;
#X obj 14 1386 doc_oo 0;
#X obj 14 1408 doc_oo 1;
#X obj 3 332 doc_c 1..2;
#X text 165 389 auto-open with auto-detect of the format-handler;
#X text 207 409 auto-open with manual choice of the format-handler
;
#X obj 97 1145 doc_m i0 open;
#X obj 97 1228 doc_m i0 set;
#X obj 97 1018 doc_m i0 close;
#X obj 97 1180 doc_m i0 rewind;
#X obj 97 1075 doc_m i0 loop;
#X obj 97 996 doc_m i0 float int;
#X obj 97 1386 doc_m o0 grid;
#X obj 97 1408 doc_m o1 bang;
#X obj 103 1623 #out;
#X obj 34 371 #in;
#X obj 34 391 #in filename.suffix;
#X obj 34 411 #in handler filename.suffix;
#X text 66 370 nothing opened \, you have to open by yourself;
#X text 232 1145 \$1=filename. sends it as a resource to [#in]. For
example: "open sewing.jpg".;
#X obj 97 831 doc_m i0 bang;
#X obj 97 1443 doc_m o1 float int;
#X text 232 1443 frame number of the frame currently being viewed.
Applies to formats that have frame numbers \, i.e. video.;
#X text 232 831 A bang reads a frame and sends it through the outlet.
Since frames from videos and live streams are read as a series of individual
grids \, successive bangs advance through the frames. A bang reads
a frame and sends it through the outlet. Since frames from videos and
live streams are read as a series of individual grids \, successive
bangs advance through the frames. this is format-specific. most formats
produce grids that have dimensions (rows columns rgb). In formats that
read from a file \, reading another picture will continue if there
are several pictures in the same file \, but if the end of file is
reached instead \, it will rewind and send the first picture again.
;
#X obj 0 1643 doc_f;
#X text 232 1018 Closes the video input device. Only necessary when
you are using a live capture device.;
#X text 232 1228 select the video frame numbered \$1 \, where 0 is
the first frame. A bang must be sent to [#in] in order to display the
frame. this only works with video file formats.;
#X text 232 996 same as set \$1 \, bang;
#X obj 97 1053 doc_m i0 load;
#X text 232 1053 shortcut for open \$1 \, bang \, close;
#X obj 97 1478 doc_m o1 not_open;
#X text 232 1408 Signals that the requested operation cannot be performed
because the end of the file was reached.;
#X text 232 1478 Signals that the requested operation cannot be performed
because [#in] is in closed mode. This could mean a «close» message
was previously sent \, or no «open» (or equivalent) was ever done
\, or the file was not found \, or the file was read-protected \, or
the device is locked by another object or application that opened it
(busy) \, or any other reason.;
#X obj 139 1623 #camera;
#X obj 354 172 #out window \, title working;
#X obj 356 280 #out window \, title sewing;
#X text 262 501 picture formats;
#X text 263 571 movie formats;
#X text 252 461 generic file format that can encode any grid.;
#X obj 3 1623 doc_also;
#X obj 97 1276 doc_m i0 <any>;
#X text 260 694 cameras;
#X obj 253 478 doc_accolade;
#X obj 253 548 doc_accolade;
#X obj 252 671 doc_accolade;
#X obj 114 695 doc_link #io.dc1394;
#X text 33 750 note that [#out] supports some more modules (those that
are only for output);
#X text 33 439 click on a hyperlink for more info;
#X obj 114 463 doc_link #io.grid;
#X obj 114 523 doc_link #io.png;
#X obj 114 503 doc_link #io.jpeg;
#X obj 114 483 doc_link #io.ppm;
#X obj 114 553 doc_link #io.quicktimehw;
#X obj 114 573 doc_link #io.quicktimeapple;
#X obj 114 643 doc_link #io.x11;
#X obj 114 675 doc_link #io.videodev;
#X obj 114 715 doc_link #io.quicktimecamera;
#X obj 114 593 doc_link #io.mpeg;
#X msg 115 619 open quicktime;
#X text 252 617 alias for either quicktimeapple or quicktimehw;
#X text 232 1180 Will rewind video to the beginning. Will also rewind
an image sequence to the beginning (image sequence formats \, such
as what #io.ppm allows \, only allow 'rewind' \, not 'set');
#X text 232 1276 passed to the file format handler currently open.
If none is open \, this will send a "not_open" message on outlet 1
;
#X text 232 1311 See the help for the specific module that you are
using \, by clicking a link above.;
#X text 253 641 to get screenshots. see also [pix_snap] and [pix_snap2tex].
;
#X obj 97 1578 doc_m o1 <any>;
#X text 232 1578 coming from the specific module you are using. click
on one of the links in the Creation Arguments section.;
#X connect 1 0 7 0;
#X connect 2 0 7 0;
#X connect 7 0 72 0;
#X connect 8 0 15 0;
#X connect 9 0 15 0;
#X connect 10 0 15 0;
#X connect 11 0 15 0;
#X connect 13 0 15 0;
#X connect 15 0 31 0;
#X connect 15 1 12 0;
#X connect 15 1 33 0;
#X connect 17 0 18 0;
#X connect 18 0 15 0;
#X connect 19 0 20 0;
#X connect 20 0 73 0;
#X connect 27 0 15 0;
#X connect 33 0 14 0;
#X connect 34 0 15 0;
#X connect 44 1 57 0;
#X connect 45 1 64 0;
#X connect 46 1 63 0;
#X connect 47 1 98 0;
#X connect 48 1 32 0;
#X connect 48 1 4 0;
#X connect 49 1 65 0;
#X connect 50 1 5 0;
#X connect 51 1 69 0;
#X connect 58 1 61 0;
#X connect 59 1 60 0;
#X connect 66 1 67 0;
#X connect 68 1 70 0;
#X connect 77 1 52 0;
#X connect 77 1 71 0;
#X connect 78 1 99 0;
#X connect 78 1 100 0;
#X connect 102 1 103 0;

