[PD] Reading a specific image from [pix_buffer] and saving it using [pix_write]

IOhannes m zmoelnig zmoelnig at iem.at
Tue Mar 20 13:06:58 CET 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2012-03-20 12:21, Antonio Roberts wrote:
> 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?

a "framebuffer" in openGL- and Gem-land usually means a "canvas" where
you draw to. [gemwindow] is a typical framebuffer, [gemframebuffer]
(what's that name..?) as well.

[pix_write] will indeed read from this framebuffer.
you can specify where in the framebuffer it reads via the "offset" &
"dimension" parameters.


[pix_buffer], while being a "buffer" that holds "frames", is NOT a
framebuffer in this parlance.

you can use the [save foo.jpg 42( message to save a pix from the
[pix_buffer] to the disk. the last argument ("42" in this case) denotes
the slot to read the image from.

fgasdr
IOhannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9oct4ACgkQkX2Xpv6ydvSdSQCgpS3lASLj8qZ5Y2vI2xX2FFJU
tYIAoKEx3CZRE++bKPOUakALFUxZIyb7
=G992
-----END PGP SIGNATURE-----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3636 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20120320/2d6a3350/attachment.bin>


More information about the Pd-list mailing list