[GEM-cvs] Gem/help pix_buffer.pd,1.1,1.2 curve3d.pd,1.2,1.3
Brought to you by:
zmoelnig
From: IOhannes m z. <zmo...@us...> - 2005-11-15 14:24:37
|
Update of /cvsroot/pd-gem/Gem/help In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16136 Modified Files: pix_buffer.pd curve3d.pd Log Message: updated help-files Index: pix_buffer.pd =================================================================== RCS file: /cvsroot/pd-gem/Gem/help/pix_buffer.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pix_buffer.pd 17 Sep 2003 11:40:51 -0000 1.1 --- pix_buffer.pd 15 Nov 2005 14:24:29 -0000 1.2 *************** *** 1,7 **** ! #N canvas 264 242 658 405 10; #X text 452 8 GEM object; ! #X obj 9 265 cnv 15 430 135 empty empty empty 20 12 0 14 -233017 -66577 0; ! #X text 40 267 Inlets:; #X obj 9 227 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577 0; --- 1,7 ---- ! #N canvas 265 211 763 420 10; #X text 452 8 GEM object; ! #X obj 9 263 cnv 15 430 150 empty empty empty 20 12 0 14 -233017 -66577 0; ! #X text 40 265 Inlets:; #X obj 9 227 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577 0; *************** *** 9,16 **** #X obj 8 56 cnv 15 430 165 empty empty empty 20 12 0 14 -233017 -66577 0; ! #X obj 447 79 cnv 15 200 100 empty empty empty 20 12 0 14 -228992 -66577 0; ! #X text 453 60 Example:; ! #X obj 451 89 cnv 15 190 80 empty empty empty 20 12 0 14 -24198 -66577 0; #X text 71 31 Class: pix object; --- 9,16 ---- #X obj 8 56 cnv 15 430 165 empty empty empty 20 12 0 14 -233017 -66577 0; ! #X obj 452 75 cnv 15 200 170 empty empty empty 20 12 0 14 -228992 -66577 0; ! #X text 461 54 Example:; ! #X obj 457 120 cnv 15 190 120 empty empty empty 20 12 0 14 -24198 -66577 0; #X text 71 31 Class: pix object; *************** *** 20,29 **** have a look at it's contents).; #X text 50 11 Synopsis: [pix_buffer]; ! #X text 10 170 To write data to the [pix_buffer] or get images from ! it \, you have to use separate objects [pix_buffer_write] and [pix_buffer_read] ! ; ! #X text 24 281 Inlet 1: bang: get the size of the buffer in frames ; ! #X text 24 294 Inlet 1: message: allocate <xsize> <ysize> <bytes_per_pixel>: assume that all images in the pix_buffer will have the given dimension and preallocate memory for them.; --- 20,26 ---- have a look at it's contents).; #X text 50 11 Synopsis: [pix_buffer]; ! #X text 23 281 Inlet 1: bang: get the size of the buffer in frames ; ! #X text 23 333 Inlet 1: message: allocate <xsize> <ysize> <bytes_per_pixel>: assume that all images in the pix_buffer will have the given dimension and preallocate memory for them.; *************** *** 31,44 **** dimensions and coulorspaces. Memory is reserved on demand \, but you can preallocate memory with the [allocate( message.; ! #X text 15 352 Outlet 1: int: size of the buffer; ! #X msg 457 95 bang; ! #X floatatom 457 151 5 0 0 0 - - -; ! #X msg 500 99 allocate 256 256 4; ! #X text 472 230 see also:; ! #X obj 474 294 pix_buffer_read; ! #X obj 473 269 pix_buffer_write; #X text 64 237 list: <buffer_name> <size>; ! #X obj 457 128 pix_buffer depot 10; ! #X connect 18 0 25 0; ! #X connect 20 0 25 0; ! #X connect 25 0 19 0; --- 28,64 ---- dimensions and coulorspaces. Memory is reserved on demand \, but you can preallocate memory with the [allocate( message.; ! #X text 23 391 Outlet 1: int: size of the buffer; ! #X msg 464 128 bang; ! #X floatatom 464 216 5 0 0 0 - - -; ! #X msg 505 164 allocate 256 256 4; ! #X text 462 266 see also:; ! #X obj 475 318 pix_buffer_read; ! #X obj 474 293 pix_buffer_write; #X text 64 237 list: <buffer_name> <size>; ! #X obj 464 193 pix_buffer depot 10; ! #X text 10 170 To write data to the [pix_buffer] or get images from ! it \, you can use separate objects [pix_buffer_write] and [pix_buffer_read] ! or the [open( message.; ! #X obj 505 80 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 ! -1; ! #N canvas 0 0 450 300 openpanel 0; ! #X obj 114 62 inlet; ! #X obj 121 254 outlet; ! #X obj 114 125 openpanel; ! #X obj 114 199 t b a; ! #X msg 114 162 set open \$1 0; ! #X connect 0 0 2 0; ! #X connect 2 0 4 0; ! #X connect 3 0 1 0; ! #X connect 3 1 1 0; ! #X connect 4 0 3 0; ! #X restore 505 97 pd openpanel; ! #X text 23 300 Inlet 1: message: open <filename> <index>: put an image ! into the pix_buffer at the given index; ! #X msg 505 132 open somefile.jpg 0; ! #X connect 17 0 24 0; ! #X connect 19 0 24 0; ! #X connect 24 0 18 0; ! #X connect 26 0 27 0; ! #X connect 27 0 29 0; ! #X connect 29 0 24 0; Index: curve3d.pd =================================================================== RCS file: /cvsroot/pd-gem/Gem/help/curve3d.pd,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** curve3d.pd 4 Dec 2003 17:57:11 -0000 1.2 --- curve3d.pd 15 Nov 2005 14:24:29 -0000 1.3 *************** *** 43,47 **** #X connect 11 0 10 0; #X restore 861 523 pd gemwin; ! #X msg 861 504 destroy; #X text 857 483 Create window:; #X obj 796 74 cnv 15 150 150 empty empty empty 20 12 0 14 -24198 -66577 --- 43,47 ---- #X connect 11 0 10 0; #X restore 861 523 pd gemwin; ! #X msg 861 504 create; #X text 857 483 Create window:; #X obj 796 74 cnv 15 150 150 empty empty empty 20 12 0 14 -24198 -66577 |