|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi folks, has anyone out there had problems with the PNG_Image class? I
notice that the class contains a number of static variables, and also
accesses a number of local static variables in png_pov.cpp. At a glance
it looks like it would break if several different files were open
concurrently.
My initial fix was to put all these variables inside the class and make
them non-static. This works great for writing to multiple files, but
breaks the continue trace ability (png_ptr seems to persist between READ
and APPEND?). I'm guessing that a chunk of initialisation code from the
READ case put into the APPEND case would fix the problem, but I would
rather not guess.
I found a thread from many months ago discussing similar problems with
PNG and continue trace, but there did not seem to be any answers. This
isn't vital to my current project(pvmpov_3_5), but just annoying - I only
discovered it when I forgot the +ft while continuing an animation.
Thanks, Matthew.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3e0d8012$1@news.povray.org> , Matthew Grove
<mat### [at] ihugconz> wrote:
> Hi folks, has anyone out there had problems with the PNG_Image class? I
> notice that the class contains a number of static variables, and also
> accesses a number of local static variables in png_pov.cpp. At a glance
> it looks like it would break if several different files were open
> concurrently.
This cannot happen in POV-Ray, so it is irrelevant. Most of POV-Ray will
break if you have multiple image files open at a time (note that the class
interface is only needed for read/write of output images). The Image
classes are essentially just a wrapper around the 3.1 code.
Thorsten
____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg
I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Matthew Grove wrote:
> I found a thread from many months ago discussing similar problems with
> PNG and continue trace, but there did not seem to be any answers.
So far, until someone find the bug location, I consider that the
continue option got broken with png when the code was moved from 3.1 to
3.5. I do not know where is the error, but continued png by 3.5 seems to
be a little too much longer than they should. May be a bad fseek somewhere ?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|