Hello,
I have a problem loading images into the pix_image object. It seems that anytime I load a picture it fills the RAM memory, even if I load the same image every time (I just need one image at a time). Is there a way to empty the memory when I change the image? There is a point when the memory is full and PD shuts down.
I´m attaching the patch.
Any ideas?
Cheers,
Hey Enrique,
In cases like this I use the "open" and "save" messages to pix_buffer.
You can be sure that the images get replaced, and you can arrange your images in RAM how you want them.
In this case you don't use pix_image at all, but pix_buffer_read to show the buffer.
.b.
enrique franco wrote:
Hello,
I have a problem loading images into the pix_image object. It seems that anytime I load a picture it fills the RAM memory, even if I load the same image every time (I just need one image at a time). Is there a way to empty the memory when I change the image? There is a point when the memory is full and PD shuts down.
IŽm attaching the patch.
Any ideas?
Cheers,
-- Enrique Franco Telefono/Phone: +572 5552334 ext 388 Webpage: http://richie.idc.ul.ie/~enrique/
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
ben,
have you an example of using the "save" message with pix_buffer ? what is this "save" message function ?
because there is nothing about that in the documentation
thx s.
2009/9/8 B. Bogart ben@ekran.org
Hey Enrique,
In cases like this I use the "open" and "save" messages to pix_buffer.
You can be sure that the images get replaced, and you can arrange your images in RAM how you want them.
In this case you don't use pix_image at all, but pix_buffer_read to show the buffer.
.b.
enrique franco wrote:
Hello,
I have a problem loading images into the pix_image object. It seems that anytime I load a picture it fills the RAM memory, even if I load the same image every time (I just need one image at a time). Is there a way to empty the memory when I change the image? There is a point when the memory is full and PD shuts down.
I´m attaching the patch.
Any ideas?
Cheers,
-- Enrique Franco Telefono/Phone: +572 5552334 ext 388 Webpage: http://richie.idc.ul.ie/~enrique/http://richie.idc.ul.ie/%7Eenrique/
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hey Ben,
I don´t understand how to use the "open" and "save" messages to pix_buffer..
I´ve been trying to load jpgs with pix_buffer without pix_image but the problem of memory is the same. I just can empty the RAM when I close PD.
Any ideas?
Enrique
On Tue, Sep 8, 2009 at 3:56 PM, B. Bogart ben@ekran.org wrote:
Hey Enrique,
In cases like this I use the "open" and "save" messages to pix_buffer.
You can be sure that the images get replaced, and you can arrange your images in RAM how you want them.
In this case you don't use pix_image at all, but pix_buffer_read to show the buffer.
.b.
enrique franco wrote:
Hello,
I have a problem loading images into the pix_image object. It seems that anytime I load a picture it fills the RAM memory, even if I load the same image every time (I just need one image at a time). Is there a way to empty the memory when I change the image? There is a point when the memory is full and PD shuts down.
I´m attaching the patch.
Any ideas?
Cheers,
-- Enrique Franco Telefono/Phone: +572 5552334 ext 388 Webpage: http://richie.idc.ul.ie/~enrique/http://richie.idc.ul.ie/%7Eenrique/
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
Hello Enrique
very quickly, before moving to Valencia where we make a performance
this week with Hortense.
You can use: 1 / pix_buffer or 2 / gemframebuffer
I've made two quick examples (too fast) in this patch, but you will
understand the process.
best
philippe
Le 8 sept. 09 à 21:37, enrique franco a écrit :
<GEM-fotosTest.pd>
enrique franco wrote:
Hello,
I have a problem loading images into the pix_image object. It seems that anytime I load a picture it fills the RAM memory, even if I load the same image every time (I just need one image at a time). Is there a way to empty the memory when I change the image? There is a point when the memory is full and PD shuts down.
I´m attaching the patch.
[counter] cannot create.
please be more specific about your setup:
does the problem persist if you disconnect [pix_image] from whatever comes afterwards?
gfmadsr IOhannes