Jack escribió:
Can you try this patch (this is the IOhannes patch) with very small modifications.
It works fine now, even with jpeg (sending [file somefilename 95( ) As usual, tiffs are unreadable but i don't care since I want jpegs.
However I don't quite understand it: it uses pix_snap AND pix_write (without 'r'): isn't pix_write supposed to work without the need for a pix_snap?
And if I replace pix_write with pix_writer (in this last patch without any other change) it again does crash saving jpegs.....
I see you have changed the trigger order of pix_snap sending it first the bang and then the list, haven't you, but not on the pix_write...... is there a reason?
I think this solves my problem however I don't understand the whole picture
BY THE WAY one thing that I was missing in all my tests is that you have to explicitly set pix_snap 'window' (pos and size) to the size of the gemframebuffer (or gemwin); i would expect (am I the only one?) the default value to be the size of the framebuffer, but it isnt: it seems it is some fixed vaule. That should be documented. A lot of things should be documented...
++
Jack
Le vendredi 27 novembre 2009 à 15:46 +0100, Matteo Sisti Sette a écrit :
I modified IOhannes' patch to use pix_write instead of pix_snap+pix_write and it also crashes, so it is not a difference between pix_write and pix_writer: both crash.
I'll have a look at what's different between IOhannes' and Jack's patches that may explain why one crashes and the other does not....
Matteo Sisti Sette escribió:
IOhannes m zmoelnig escribió:
Matteo Sisti Sette wrote:
Ok, IOhannes' patch seems to be what I was looking for, however I have the following problems:
- The patch out-of-the-box saves unreadable tiffs just like Jack's
which OS?
Windows Vista :(
- By sending it a [file something 95( to pix_writer in order to have
jpegs saved instead of tiffs, which DOES work with [pix_write], pd crashes!!!!!
it's really the same object as [pix_write], just without the snap-code.
Then the strange thing is that Jack's patch with pix_write does not crash when saving jpegs (it saves black images but i guess it might be some trivial error in the patch) while your patch with pix_writer does.... How may I avoid the crash??? It does not crash when I send the [file ...( message but when I try to save the first snapshot after it.
Where can I find some documentation more detailed than the help patches in order to understand the mechanisms? I get quite lost when trying to understand how your patch (for example) works. I more or less understand the notion of gem chain, gem list, and, for example, separators, but I still get lost when [gemframebuffer] enters the scene, I don't even fully understand why it is needed at all in your patch, for example......
Thanks again and again